Merge pull request #31809 from ShizCalev/helper-cleanup

Cleans up some istypes not using helpers
This commit is contained in:
Leo
2017-10-17 22:20:42 -02:00
committed by CitadelStationBot
parent 9691c9130f
commit 28656d3347
18 changed files with 26 additions and 24 deletions
@@ -1330,7 +1330,7 @@
taste_description = "carpet" // Your tounge feels furry.
/datum/reagent/carpet/reaction_turf(turf/T, reac_volume)
if(istype(T, /turf/open/floor/plating) || istype(T, /turf/open/floor/plasteel))
if(isplatingturf(T) || istype(T, /turf/open/floor/plasteel))
var/turf/open/floor/F = T
F.ChangeTurf(/turf/open/floor/carpet)
..()
@@ -54,7 +54,7 @@
. = 1
/datum/reagent/clf3/reaction_turf(turf/T, reac_volume)
if(istype(T, /turf/open/floor/plating))
if(isplatingturf(T))
var/turf/open/floor/plating/F = T
if(prob(10 + F.burnt + 5*F.broken)) //broken or burnt plating is more susceptible to being destroyed
F.ChangeTurf(F.baseturf)