MTA fixes:

- It is now possible to talk to the telekinetic guardian through the maze wall.
- Asking for the price of an MTA reward no longer attempts to purchase said reward.
- Graveyard bones now give the correct amount of bananas/peaches.
- Number of telekinetic mazes solved now persist when exiting.
This commit is contained in:
Avi Weinstock
2022-01-24 20:11:14 -05:00
committed by Ryan
parent c6290f4079
commit 514c86f4a6
4 changed files with 10 additions and 10 deletions
@@ -241,9 +241,9 @@ public class MTAShop {
if (item == null) {
return true;
}
if (opcode == 230) {
if (opcode == 155) {
value(player, item, slot);
} else {
} else if (opcode == 196) {
buy(player, item, slot);
}
return true;
@@ -122,11 +122,6 @@ public class TelekineticZone extends MTAZone {
if (player == null || player != this.player) {
return super.leave(entity, logout);
}
if (logout) {
player.getSavedData().getActivityData().setSolvedMazes(solved);
} else {
player.getSavedData().getActivityData().setSolvedMazes(0);
}
if (statue != null) {
GroundItemManager.destroy(statue);
}
@@ -277,6 +272,7 @@ public class TelekineticZone extends MTAZone {
}
});
}
player.getSavedData().getActivityData().setSolvedMazes(solved);
incrementPoints(player, MTAType.TELEKINETIC.ordinal(), points);
TelekineticZone.this.update(player);
player.setAttribute("camera", false);