Makes thermite a component
This commit is contained in:
committed by
CitadelStationBot
parent
0a32eb3162
commit
82c388b3e8
@@ -1,5 +1,4 @@
|
||||
/turf/closed
|
||||
var/thermite = 0
|
||||
layer = CLOSED_TURF_LAYER
|
||||
opacity = 1
|
||||
density = TRUE
|
||||
|
||||
@@ -38,9 +38,6 @@
|
||||
explosion_block = 3
|
||||
canSmoothWith = list(/turf/closed/wall/mineral/diamond, /obj/structure/falsewall/diamond)
|
||||
|
||||
/turf/closed/wall/mineral/diamond/thermitemelt(mob/user)
|
||||
return
|
||||
|
||||
/turf/closed/wall/mineral/clown
|
||||
name = "bananium wall"
|
||||
desc = "A wall with bananium plating. Honk!"
|
||||
|
||||
@@ -161,12 +161,6 @@
|
||||
|
||||
add_fingerprint(user)
|
||||
|
||||
//THERMITE related stuff. Calls src.thermitemelt() which handles melting simulated walls and the relevant effects
|
||||
if( thermite )
|
||||
if(W.is_hot())
|
||||
thermitemelt(user)
|
||||
return
|
||||
|
||||
var/turf/T = user.loc //get user's location for delay checks
|
||||
|
||||
//the istype cascade has been spread among various procs for easy overriding
|
||||
@@ -239,31 +233,6 @@
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
|
||||
/turf/closed/wall/proc/thermitemelt(mob/user)
|
||||
cut_overlays()
|
||||
var/obj/effect/overlay/O = new/obj/effect/overlay( src )
|
||||
O.name = "thermite"
|
||||
O.desc = "Looks hot."
|
||||
O.icon = 'icons/effects/fire.dmi'
|
||||
O.icon_state = "2"
|
||||
O.anchored = TRUE
|
||||
O.opacity = 1
|
||||
O.density = TRUE
|
||||
O.layer = FLY_LAYER
|
||||
|
||||
playsound(src, 'sound/items/welder.ogg', 100, 1)
|
||||
|
||||
if(thermite >= 50)
|
||||
var/burning_time = max(100,300 - thermite)
|
||||
var/turf/open/floor/F = ChangeTurf(/turf/open/floor/plating)
|
||||
F.burn_tile()
|
||||
F.add_hiddenprint(user)
|
||||
QDEL_IN(O, burning_time)
|
||||
else
|
||||
thermite = 0
|
||||
QDEL_IN(O, 50)
|
||||
|
||||
/turf/closed/wall/singularity_pull(S, current_size)
|
||||
..()
|
||||
if(current_size >= STAGE_FIVE)
|
||||
|
||||
Reference in New Issue
Block a user