Fix broken dojo scripts since introduction of MapId constants

This commit is contained in:
P0nk
2022-08-02 16:31:15 +02:00
parent 563d3033b9
commit 8d213e4d6e
4 changed files with 7 additions and 7 deletions

View File

@@ -32,8 +32,8 @@ function enter(pi) {
pi.goDojoUp();
pi.getPlayer().getMap().setReactorState();
var stage = Math.floor(pi.getPlayer().getMapId() / 100) % 100;
const GameConstants = Java.type('constants.game.GameConstants');
if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !GameConstants.isDojoPartyArea(pi.getPlayer().getMapId())) // we can also try 5 * stage / 6 | 0 + 1
const MapId = Java.type('constants.id.MapId');
if ((stage - (stage / 6) | 0) == pi.getPlayer().getVanquisherStage() && !MapId.isPartyDojo(pi.getPlayer().getMapId())) // we can also try 5 * stage / 6 | 0 + 1
{
pi.getPlayer().setVanquisherKills(pi.getPlayer().getVanquisherKills() + 1);
}