mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added a new hook: HOOK_ADJUSTRADS
Fixed a crash bug in ScriptExtender.cpp from commit c736e39.
Some adjustments to the hook injection mechanism.
This commit is contained in:
@@ -707,3 +707,14 @@ int arg2 - the damage value at the time of applying the poison effect
|
||||
|
||||
int ret0 - the new amount of poison being added/removed
|
||||
int ret1 - the new damage value, only negative values are allowed (will only be valid at the time of taking damage from the poison)
|
||||
|
||||
-------------------------------------------
|
||||
|
||||
HOOK_ADJUSTRADS (hs_adjustrads.int)
|
||||
|
||||
Runs when a critter's radiation level is changed.
|
||||
|
||||
Critter arg0 - the critter (usually dude_obj)
|
||||
int arg1 - the amount of radiation being added/removed
|
||||
|
||||
int ret0 - the new amount of radiation being added/removed
|
||||
|
||||
Reference in New Issue
Block a user