[MIRROR] crash on 0 (#10028)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-02-01 12:38:14 -07:00
committed by GitHub
parent f4755bd3bf
commit 230c157d1b

View File

@@ -193,7 +193,8 @@
weapon_damage *= 1.5
weapon_attack_speed = G.fire_delay / (1 SECOND)
qdel(P)
if(weapon_attack_speed == 0)
CRASH("[G.type], using [G.projectile_type] has a 0 fire delay!")
var/average_damage = weapon_damage / weapon_attack_speed
threat_guess += average_damage