1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2025-06-28 06:30:18 +02:00

added check for on_death() function before api's own on_die()

This commit is contained in:
tenplus1
2024-04-26 07:44:39 +01:00
parent e9180febc6
commit d20dfa0b41
3 changed files with 14 additions and 1 deletions

View File

@ -336,6 +336,7 @@ enhance mob functionality and have them do many interesting things:
is returned normal attack function continued.
'on_die' a function that is called when mob is killed (self, pos), also
has access to self.cause_of_death table.
'on_death' Official engine version of above when mob killed (self, cause).
'on_flop' function called when flying or swimmimng mob is no longer in
air/water, (self) paramater and return true to skip the built
in api flop feature.