Defines damage flags. (#53158)

This commit is contained in:
TemporalOroboros
2020-08-24 08:20:33 -03:00
committed by GitHub
parent 1ea79a01cf
commit 6e950daccc
278 changed files with 731 additions and 700 deletions
@@ -2,9 +2,9 @@
. = ..()
var/component_probability = min(50, max(damage_amount*0.1, 1 - obj_integrity/max_integrity))
switch(damage_flag)
if("bullet")
if(BULLET)
component_probability = damage_amount * 0.5
if("laser")
if(LASER)
component_probability = damage_amount * 0.66
if(component_probability)
for(var/I in all_components)