mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added optimization for the save/load game screens
Edited the description of args for HOOK_TOHIT.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -661,7 +661,7 @@ sfall_funcX metarule functions
|
||||
|
||||
----
|
||||
#### inventory_redraw
|
||||
`void sfall_func0("inventory_redraw")`<br>
|
||||
`void sfall_func0("inventory_redraw")`\
|
||||
`void sfall_func1("inventory_redraw", int invSide)`
|
||||
- Redraws inventory list in the inventory/use inventory item on/loot/barter screens
|
||||
- `invSide` specifies which side needs to be redrawn: 0 - the player, 1 - target (container/NPC in loot/barter screens), -1 - both sides (same as without argument)
|
||||
@@ -673,7 +673,7 @@ sfall_funcX metarule functions
|
||||
|
||||
----
|
||||
#### create_win
|
||||
`void sfall_func5("create_win", string winName, int x, int y, int width, int height)`<br>
|
||||
`void sfall_func5("create_win", string winName, int x, int y, int width, int height)`\
|
||||
`void sfall_func6("create_win", string winName, int x, int y, int width, int height, int flags)`
|
||||
- Works just like vanilla `CreateWin` function, but creates a window with `MoveOnTop` flag if the flags argument is not specified, and allows to set additional flags for the created window
|
||||
- `MoveOnTop` flag allows the created window to be placed on top of the game interface
|
||||
|
||||
Reference in New Issue
Block a user