Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ private StarManager() {
.addGG(455, "GoP Easy Final", "GoP E").accessOnlyBy(235, "GoP Easy 5").exitBy(1)
.addGG(470, "Plutus' Trove of Riches Easy", "PToR E").accessOnlyBy(235, "GoP Easy Final").exitBy(1)
.addGG(471, "Treacherous Domain Easy", "TD E").accessOnlyBy(238, HOME_MAPS)
.addGG(472, "Treacherous Domain Normal", "TD N").accessOnlyBy(238, OUTPOST_HOME_MAPS);
.addGG(472, "Treacherous Domain Normal", "TD N").accessOnlyBy(238, OUTPOST_HOME_MAPS)
.addGG(482, "Treacherous Domain", "TD").accessOnlyBy(239, HOME_MAPS).accessOnlyBy(239, OUTPOST_HOME_MAPS);
// Special (No direct access)
mapBuild.addMap(42, "???")
.addMap(61, "MMO Invasion", "MMO Inv").addMap(62, "EIC Invasion", "EIC Inv").addMap(63, "VRU Invasion", "VRU Inv")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,36 +1,30 @@
package com.github.manolo8.darkbot.core.objects.facades;

import com.github.manolo8.darkbot.core.itf.Updatable;
import com.github.manolo8.darkbot.core.objects.swf.FlashList;
import eu.darkbot.api.managers.AstralGateAPI;

import java.util.List;

import static com.github.manolo8.darkbot.Main.API;


public class AstralGateProxy extends Updatable implements AstralGateAPI {
public class AstralGateProxy extends AbstractProxy implements AstralGateAPI {
private int highScore, currentRift, currentScore, cpuCount;
private boolean canEquip;
public final FlashList<AstralItem> rewardItems = FlashList.ofVector(AstralItem::new);
public final FlashList<AstralItem> inventoryItems = FlashList.ofVector(AstralItem::new);

@Override
public void update() {
if (address == 0) {
return;
}

long data = API.readAtom(address + 48);
public void updateProxy() {
if (address == 0) return;

this.highScore = API.readInt(data + 64);
this.currentRift = API.readInt(data, 80, 40);
this.currentScore = API.readInt(data, 88, 40);
this.cpuCount = API.readInt(data, 96, 40);
this.canEquip = API.readBoolean(data, 0x0B0, 0x20);
this.highScore = readInt(0x40);
this.currentRift = readBindableInt(0x50);
this.currentScore = readBindableInt(0x58);
this.cpuCount = readBindableInt(0x60);
this.canEquip = readBoolean(0xb0, 0x20);

rewardItems.update(API.readAtom(data + 0x88));
inventoryItems.update(API.readAtom(data + 0x0A0));
rewardItems.update(readAtom(0x88));
inventoryItems.update(readAtom(0xa0));
}

@Override
Expand Down
Loading