Backported the fix for TOHIT hook from 4.0 development branch (commit 7bbe84feef)

Updated credits.
This commit is contained in:
NovaRain
2017-03-19 08:29:27 +08:00
parent 659da227f4
commit 024b1dbf6f
3 changed files with 24 additions and 16 deletions
+3
View File
@@ -84,6 +84,9 @@ int arg1 - The unmodified hit chance
critter arg2 - The attacker
critter arg3 - The target of the attack
int arg4 - The targeted bodypart
int arg5 - Source tile (may differ from attacker's tile, when AI is considering potential fire position)
int arg6 - Attack Type (one of ATKTYPE_*)
int arg7 - Ranged flag (0 or 1, actually passed 1 even for unarmed attacks, may be a vanilla bug)
int ret1 - the new hit chance