mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Adds a stack trace for objs with <=0 integ taking damage (#7909)
* Adds a stack trace for objs with <=0 integ taking damage (#61079) Adds a stack_trace to <=0 integ objs taking damage so instances of people relying on this early return prior can be identified * Adds a stack trace for objs with <=0 integ taking damage Co-authored-by: ArcaneDefence <51932756+ArcaneDefence@users.noreply.github.com>
This commit is contained in:
co-authored by
ArcaneDefence
parent
f900b1ec6d
commit
a8a2af902b
@@ -4,9 +4,12 @@
|
||||
if(QDELETED(src))
|
||||
stack_trace("[src] taking damage after deletion")
|
||||
return
|
||||
if(obj_integrity <= 0)
|
||||
stack_trace("[src] taking damage while having <= 0 integrity")
|
||||
return
|
||||
if(sound_effect)
|
||||
play_attack_sound(damage_amount, damage_type, damage_flag)
|
||||
if((resistance_flags & INDESTRUCTIBLE) || obj_integrity <= 0)
|
||||
if(resistance_flags & INDESTRUCTIBLE)
|
||||
return
|
||||
damage_amount = run_obj_armor(damage_amount, damage_type, damage_flag, attack_dir, armour_penetration)
|
||||
if(damage_amount < DAMAGE_PRECISION)
|
||||
|
||||
Reference in New Issue
Block a user