Added optimization for the save/load game screens

Edited the description of args for HOOK_TOHIT.
This commit is contained in:
NovaRain
2021-11-23 20:43:19 +08:00
parent 809cba44e8
commit 81912b47ed
5 changed files with 30 additions and 20 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ Critter arg1 - The attacker
Critter arg2 - The target of the attack
int arg3 - The targeted bodypart
int arg4 - Source tile (may differ from attacker's tile, when AI is considering potential fire position)
int arg5 - Attack Type (one of ATKTYPE_*)
int arg6 - Ranged flag. 1 means the hit chance is calculated by taking into account the bonuses/penalties of the distance to the target
int arg5 - Attack Type (see ATKTYPE_* constants)
int arg6 - Ranged flag. 1 if the hit chance calculation takes into account the distance to the target. This does not mean the attack is a ranged attack
int arg7 - The raw hit chance before applying the cap
int ret0 - the new hit chance