client: add setters for selected spells and items (#1634)

* client: add setters for selected spells and items (thanks to Skitzo the absolute beast.)

* deob: change "changeSpellFlag" method name to "selectSpell"

* deob: export "selectSpell" for tests.
This commit is contained in:
Ganom
2019-09-21 18:25:03 -04:00
committed by Lucwousin
parent 93cccd0cf7
commit 17dd88d50a
8 changed files with 124 additions and 64 deletions

View File

@@ -1236,7 +1236,8 @@ public final class Client extends GameShell implements Usernamed {
@ObfuscatedGetter(
intValue = -465859219
)
static int field687;
@Export("selectedSpellChildIndex")
static int selectedSpellChildIndex;
@ObfuscatedName("ml")
@ObfuscatedGetter(
intValue = -1436921851
@@ -1410,7 +1411,7 @@ public final class Client extends GameShell implements Usernamed {
isItemSelected = 0;
selectedItemName = null;
isSpellSelected = false;
field687 = -1;
selectedSpellChildIndex = -1;
field648 = -1;
selectedSpellActionName = null;
selectedSpellName = null;