Redemption Prayer/Fixes/Clues/Tidying up/Rares (#207)

- closes #205
- closes #197
- closes #145

Does the followiwng
- Adds functional redemption prayer
- Fixes max stack deletion when trading
- Adds toggle for clue scrolls, currently set on disabled until someone gets the time to finish clue scrolls
- Cleans up a few minor things
- Removes a few bits of dead code
- Re enables rare detection
This commit is contained in:
Mr Extremez
2019-11-21 20:09:17 -06:00
committed by Daniel Ginovker
parent 4b3bb7ade7
commit 34f2665858
10 changed files with 45 additions and 47 deletions
@@ -257,7 +257,7 @@ public class Trading {
return false;
}
if (amount >= 1000000000) {
if (amount >= Integer.MAX_VALUE) {
player.getActionSender().sendMessage("You can't possibly have that much of that item!");
player.getItemAssistant().deleteItem(itemID, fromSlot, amount);
return false;
@@ -270,14 +270,6 @@ public class Trading {
return false;
}
}
if (!RareProtection.doOtherDupe(player, itemID)) {
return false;
}
// /if (!((c.playerItems[fromSlot] == itemID + 1) &&
// (c.playerItemsN[fromSlot] >= amount))) {
// c.getPacketDispatcher().sendMessage("You don't have that amount!");
// return false;
// }
player.tradeConfirmed = false;
o.tradeConfirmed = false;
if (!Item.itemStackable[itemID] && !Item.itemIsNote[itemID]) {