Removes redundant COMPONENT_INCOMPATIBLE crashes

This commit is contained in:
Jordan Brown
2018-04-25 06:53:43 -04:00
committed by CitadelStationBot
parent 3044f3ad3a
commit f0a259d3e5
17 changed files with 1320 additions and 30 deletions
+1 -4
View File
@@ -21,10 +21,7 @@
)
/datum/component/thermite/Initialize(_amount)
if(!istype(parent, /turf))
. = COMPONENT_INCOMPATIBLE
CRASH("A thermite component has been applied to an incorrect object. parent: [parent]")
if(blacklist[parent.type])
if(!istype(parent, /turf) || blacklist[parent.type])
return COMPONENT_INCOMPATIBLE
if(immunelist[parent.type])
_amount*=0 //Yeah the overlay can still go on it and be cleaned but you arent burning down a diamond wall