Range/Specials/Clean up

- Added correct range distance for all range weapons
- Fixed whip special attack when using on npcs
- Removed some warnings
- Refactored combat some
- Fixed a few typos
- Deleted some dead code
- Fixed bug where you could kill players with auto retaliate outside of the wilderness if you were already fighting them when they ran out

Closes #146
Closes #352

Also from a previous patch
Closes #329
This commit is contained in:
Mr Extremez
2020-02-10 00:40:21 -06:00
parent 2bef5158c4
commit 5ab79b1128
21 changed files with 1413 additions and 1943 deletions
@@ -2319,19 +2319,6 @@ public class PlayerAssistant {
return count;
}
public void useOperate(int itemId) {
switch (itemId) {
case 11283:
case 11284:
if (player.playerIndex > 0) {
player.getCombatAssistant().handleDfs();
} else if (player.npcIndex > 0) {
player.getCombatAssistant().handleDfsNPC();
}
break;
}
}
public void getSpeared(int otherX, int otherY) {
int x = player.absX - otherX;
int y = player.absY - otherY;