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

@@ -360,7 +360,7 @@ public final class Tiles {
TileItem.method2093(var20 + 1, var9.id, var9.childIndex, var9.itemId, "");
} else if (var20 == 10) {
FloorDecoration.Widget_runOnTargetLeave();
Player.method1196(var9.id, var9.childIndex, WorldMapElement.method4390(class60.getWidgetClickMask(var9)), var9.itemId);
Player.selectSpell(var9.id, var9.childIndex, WorldMapElement.method4390(class60.getWidgetClickMask(var9)), var9.itemId);
Client.selectedSpellActionName = class16.method165(var9);
if (Client.selectedSpellActionName == null) {
Client.selectedSpellActionName = "null";