mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
[MIRROR] crash on 0 (#10028)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
f4755bd3bf
commit
230c157d1b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user