7 Commits
Author SHA1 Message Date
GeChallengeM 0d4b75731f Removal of useless code.
The if-statement following the removed one already contains the logic.
2019-07-10 16:33:29 +02:00
GeChallengeM e56a2c6db9 Bugfix flinching with multiple interacting NPC's
Didn't check for NpcIndex before.
2019-07-10 11:19:04 +02:00
GeChallengeM 4bc7c79a6f Indent fix v2
Hope I fixed all indents now, oops!
2019-07-10 02:06:25 +02:00
GeChallengeM bc36f8204d Fix of a nullpointerexception.
The nullpointerexception happened when, in rare cases, the variable
"lastPlayerLocation" is null and the player is attacked instantly on
login.
2019-07-10 00:29:02 +02:00
GeChallengeM 6ef0476676 Fix indent 2019-07-09 23:55:00 +02:00
GeChallengeM 68b623e5b7 npcstatus: Add custom attack speed option. Some fixes/improvements.
Implement custom attack speed as config option, useful because the npc
stats data we have from wiki isn't 100% correct, or isn't even there.
Add minimum attackrange of 1.
Enable timer when the player is interacting with their target.
Add default attack speed of 4 when wiki doesn't provide the data.
Fix splash flinching while using a better method to implement it, using
the function "onSpotAnimationChanged".
Remove deprecated variable "lastspotanimation".
Remove unused variable "lastTickUpdate".
2019-07-09 23:27:36 +02:00
GeChallengeM 12749a6270 Stops the overlay from activating when it's not supposed to.
Before this, you could for example get this bug:
Have player safespots turned on and NPC safespots turned off.
Interact with another player, which creates a safespotlist.
After this, whenever you're interacting with an NPC and then stop
interacting with it, the overlay would turn on with the tiles from the
old playerinteraction safespotlist highlighted for 10 seconds.
2019-07-07 21:46:14 +02:00