Revert "12/21 modernizations from TG live"

This commit is contained in:
LetterJay
2016-12-22 22:35:44 -06:00
committed by GitHub
parent cf59ac1c3d
commit ae40d4134e
2215 changed files with 86928 additions and 707332 deletions
+8 -52
View File
@@ -24,17 +24,11 @@
/turf/open/floor/wood/cold
temperature = 255.37
/turf/open/floor/wood/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/grass
name = "grass patch"
desc = "You can't tell if this is real grass or just cheap plastic imitation."
name = "Grass patch"
icon_state = "grass"
floor_tile = /obj/item/stack/tile/grass
broken_states = list("sand")
flags = NONE
var/ore_type = /obj/item/weapon/ore/glass
/turf/open/floor/grass/New()
..()
@@ -42,59 +36,22 @@
update_icon()
/turf/open/floor/grass/attackby(obj/item/C, mob/user, params)
if(istype(C, /obj/item/weapon/shovel) && params)
new ore_type(src)
new ore_type(src) //Make some sand if you shovel grass
user.visible_message("<span class='notice'>[user] digs up [src].</span>", "<span class='notice'>You uproot [src].</span>")
playsound(src, 'sound/effects/shovel_dig.ogg', 50, 1)
make_plating()
if(..())
return
/turf/open/floor/grass/snow
name = "snow"
icon = 'icons/turf/snow.dmi'
desc = "Looks cold."
icon_state = "snow"
ore_type = /obj/item/stack/sheet/mineral/snow
planetary_atmos = TRUE
floor_tile = null
initial_gas_mix = "o2=22;n2=82;TEMP=180"
slowdown = 2
/turf/open/floor/grass/snow/attackby(obj/item/W, mob/user, params)
if(istype(W, /obj/item/weapon/crowbar))//You need to dig this turf out instead of crowbarring it
return
..()
/turf/open/floor/grass/snow/basalt //By your powers combined, I am captain planet
name = "volcanic floor"
icon = 'icons/turf/floors.dmi'
icon_state = "basalt"
ore_type = /obj/item/weapon/ore/glass/basalt
initial_gas_mix = "o2=14;n2=23;TEMP=300"
slowdown = 0
/turf/open/floor/grass/snow/basalt/New()
..()
if(prob(15))
icon_state = "basalt[rand(0, 12)]"
switch(icon_state)
if("basalt1", "basalt2", "basalt3")
SetLuminosity(1, 1)
if(istype(C, /obj/item/weapon/shovel))
new /obj/item/weapon/ore/glass(src)
new /obj/item/weapon/ore/glass(src) //Make some sand if you shovel grass
user << "<span class='notice'>You shovel the grass.</span>"
make_plating()
/turf/open/floor/carpet
name = "carpet"
desc = "Soft velvet carpeting. Feels good between your toes."
name = "Carpet"
icon = 'icons/turf/floors/carpet.dmi'
icon_state = "carpet"
floor_tile = /obj/item/stack/tile/carpet
broken_states = list("damaged")
smooth = SMOOTH_TRUE
canSmoothWith = null
flags = NONE
/turf/open/floor/carpet/New()
..()
@@ -137,8 +94,7 @@
icon_state = "0"
floor_tile = /obj/item/stack/tile/fakespace
broken_states = list("damaged")
plane = PLANE_SPACE
/turf/open/floor/fakespace/New()
..()
icon_state = "[rand(0,25)]"
icon_state = "[rand(0,25)]"
+12 -32
View File
@@ -1,19 +1,21 @@
/turf/open/floor/light
name = "light floor"
desc = "A wired glass tile embedded into the floor."
name = "Light floor"
luminosity = 5
icon_state = "light_on"
floor_tile = /obj/item/stack/tile/light
broken_states = list("light_broken")
var/on = 1
var/state = 0//0 = fine, 1 = flickering, 2 = breaking, 3 = broken
var/state //0 = fine, 1 = flickering, 2 = breaking, 3 = broken
var/list/coloredlights = list("g", "r", "y", "b", "p", "w", "s","o","g")
var/currentcolor = 1
var/can_modify_colour = TRUE
/turf/open/floor/light/New()
..()
spawn(5) //needed because when placing a light floor tile it will take a short while before setting state
if(istype(builtin_tile, /obj/item/stack/tile/light))
var/obj/item/stack/tile/light/L = builtin_tile
L.state = state
update_icon()
/turf/open/floor/light/update_icon()
@@ -22,29 +24,27 @@
switch(state)
if(0)
icon_state = "light_on-[coloredlights[currentcolor]]"
SetLuminosity(1)
set_light(1)
if(1)
var/num = pick("1","2","3","4")
icon_state = "light_on_flicker[num]"
SetLuminosity(1)
set_light(1)
if(2)
icon_state = "light_on_broken"
SetLuminosity(1)
set_light(1)
if(3)
icon_state = "light_off"
SetLuminosity(0)
set_light(0)
else
SetLuminosity(0)
set_light(0)
icon_state = "light_off"
/turf/open/floor/light/ChangeTurf(turf/T)
SetLuminosity(0)
set_light(0)
..()
/turf/open/floor/light/attack_hand(mob/user)
if(!can_modify_colour)
return
if(!on)
on = 1
currentcolor = 1
@@ -70,23 +70,3 @@
user << "<span class='notice'>You replace the light bulb.</span>"
else
user << "<span class='notice'>The lightbulb seems fine, no need to replace it.</span>"
//Cycles through all of the colours
/turf/open/floor/light/colour_cycle
coloredlights = list("cycle_all")
can_modify_colour = FALSE
//Two different "dancefloor" types so that you can have a checkered pattern
// (also has a longer delay than colour_cycle between cycling colours)
/turf/open/floor/light/colour_cycle/dancefloor_a
name = "dancefloor"
desc = "Funky floor."
coloredlights = list("dancefloor_A")
/turf/open/floor/light/colour_cycle/dancefloor_b
name = "dancefloor"
desc = "Funky floor."
coloredlights = list("dancefloor_B")
@@ -6,22 +6,18 @@
* Bananium floor
* Diamond floor
* Uranium floor
* Shuttle floor (Titanium)
*/
/turf/open/floor/mineral
name = "mineral floor"
icon_state = ""
var/list/icons
var/list/icons = list()
/turf/open/floor/mineral/New()
broken_states = list("[initial(icon_state)]_dam")
..()
if (!icons)
icons = list()
broken_states = list("[initial(icon_state)]_dam")
/turf/open/floor/mineral/update_icon()
if(!..())
@@ -75,36 +71,6 @@
floor_tile = /obj/item/stack/tile/mineral/silver
icons = list("silver","silver_dam")
//TITANIUM (shuttle)
/turf/open/floor/mineral/titanium/blue
icon_state = "shuttlefloor"
icons = list("shuttlefloor","shuttlefloor_dam")
/turf/open/floor/mineral/titanium/yellow
icon_state = "shuttlefloor2"
icons = list("shuttlefloor2","shuttlefloor2_dam")
/turf/open/floor/mineral/titanium
name = "shuttle floor"
icon_state = "shuttlefloor3"
floor_tile = /obj/item/stack/tile/mineral/titanium
icons = list("shuttlefloor3","shuttlefloor3_dam")
/turf/open/floor/mineral/titanium/purple
icon_state = "shuttlefloor5"
icons = list("shuttlefloor5","shuttlefloor5_dam")
//PLASTITANIUM (syndieshuttle)
/turf/open/floor/mineral/plastitanium
name = "shuttle floor"
icon_state = "shuttlefloor4"
floor_tile = /obj/item/stack/tile/mineral/plastitanium
icons = list("shuttlefloor4","shuttlefloor4_dam")
/turf/open/floor/mineral/plastitanium/brig
name = "Brig floor"
//BANANIUM
/turf/open/floor/mineral/bananium
@@ -221,3 +187,14 @@
/turf/open/floor/mineral/abductor/make_plating()
return ChangeTurf(/turf/open/floor/plating/abductor2)
/turf/open/floor/plating/abductor2
name = "alien plating"
icon_state = "alienplating"
/turf/open/floor/plating/abductor2/break_tile()
return //unbreakable
/turf/open/floor/plating/abductor2/burn_tile()
return //unburnable
+78 -119
View File
@@ -1,5 +1,5 @@
/turf/open/floor/goonplaque
name = "commemorative plaque"
name = "Commemorative Plaque"
icon_state = "plaque"
desc = "\"This is a plaque in honour of our comrades on the G4407 Stations. Hopefully TG4407 model can live up to your fame and fortune.\" Scratched in beneath that is a crude image of a meteor and a spaceman. The spaceman is laughing. The meteor is exploding."
floor_tile = /obj/item/stack/tile/plasteel
@@ -26,23 +26,75 @@
icon_state = "gcircuit"
floor_tile = /obj/item/stack/tile/plasteel
/turf/open/floor/plating/beach
name = "Beach"
icon = 'icons/misc/beach.dmi'
/turf/open/floor/pod
name = "pod floor"
icon_state = "podfloor"
icon_regular_floor = "podfloor"
floor_tile = /obj/item/stack/tile/pod
/turf/open/floor/plating/beach/ex_act(severity, target)
contents_explosion(severity, target)
/turf/open/floor/pod/light
icon_state = "podfloor_light"
icon_regular_floor = "podfloor_light"
floor_tile = /obj/item/stack/tile/pod/light
/turf/open/floor/plating/beach/sand
name = "Sand"
icon_state = "sand"
baseturf = /turf/open/floor/plating/beach/sand
/turf/open/floor/pod/dark
icon_state = "podfloor_dark"
icon_regular_floor = "podfloor_dark"
floor_tile = /obj/item/stack/tile/pod/dark
/turf/open/floor/plating/beach/coastline_t
name = "Coastline"
icon_state = "sandwater_t"
baseturf = /turf/open/floor/plating/beach/coastline_t
/turf/open/floor/plating/beach/coastline_b
name = "Coastline"
icon_state = "sandwater_b"
baseturf = /turf/open/floor/plating/beach/coastline_b
/turf/open/floor/plating/beach/water
name = "Water"
icon_state = "water"
baseturf = /turf/open/floor/plating/beach/water
/turf/open/floor/plating/ironsand/New()
..()
name = "Iron Sand"
icon_state = "ironsand[rand(1,15)]"
/turf/open/floor/plating/ironsand/burn_tile()
return
/turf/open/floor/plating/ice
name = "ice sheet"
desc = "A sheet of solid ice. Looks slippery."
icon = 'icons/turf/snow.dmi'
icon_state = "ice"
temperature = 180
baseturf = /turf/open/floor/plating/ice
slowdown = 1
wet = TURF_WET_PERMAFROST
/turf/open/floor/plating/ice/colder
temperature = 140
/turf/open/floor/plating/ice/temperate
temperature = 255.37
/turf/open/floor/plating/ice/break_tile()
return
/turf/open/floor/plating/ice/burn_tile()
return
/turf/open/floor/plating/snowed
name = "snowed-over plating"
desc = "A section of plating covered in a light layer of snow."
icon = 'icons/turf/snow.dmi'
icon_state = "snowplating"
temperature = 180
/turf/open/floor/plating/snowed/colder
temperature = 140
/turf/open/floor/plating/snowed/temperatre
temperature = 255.37
/turf/open/floor/noslip
name = "high-traction floor"
@@ -64,31 +116,19 @@
/turf/open/floor/clockwork
name = "clockwork floor"
desc = "Tightly-pressed brass tiles. They emit minute vibration."
icon_state = "plating"
var/obj/effect/clockwork/overlay/floor/realappearence
icon = 'icons/turf/floors.dmi'
icon_state = "clockwork_floor"
/turf/open/floor/clockwork/New()
..()
PoolOrNew(/obj/effect/overlay/temp/ratvar/floor, src)
PoolOrNew(/obj/effect/overlay/temp/ratvar/beam, src)
realappearence = PoolOrNew(/obj/effect/clockwork/overlay/floor, src)
realappearence.linked = src
change_construction_value(1)
clockwork_construction_value++
/turf/open/floor/clockwork/Destroy()
be_removed()
return ..()
/turf/open/floor/clockwork/ChangeTurf(path, defer_change = FALSE)
if(path != type)
be_removed()
return ..()
/turf/open/floor/clockwork/proc/be_removed()
STOP_PROCESSING(SSobj, src)
change_construction_value(-1)
qdel(realappearence)
realappearence = null
clockwork_construction_value--
return ..()
/turf/open/floor/clockwork/Entered(atom/movable/AM)
..()
@@ -100,27 +140,12 @@
/turf/open/floor/clockwork/proc/healservants()
for(var/mob/living/L in src)
if(L.stat == DEAD)
if(L.stat == DEAD || !is_servant_of_ratvar(L))
continue
. = 1
if(!is_servant_of_ratvar(L) || !L.toxloss)
continue
var/image/I = new('icons/effects/effects.dmi', src, "heal", ABOVE_MOB_LAYER) //fake a healing glow for servants
I.appearance_flags = RESET_COLOR
I.color = "#5A6068"
I.pixel_x = rand(-12, 12)
I.pixel_y = rand(-9, 0)
var/list/viewing = list()
for(var/mob/M in viewers(src))
if(M.client && (is_servant_of_ratvar(M) || isobserver(M) || M.stat == DEAD))
viewing += M.client
flick_overlay(I, viewing, 8)
var/swapdamage = FALSE
if(L.has_dna()) //if has_dna() is true they're at least carbon
var/mob/living/carbon/C = L
if(TOXINLOVER in C.dna.species.species_traits)
if(TOXINLOVER in C.dna.species.specflags)
swapdamage = TRUE
if(isanimal(L))
var/mob/living/simple_animal/A = L
@@ -130,22 +155,20 @@
L.adjustToxLoss(3)
else
L.adjustToxLoss(-3)
. = 1
/turf/open/floor/clockwork/attackby(obj/item/I, mob/living/user, params)
if(istype(I, /obj/item/weapon/crowbar))
user.visible_message("<span class='notice'>[user] begins slowly prying up [src]...</span>", "<span class='notice'>You begin painstakingly prying up [src]...</span>")
playsound(src, I.usesound, 20, 1)
if(!do_after(user, 70*I.toolspeed, target = src))
if(!do_after(user, 70 / I.toolspeed, target = src))
return 0
user.visible_message("<span class='notice'>[user] pries up [src]!</span>", "<span class='notice'>You pry up [src]!</span>")
playsound(src, I.usesound, 80, 1)
user.visible_message("<span class='notice'>[user] pries up [src]!</span>", "<span class='notice'>You pry up [src], destroying it!</span>")
make_plating()
return 1
return ..()
/turf/open/floor/clockwork/make_plating()
PoolOrNew(/obj/item/stack/tile/brass, src)
return ..()
/turf/open/floor/clockwork/ratvar_act()
return 0
/turf/open/floor/clockwork/narsie_act()
..()
@@ -153,67 +176,3 @@
var/previouscolor = color
color = "#960000"
animate(src, color = previouscolor, time = 8)
addtimer(src, "update_atom_colour", 8)
/turf/open/floor/bluespace
slowdown = -1
icon_state = "bluespace"
desc = "Through a series of micro-teleports these tiles let people move at incredible speeds"
floor_tile = /obj/item/stack/tile/bluespace
/turf/open/floor/sepia
slowdown = 2
icon_state = "sepia"
desc = "Time seems to flow very slowly around these tiles"
floor_tile = /obj/item/stack/tile/sepia
// VINE FLOOR
/turf/open/floor/vines
color = "#aa77aa"
icon_state = "vinefloor"
broken_states = list()
//All of this shit is useless for vines
/turf/open/floor/vines/attackby()
return
/turf/open/floor/vines/burn_tile()
return
/turf/open/floor/vines/break_tile()
return
/turf/open/floor/vines/make_plating()
return
/turf/open/floor/vines/break_tile_to_plating()
return
/turf/open/floor/vines/ex_act(severity, target)
..()
if(severity < 3 || target == src)
ChangeTurf(src.baseturf)
/turf/open/floor/vines/narsie_act()
if(prob(20))
ChangeTurf(src.baseturf) //nar sie eats this shit
/turf/open/floor/vines/singularity_pull(S, current_size)
if(current_size >= STAGE_FIVE)
if(prob(50))
ChangeTurf(src.baseturf)
/turf/open/floor/vines/ChangeTurf(turf/open/floor/T)
. = ..()
//Do this *after* the turf has changed as qdel in spacevines will call changeturf again if it hasn't
for(var/obj/structure/spacevine/SV in src)
if(!qdestroying(SV))//Helps avoid recursive loops
qdel(SV)
UpdateAffectingLights()
@@ -11,9 +11,6 @@
icon_state = icon_regular_floor
/turf/open/floor/plasteel/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plasteel/black
icon_state = "dark"
@@ -293,11 +290,9 @@
/turf/open/floor/plasteel/shuttle
icon_state = "shuttlefloor"
floor_tile = /obj/item/stack/tile/mineral/titanium //old shuttle floors so i don't have to change the map paths in this pr
/turf/open/floor/plasteel/shuttle/red
name = "Brig floor"
icon_state = "shuttlefloor4"
floor_tile = /obj/item/stack/tile/mineral/plastitanium
/turf/open/floor/plasteel/shuttle/yellow
icon_state = "shuttlefloor2"
/turf/open/floor/plasteel/shuttle/white
@@ -305,18 +300,6 @@
/turf/open/floor/plasteel/shuttle/purple
icon_state = "shuttlefloor5"
/turf/open/floor/plasteel/airless/shuttle
icon_state = "shuttlefloor"
/turf/open/floor/plasteel/airless/shuttle/red
name = "Brig floor"
icon_state = "shuttlefloor4"
/turf/open/floor/plasteel/airless/shuttle/yellow
icon_state = "shuttlefloor2"
/turf/open/floor/plasteel/airless/shuttle/white
icon_state = "shuttlefloor3"
/turf/open/floor/plasteel/airless/shuttle/purple
icon_state = "shuttlefloor5"
/turf/open/floor/plasteel/asteroid
icon_state = "asteroidfloor"
@@ -366,18 +349,12 @@
/turf/open/floor/plasteel/bar
icon_state = "bar"
/turf/open/floor/plasteel/airless/bar
icon_state = "bar"
/turf/open/floor/plasteel/grimy
icon_state = "grimy"
/turf/open/floor/plasteel/cafeteria
icon_state = "cafeteria"
/turf/open/floor/plasteel/airless/cafeteria
icon_state = "cafeteria"
/turf/open/floor/plasteel/vault
icon_state = "vault"
@@ -385,9 +362,6 @@
icon_state = "cult"
name = "engraved floor"
/turf/open/floor/plasteel/vaporwave
icon_state = "pinkblack"
/turf/open/floor/plasteel/goonplaque
icon_state = "plaque"
name = "Commemorative Plaque"
@@ -456,9 +430,7 @@
/turf/open/floor/plasteel/sandeffect
icon_state = "sandeffect"
/turf/open/floor/plasteel/sandeffect/warning
icon_state = "warningsandeffect"
/turf/open/floor/plasteel/sandeffect/warning/corner
icon_state = "warningsandeffectcorners"
icon_state = "warningsandeffectcorners"
+243 -5
View File
@@ -12,12 +12,10 @@
name = "plating"
icon_state = "plating"
intact = 0
broken_states = list("platingdmg1", "platingdmg2", "platingdmg3")
burnt_states = list("panelscorched")
/turf/open/floor/plating/New()
if (!broken_states)
broken_states = list("platingdmg1", "platingdmg2", "platingdmg3")
if (!burnt_states)
burnt_states = list("panelscorched")
..()
icon_plating = icon_state
@@ -65,7 +63,247 @@
if( welder.isOn() && (broken || burnt) )
if(welder.remove_fuel(0,user))
user << "<span class='danger'>You fix some dents on the broken plating.</span>"
playsound(src, welder.usesound, 80, 1)
playsound(src, 'sound/items/Welder.ogg', 80, 1)
icon_state = icon_plating
burnt = 0
broken = 0
/turf/open/floor/plating/airless
icon_state = "plating"
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/engine
name = "reinforced floor"
icon_state = "engine"
thermal_conductivity = 0.025
heat_capacity = INFINITY
floor_tile = /obj/item/stack/rods
/turf/open/floor/engine/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/engine/break_tile()
return //unbreakable
/turf/open/floor/engine/burn_tile()
return //unburnable
/turf/open/floor/engine/make_plating(force = 0)
if(force)
..()
return //unplateable
/turf/open/floor/engine/attackby(obj/item/weapon/C, mob/user, params)
if(!C || !user)
return
if(istype(C, /obj/item/weapon/wrench))
user << "<span class='notice'>You begin removing rods...</span>"
playsound(src, 'sound/items/Ratchet.ogg', 80, 1)
if(do_after(user, 30/C.toolspeed, target = src))
if(!istype(src, /turf/open/floor/engine))
return
new /obj/item/stack/rods(src, 2)
ChangeTurf(/turf/open/floor/plating)
return
/turf/open/floor/engine/ex_act(severity,target)
switch(severity)
if(1)
if(prob(80))
ReplaceWithLattice()
else if(prob(50))
qdel(src)
else
make_plating(1)
if(2)
if(prob(50))
make_plating(1)
//air filled floors; used in atmos pressure chambers
/turf/open/floor/engine/n2o
name = "n2o floor"
initial_gas_mix = "n2o=6000;TEMP=293.15"
/turf/open/floor/engine/co2
name = "co2 floor"
initial_gas_mix = "co2=50000;TEMP=293.15"
/turf/open/floor/engine/plasma
name = "plasma floor"
initial_gas_mix = "plasma=70000;TEMP=293.15"
/turf/open/floor/engine/o2
name = "o2 floor"
initial_gas_mix = "o2=100000;TEMP=293.15"
/turf/open/floor/engine/n2
name = "n2 floor"
initial_gas_mix = "n2=100000;TEMP=293.15"
/turf/open/floor/engine/air
name = "air floor"
initial_gas_mix = "o2=2644;n2=10580;TEMP=293.15"
/turf/open/floor/engine/cult
name = "engraved floor"
icon_state = "cult"
/turf/open/floor/engine/cult/New()
PoolOrNew(/obj/effect/overlay/temp/cult/turf/open/floor, src)
..()
/turf/open/floor/engine/cult/narsie_act()
return
/turf/open/floor/engine/cult/ratvar_act()
..()
if(istype(src, /turf/open/floor/engine/cult)) //if we haven't changed type
var/previouscolor = color
color = "#FAE48C"
animate(src, color = previouscolor, time = 8)
/turf/open/floor/engine/singularity_pull(S, current_size)
if(current_size >= STAGE_FIVE)
if(builtin_tile)
if(prob(30))
builtin_tile.loc = src
make_plating()
else if(prob(30))
ReplaceWithLattice()
/turf/open/floor/engine/cult/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/engine/vacuum
name = "vacuum floor"
icon_state = "engine"
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plasteel/airless
initial_gas_mix = "TEMP=2.7"
// ONE DAY WE WILL HAVE SUBTYPES
/turf/open/floor/plasteel/airless/shuttle
icon_state = "shuttlefloor"
/turf/open/floor/plasteel/airless/shuttle/red
name = "Brig floor"
icon_state = "shuttlefloor4"
/turf/open/floor/plasteel/airless/shuttle/yellow
icon_state = "shuttlefloor2"
/turf/open/floor/plasteel/airless/shuttle/white
icon_state = "shuttlefloor3"
/turf/open/floor/plasteel/airless/shuttle/purple
icon_state = "shuttlefloor5"
/turf/open/floor/plating/abductor
name = "alien floor"
icon_state = "alienpod1"
/turf/open/floor/plating/abductor/New()
..()
icon_state = "alienpod[rand(1,9)]"
///LAVA
/turf/open/floor/plating/lava
name = "lava"
icon_state = "lava"
baseturf = /turf/open/floor/plating/lava //lava all the way down
slowdown = 2
var/processing = 0
light_range = 2
light_power = 0.75
light_color = "#c48a18"
/turf/open/floor/plating/lava/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/lava/Entered(atom/movable/AM)
burn_stuff()
if(!processing)
processing = 1
START_PROCESSING(SSobj, src)
/turf/open/floor/plating/lava/process()
if(!burn_stuff())
processing = 0
STOP_PROCESSING(SSobj, src)
/turf/open/floor/plating/lava/make_plating()
return
/turf/open/floor/plating/lava/GetHeatCapacity()
. = 700000
/turf/open/floor/plating/lava/GetTemperature()
. = 5000
/turf/open/floor/plating/lava/TakeTemperature(temp)
/turf/open/floor/plating/lava/proc/burn_stuff()
. = 0
for(var/thing in contents)
if(istype(thing, /obj))
var/obj/O = thing
if(istype(O, /obj/effect/decal/cleanable/ash)) //So we don't get stuck burning the same ash pile forever
qdel(O)
continue
. = 1
if(O.burn_state == FIRE_PROOF)
O.burn_state = FLAMMABLE //Even fireproof things burn up in lava
O.fire_act()
else if (istype(thing, /mob/living))
. = 1
var/mob/living/L = thing
if("lava" in L.weather_immunities)
continue
if(L.buckled)
if(isobj(L.buckled))
var/obj/O = L.buckled
if(O.burn_state == LAVA_PROOF)
continue
if(isliving(L.buckled)) //Goliath riding
var/mob/living/live = L.buckled
if("lava" in live.weather_immunities)
continue
L.adjustFireLoss(20)
if(L) //mobs turning into object corpses could get deleted here.
L.adjust_fire_stacks(20)
L.IgniteMob()
/turf/open/floor/plating/lava/attackby(obj/item/C, mob/user, params) //Lava isn't a good foundation to build on
return
/turf/open/floor/plating/lava/break_tile()
return
/turf/open/floor/plating/lava/burn_tile()
return
/turf/open/floor/plating/lava/attackby(obj/item/C, mob/user, params) //Lava isn't a good foundation to build on
return
/turf/open/floor/plating/lava/smooth
name = "lava"
baseturf = /turf/open/floor/plating/lava/smooth
icon = 'icons/turf/floors/lava.dmi'
icon_state = "unsmooth"
smooth = SMOOTH_MORE | SMOOTH_BORDER
canSmoothWith = list(/turf/closed/mineral, /turf/open/floor/plating/lava/smooth)
/turf/open/floor/plating/lava/smooth/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/astplate
icon_state = "asteroidplating"
/turf/open/floor/plating/airless/astplate
icon_state = "asteroidplating"
@@ -1,327 +0,0 @@
/**********************Asteroid**************************/
/turf/open/floor/plating/asteroid //floor piece
name = "asteroid sand"
baseturf = /turf/open/floor/plating/asteroid
icon = 'icons/turf/floors.dmi'
icon_state = "asteroid"
icon_plating = "asteroid"
var/environment_type = "asteroid"
var/turf_type = /turf/open/floor/plating/asteroid //Because caves do whacky shit to revert to normal
var/dug = 0 //0 = has not yet been dug, 1 = has already been dug
var/sand_type = /obj/item/weapon/ore/glass
var/floor_variance = 20 //probability floor has a different icon state
/turf/open/floor/plating/asteroid/New()
var/proper_name = name
..()
name = proper_name
if(prob(floor_variance))
icon_state = "[environment_type][rand(0,12)]"
/turf/open/floor/plating/asteroid/burn_tile()
return
/turf/open/floor/plating/asteroid/ex_act(severity, target)
contents_explosion(severity, target)
switch(severity)
if(3)
return
if(2)
if(prob(20))
src.gets_dug()
if(1)
src.gets_dug()
/turf/open/floor/plating/asteroid/attackby(obj/item/weapon/W, mob/user, params)
//note that this proc does not call ..()
if(!W || !user)
return 0
var/digging_speed = 0
if (istype(W, /obj/item/weapon/shovel))
var/obj/item/weapon/shovel/S = W
digging_speed = S.digspeed
else if (istype(W, /obj/item/weapon/pickaxe))
var/obj/item/weapon/pickaxe/P = W
digging_speed = P.digspeed
if (digging_speed)
var/turf/T = user.loc
if(!isturf(T))
return
if (dug)
user << "<span class='warning'>This area has already been dug!</span>"
return
user << "<span class='notice'>You start digging...</span>"
playsound(src, 'sound/effects/shovel_dig.ogg', 50, 1)
if(do_after(user, digging_speed, target = src))
if(istype(src, /turf/open/floor/plating/asteroid))
user << "<span class='notice'>You dig a hole.</span>"
gets_dug()
feedback_add_details("pick_used_mining","[W.type]")
if(istype(W,/obj/item/weapon/storage/bag/ore))
var/obj/item/weapon/storage/bag/ore/S = W
if(S.collection_mode == 1)
for(var/obj/item/weapon/ore/O in src.contents)
O.attackby(W,user)
return
if(istype(W, /obj/item/stack/tile))
var/obj/item/stack/tile/Z = W
if(!Z.use(1))
return
var/turf/open/floor/T = ChangeTurf(Z.turf_type)
if(istype(Z,/obj/item/stack/tile/light)) //TODO: get rid of this ugly check somehow
var/obj/item/stack/tile/light/L = Z
var/turf/open/floor/light/F = T
F.state = L.state
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
/turf/open/floor/plating/asteroid/proc/gets_dug()
if(dug)
return
for(var/i in 1 to 5)
new sand_type(src)
dug = 1
icon_plating = "[environment_type]_dug"
icon_state = "[environment_type]_dug"
slowdown = 0
return
/turf/open/floor/plating/asteroid/singularity_act()
return
/turf/open/floor/plating/asteroid/singularity_pull(S, current_size)
return
/turf/open/floor/plating/asteroid/basalt
name = "volcanic floor"
baseturf = /turf/open/floor/plating/asteroid/basalt
icon = 'icons/turf/floors.dmi'
icon_state = "basalt"
icon_plating = "basalt"
environment_type = "basalt"
sand_type = /obj/item/weapon/ore/glass/basalt
floor_variance = 15
/turf/open/floor/plating/asteroid/basalt/lava //lava underneath
baseturf = /turf/open/floor/plating/lava/smooth
/turf/open/floor/plating/asteroid/basalt/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/asteroid/basalt/New()
..()
switch(icon_state)
if("basalt1", "basalt2", "basalt3") //5 and 9 are too dark to glow and make the amount of glows in tunnels too high
SetLuminosity(1, 1) //this is basically a 3.75% chance that a basalt floor glows
/turf/open/floor/plating/asteroid/basalt/gets_dug()
if(!dug)
SetLuminosity(0)
..()
///////Surface. The surface is warm, but survivable without a suit. Internals are required. The floors break to chasms, which drop you into the underground.
/turf/open/floor/plating/asteroid/basalt/lava_land_surface
initial_gas_mix = "o2=14;n2=23;TEMP=300"
planetary_atmos = TRUE
baseturf = /turf/open/floor/plating/lava/smooth/lava_land_surface
/turf/open/floor/plating/asteroid/airless
initial_gas_mix = "TEMP=2.7"
turf_type = /turf/open/floor/plating/asteroid/airless
#define SPAWN_MEGAFAUNA "bluh bluh huge boss"
#define SPAWN_BUBBLEGUM 6
/turf/open/floor/plating/asteroid/airless/cave
var/length = 100
var/list/mob_spawn_list
var/list/megafauna_spawn_list
var/list/flora_spawn_list
var/sanity = 1
var/forward_cave_dir = 1
var/backward_cave_dir = 2
var/going_backwards = TRUE
var/has_data = FALSE
var/data_having_type = /turf/open/floor/plating/asteroid/airless/cave/has_data
turf_type = /turf/open/floor/plating/asteroid/airless
/turf/open/floor/plating/asteroid/airless/cave/has_data //subtype for producing a tunnel with given data
has_data = TRUE
/turf/open/floor/plating/asteroid/airless/cave/volcanic
mob_spawn_list = list(/mob/living/simple_animal/hostile/asteroid/goliath/beast = 50, /mob/living/simple_animal/hostile/spawner/lavaland/goliath = 3, \
/mob/living/simple_animal/hostile/asteroid/basilisk/watcher = 40, /mob/living/simple_animal/hostile/spawner/lavaland = 2, \
/mob/living/simple_animal/hostile/asteroid/hivelord/legion = 30, /mob/living/simple_animal/hostile/spawner/lavaland/legion = 3, \
SPAWN_MEGAFAUNA = 6, /mob/living/simple_animal/hostile/asteroid/goldgrub = 10)
data_having_type = /turf/open/floor/plating/asteroid/airless/cave/volcanic/has_data
turf_type = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
initial_gas_mix = "o2=14;n2=23;TEMP=300"
/turf/open/floor/plating/asteroid/airless/cave/volcanic/has_data //subtype for producing a tunnel with given data
has_data = TRUE
/turf/open/floor/plating/asteroid/airless/cave/New(loc)
if (!mob_spawn_list)
mob_spawn_list = list(/mob/living/simple_animal/hostile/asteroid/goldgrub = 1, /mob/living/simple_animal/hostile/asteroid/goliath = 5, /mob/living/simple_animal/hostile/asteroid/basilisk = 4, /mob/living/simple_animal/hostile/asteroid/hivelord = 3)
if (!megafauna_spawn_list)
megafauna_spawn_list = list(/mob/living/simple_animal/hostile/megafauna/dragon = 4, /mob/living/simple_animal/hostile/megafauna/colossus = 2, /mob/living/simple_animal/hostile/megafauna/bubblegum = SPAWN_BUBBLEGUM)
if (!flora_spawn_list)
flora_spawn_list = list(/obj/structure/flora/ash/leaf_shroom = 2 , /obj/structure/flora/ash/cap_shroom = 2 , /obj/structure/flora/ash/stem_shroom = 2 , /obj/structure/flora/ash/cacti = 1, /obj/structure/flora/ash/tall_shroom = 2)
if(!has_data)
produce_tunnel_from_data()
..()
/turf/open/floor/plating/asteroid/airless/cave/proc/get_cave_data(set_length, exclude_dir = -1)
// If set_length (arg1) isn't defined, get a random length; otherwise assign our length to the length arg.
if(!set_length)
length = rand(25, 50)
else
length = set_length
// Get our directiosn
forward_cave_dir = pick(alldirs - exclude_dir)
// Get the opposite direction of our facing direction
backward_cave_dir = angle2dir(dir2angle(forward_cave_dir) + 180)
/turf/open/floor/plating/asteroid/airless/cave/proc/produce_tunnel_from_data(tunnel_length, excluded_dir = -1)
get_cave_data(tunnel_length, excluded_dir)
// Make our tunnels
make_tunnel(forward_cave_dir)
if(going_backwards)
make_tunnel(backward_cave_dir)
// Kill ourselves by replacing ourselves with a normal floor.
SpawnFloor(src)
/turf/open/floor/plating/asteroid/airless/cave/proc/make_tunnel(dir)
var/turf/closed/mineral/tunnel = src
var/next_angle = pick(45, -45)
for(var/i = 0; i < length; i++)
if(!sanity)
break
var/list/L = list(45)
if(IsOdd(dir2angle(dir))) // We're going at an angle and we want thick angled tunnels.
L += -45
// Expand the edges of our tunnel
for(var/edge_angle in L)
var/turf/closed/mineral/edge = get_step(tunnel, angle2dir(dir2angle(dir) + edge_angle))
if(istype(edge))
SpawnFloor(edge)
if(!sanity)
break
// Move our tunnel forward
tunnel = get_step(tunnel, dir)
if(istype(tunnel))
// Small chance to have forks in our tunnel; otherwise dig our tunnel.
if(i > 3 && prob(20))
var/turf/open/floor/plating/asteroid/airless/cave/C = tunnel.ChangeTurf(data_having_type,FALSE,TRUE)
C.going_backwards = FALSE
C.produce_tunnel_from_data(rand(10, 15), dir)
else
SpawnFloor(tunnel)
else //if(!istype(tunnel, src.parent)) // We hit space/normal/wall, stop our tunnel.
break
// Chance to change our direction left or right.
if(i > 2 && prob(33))
// We can't go a full loop though
next_angle = -next_angle
setDir(angle2dir(dir2angle(dir) )+ next_angle)
/turf/open/floor/plating/asteroid/airless/cave/proc/SpawnFloor(turf/T)
for(var/S in RANGE_TURFS(1, src))
var/turf/NT = S
if(!NT || isspaceturf(NT) || istype(NT.loc, /area/mine/explored) || istype(NT.loc, /area/lavaland/surface/outdoors/explored))
sanity = 0
break
if(!sanity)
return
SpawnFlora(T)
SpawnMonster(T)
T.ChangeTurf(turf_type,FALSE,TRUE)
/turf/open/floor/plating/asteroid/airless/cave/proc/SpawnMonster(turf/T)
if(prob(30))
if(istype(loc, /area/mine/explored) || istype(loc, /area/lavaland/surface/outdoors/explored))
return
var/randumb = pickweight(mob_spawn_list)
while(randumb == SPAWN_MEGAFAUNA)
var/maybe_boss = pickweight(megafauna_spawn_list)
if(megafauna_spawn_list[maybe_boss])
randumb = maybe_boss
if(ispath(maybe_boss, /mob/living/simple_animal/hostile/megafauna/bubblegum)) //there can be only one bubblegum, so don't waste spawns on it
megafauna_spawn_list[maybe_boss] = 0
for(var/mob/living/simple_animal/hostile/H in urange(12,T)) //prevents mob clumps
if((ispath(randumb, /mob/living/simple_animal/hostile/megafauna) || ismegafauna(H)) && get_dist(src, H) <= 7)
return //if there's a megafauna within standard view don't spawn anything at all
if(ispath(randumb, /mob/living/simple_animal/hostile/asteroid) || istype(H, /mob/living/simple_animal/hostile/asteroid))
return //if the random is a standard mob, avoid spawning if there's another one within 12 tiles
if((ispath(randumb, /mob/living/simple_animal/hostile/spawner/lavaland) || istype(H, /mob/living/simple_animal/hostile/spawner/lavaland)) && get_dist(src, H) <= 2)
return //prevents tendrils spawning in each other's collapse range
new randumb(T)
return
#undef SPAWN_MEGAFAUNA
#undef SPAWN_BUBBLEGUM
/turf/open/floor/plating/asteroid/airless/cave/proc/SpawnFlora(turf/T)
if(prob(12))
if(istype(loc, /area/mine/explored) || istype(loc, /area/lavaland/surface/outdoors/explored))
return
var/randumb = pickweight(flora_spawn_list)
for(var/obj/structure/flora/ash/F in range(4, T)) //Allows for growing patches, but not ridiculous stacks of flora
if(!istype(F, randumb))
return
new randumb(T)
/turf/open/floor/plating/asteroid/snow
name = "snow"
desc = "Looks cold."
icon = 'icons/turf/snow.dmi'
baseturf = /turf/open/floor/plating/asteroid/snow
icon_state = "snow"
icon_plating = "snow"
initial_gas_mix = "TEMP=180"
slowdown = 2
environment_type = "snow"
sand_type = /obj/item/stack/sheet/mineral/snow
/turf/open/floor/plating/asteroid/snow/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/asteroid/snow/temperatre
initial_gas_mix = "TEMP=255.37"
/turf/open/floor/plating/asteroid/snow/atmosphere
initial_gas_mix = "o2=22;n2=82;TEMP=180"
@@ -1,122 +0,0 @@
///LAVA
/turf/open/floor/plating/lava
name = "lava"
icon_state = "lava"
gender = PLURAL //"That's some lava."
baseturf = /turf/open/floor/plating/lava //lava all the way down
slowdown = 2
luminosity = 1
var/static/list/safeties_typecache = list(/obj/structure/lattice/catwalk)
//if anything matching this typecache is found in the lava, we don't burn things
/turf/open/floor/plating/lava/New()
..()
safeties_typecache = typecacheof(safeties_typecache)
/turf/open/floor/plating/lava/ex_act()
return
/turf/open/floor/plating/lava/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/lava/Entered(atom/movable/AM)
if(burn_stuff(AM))
START_PROCESSING(SSobj, src)
/turf/open/floor/plating/lava/hitby(atom/movable/AM)
if(burn_stuff(AM))
START_PROCESSING(SSobj, src)
/turf/open/floor/plating/lava/process()
if(!burn_stuff())
STOP_PROCESSING(SSobj, src)
/turf/open/floor/plating/lava/make_plating()
return
/turf/open/floor/plating/lava/GetHeatCapacity()
. = 700000
/turf/open/floor/plating/lava/GetTemperature()
. = 5000
/turf/open/floor/plating/lava/TakeTemperature(temp)
/turf/open/floor/plating/lava/proc/is_safe()
var/list/found_safeties = typecache_filter_list(contents, safeties_typecache)
return LAZYLEN(found_safeties)
/turf/open/floor/plating/lava/proc/burn_stuff(AM)
. = 0
if(is_safe())
return FALSE
var/thing_to_check = src
if (AM)
thing_to_check = list(AM)
for(var/thing in thing_to_check)
if(isobj(thing))
var/obj/O = thing
if((O.resistance_flags & (LAVA_PROOF|ON_FIRE|INDESTRUCTIBLE)) || O.throwing)
continue
. = 1
if(!(O.resistance_flags & FLAMMABLE))
O.resistance_flags |= FLAMMABLE //Even fireproof things burn up in lava
if(O.resistance_flags & FIRE_PROOF)
O.resistance_flags &= ~FIRE_PROOF
if(O.armor["fire"] > 50) //obj with 100% fire armor still get slowly burned away.
O.armor["fire"] = 50
O.fire_act(10000, 1000)
else if (isliving(thing))
. = 1
var/mob/living/L = thing
if(L.movement_type & FLYING)
continue //YOU'RE FLYING OVER IT
if("lava" in L.weather_immunities)
continue
if(L.buckled)
if(isobj(L.buckled))
var/obj/O = L.buckled
if(O.resistance_flags & LAVA_PROOF)
continue
if(isliving(L.buckled)) //Goliath riding
var/mob/living/live = L.buckled
if("lava" in live.weather_immunities)
continue
L.adjustFireLoss(20)
if(L) //mobs turning into object corpses could get deleted here.
L.adjust_fire_stacks(20)
L.IgniteMob()
/turf/open/floor/plating/lava/attackby(obj/item/C, mob/user, params) //Lava isn't a good foundation to build on
return
/turf/open/floor/plating/lava/break_tile()
return
/turf/open/floor/plating/lava/burn_tile()
return
/turf/open/floor/plating/lava/smooth
name = "lava"
baseturf = /turf/open/floor/plating/lava/smooth
icon = 'icons/turf/floors/lava.dmi'
icon_state = "unsmooth"
smooth = SMOOTH_MORE | SMOOTH_BORDER
canSmoothWith = list(/turf/open/floor/plating/lava/smooth)
/turf/open/floor/plating/lava/smooth/lava_land_surface
initial_gas_mix = "o2=14;n2=23;TEMP=300"
planetary_atmos = TRUE
baseturf = /turf/open/chasm/straight_down/lava_land_surface
/turf/open/floor/plating/lava/smooth/airless
initial_gas_mix = "TEMP=2.7"
@@ -1,160 +0,0 @@
/turf/open/floor/plating/airless
icon_state = "plating"
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/plating/abductor
name = "alien floor"
icon_state = "alienpod1"
/turf/open/floor/plating/abductor/New()
..()
icon_state = "alienpod[rand(1,9)]"
/turf/open/floor/plating/abductor2
name = "alien plating"
icon_state = "alienplating"
/turf/open/floor/plating/abductor2/break_tile()
return //unbreakable
/turf/open/floor/plating/abductor2/burn_tile()
return //unburnable
/turf/open/floor/plating/astplate
icon_state = "asteroidplating"
/turf/open/floor/plating/airless/astplate
icon_state = "asteroidplating"
/turf/open/floor/plating/ashplanet
icon = 'icons/turf/mining.dmi'
name = "ash"
icon_state = "ash"
smooth = SMOOTH_MORE|SMOOTH_BORDER
var/smooth_icon = 'icons/turf/floors/ash.dmi'
desc = "The ground is covered in volcanic ash."
baseturf = /turf/open/floor/plating/ashplanet/wateryrock //I assume this will be a chasm eventually, once this becomes an actual surface
initial_gas_mix = "o2=14;n2=23;TEMP=300"
planetary_atmos = TRUE
/turf/open/floor/plating/ashplanet/New()
if(smooth)
pixel_y = -4
pixel_x = -4
icon = smooth_icon
..()
/turf/open/floor/plating/ashplanet/break_tile()
return
/turf/open/floor/plating/ashplanet/burn_tile()
return
/turf/open/floor/plating/ashplanet/ash
canSmoothWith = list(/turf/open/floor/plating/ashplanet/ash, /turf/closed)
layer = HIGH_TURF_LAYER
slowdown = 1
/turf/open/floor/plating/ashplanet/rocky
name = "rocky ground"
icon_state = "rockyash"
smooth_icon = 'icons/turf/floors/rocky_ash.dmi'
layer = MID_TURF_LAYER
canSmoothWith = list(/turf/open/floor/plating/ashplanet/rocky, /turf/closed)
/turf/open/floor/plating/ashplanet/wateryrock
name = "wet rocky ground"
smooth = null
icon_state = "wateryrock"
slowdown = 2
/turf/open/floor/plating/ashplanet/wateryrock/New()
icon_state = "[icon_state][rand(1, 9)]"
..()
/turf/open/floor/plating/beach
name = "beach"
icon = 'icons/misc/beach.dmi'
flags = NONE
/turf/open/floor/plating/beach/ex_act(severity, target)
contents_explosion(severity, target)
/turf/open/floor/plating/beach/sand
name = "sand"
desc = "Surf's up."
icon_state = "sand"
baseturf = /turf/open/floor/plating/beach/sand
/turf/open/floor/plating/beach/coastline_t
name = "coastline"
desc = "Tide's high tonight. Charge your batons."
icon_state = "sandwater_t"
baseturf = /turf/open/floor/plating/beach/coastline_t
/turf/open/floor/plating/beach/coastline_b
name = "coastline"
icon_state = "sandwater_b"
baseturf = /turf/open/floor/plating/beach/coastline_b
/turf/open/floor/plating/beach/water
name = "water"
desc = "You get the feeling that nobody's bothered to actually make this water functional..."
icon_state = "water"
baseturf = /turf/open/floor/plating/beach/water
/turf/open/floor/plating/ironsand
name = "iron sand"
desc = "Like sand, but more <i>metal</i>."
/turf/open/floor/plating/ironsand/New()
..()
icon_state = "ironsand[rand(1,15)]"
/turf/open/floor/plating/ironsand/burn_tile()
return
/turf/open/floor/plating/ice
name = "ice sheet"
desc = "A sheet of solid ice. Looks slippery."
icon = 'icons/turf/snow.dmi'
icon_state = "ice"
temperature = 180
baseturf = /turf/open/floor/plating/ice
slowdown = 1
wet = TURF_WET_PERMAFROST
/turf/open/floor/plating/ice/colder
temperature = 140
/turf/open/floor/plating/ice/temperate
temperature = 255.37
/turf/open/floor/plating/ice/break_tile()
return
/turf/open/floor/plating/ice/burn_tile()
return
/turf/open/floor/plating/snowed
name = "snowed-over plating"
desc = "A section of plating covered in a light layer of snow."
icon = 'icons/turf/snow.dmi'
icon_state = "snowplating"
temperature = 180
/turf/open/floor/plating/snowed/colder
temperature = 140
/turf/open/floor/plating/snowed/temperatre
temperature = 255.37
@@ -1,144 +0,0 @@
/turf/open/floor/engine
name = "reinforced floor"
icon_state = "engine"
thermal_conductivity = 0.025
heat_capacity = INFINITY
floor_tile = /obj/item/stack/rods
/turf/open/floor/engine/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/engine/break_tile()
return //unbreakable
/turf/open/floor/engine/burn_tile()
return //unburnable
/turf/open/floor/engine/make_plating(force = 0)
if(force)
..()
return //unplateable
/turf/open/floor/engine/attackby(obj/item/weapon/C, mob/user, params)
if(!C || !user)
return
if(istype(C, /obj/item/weapon/wrench))
user << "<span class='notice'>You begin removing rods...</span>"
playsound(src, C.usesound, 80, 1)
if(do_after(user, 30*C.toolspeed, target = src))
if(!istype(src, /turf/open/floor/engine))
return
new /obj/item/stack/rods(src, 2)
ChangeTurf(/turf/open/floor/plating)
return
/turf/open/floor/engine/acid_act(acidpwr, acid_volume)
acidpwr = min(acidpwr, 50) //we reduce the power so reinf floor never get melted.
. = ..()
/turf/open/floor/engine/ex_act(severity,target)
var/shielded = is_shielded()
contents_explosion(severity, target)
if(severity != 1 && shielded && target != src)
return
if(target == src)
src.ChangeTurf(src.baseturf)
return
switch(severity)
if(1)
if(prob(80))
ReplaceWithLattice()
else if(prob(50))
ChangeTurf(src.baseturf)
else
make_plating(1)
if(2)
if(prob(50))
make_plating(1)
/turf/open/floor/engine/singularity_pull(S, current_size)
if(current_size >= STAGE_FIVE)
if(floor_tile)
if(prob(30))
PoolOrNew(floor_tile, src)
make_plating()
else if(prob(30))
ReplaceWithLattice()
/turf/open/floor/engine/attack_paw(mob/user)
return src.attack_hand(user)
/turf/open/floor/engine/attack_hand(mob/user)
user.Move_Pulled(src)
//air filled floors; used in atmos pressure chambers
/turf/open/floor/engine/n2o
name = "n2o floor"
initial_gas_mix = "n2o=6000;TEMP=293.15"
/turf/open/floor/engine/co2
name = "co2 floor"
initial_gas_mix = "co2=50000;TEMP=293.15"
/turf/open/floor/engine/plasma
name = "plasma floor"
initial_gas_mix = "plasma=70000;TEMP=293.15"
/turf/open/floor/engine/o2
name = "o2 floor"
initial_gas_mix = "o2=100000;TEMP=293.15"
/turf/open/floor/engine/n2
name = "n2 floor"
initial_gas_mix = "n2=100000;TEMP=293.15"
/turf/open/floor/engine/air
name = "air floor"
initial_gas_mix = "o2=2644;n2=10580;TEMP=293.15"
/turf/open/floor/engine/cult
name = "engraved floor"
icon_state = "plating"
var/obj/effect/clockwork/overlay/floor/bloodcult/realappearence
/turf/open/floor/engine/cult/New()
..()
PoolOrNew(/obj/effect/overlay/temp/cult/turf/floor, src)
realappearence = PoolOrNew(/obj/effect/clockwork/overlay/floor/bloodcult, src)
realappearence.linked = src
/turf/open/floor/engine/cult/Destroy()
be_removed()
return ..()
/turf/open/floor/engine/cult/ChangeTurf(path, defer_change = FALSE)
if(path != type)
be_removed()
return ..()
/turf/open/floor/engine/cult/proc/be_removed()
qdel(realappearence)
realappearence = null
/turf/open/floor/engine/cult/narsie_act()
return
/turf/open/floor/engine/cult/ratvar_act()
. = ..()
if(istype(src, /turf/open/floor/engine/cult)) //if we haven't changed type
var/previouscolor = color
color = "#FAE48C"
animate(src, color = previouscolor, time = 8)
addtimer(src, "update_atom_colour", 8)
/turf/open/floor/engine/cult/airless
initial_gas_mix = "TEMP=2.7"
/turf/open/floor/engine/vacuum
name = "vacuum floor"
initial_gas_mix = "TEMP=2.7"
@@ -1,5 +1,6 @@
//ASTEROID FLOORS
/turf/open/floor/plasteel/asteroid/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "asteroid_warn"
/turf/open/floor/plasteel/asteroid/warning/side
icon_state = "asteroid_warn_side"
@@ -9,6 +10,7 @@
icon_state = "asteroid_warn_end"
/turf/open/floor/plasteel/airless/asteroid/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "asteroid_warn"
/turf/open/floor/plasteel/airless/asteroid/warning/side
icon_state = "asteroid_warn_side"
@@ -18,6 +20,7 @@
icon_state = "asteroid_warn_end"
/turf/open/floor/plating/astplate/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "astplate_warn"
/turf/open/floor/plating/astplate/warning/corner
icon_state = "astplate_warn_corner"
@@ -27,6 +30,7 @@
icon_state = "astplate_warn_end"
/turf/open/floor/plating/airless/astplate/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "astplate_warn"
/turf/open/floor/plating/airless/astplate/warning/corner
icon_state = "astplate_warn_corner"
@@ -38,6 +42,7 @@
//PLASTEEL
/turf/open/floor/plasteel/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "plasteel_warn"
/turf/open/floor/plasteel/warning/corner
icon_state = "plasteel_warn_corner"
@@ -47,6 +52,7 @@
icon_state = "plasteel_warn_end"
/turf/open/floor/plasteel/airless/warning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "plasteel_warn"
/turf/open/floor/plasteel/airless/warning/corner
icon_state = "plasteel_warn_corner"
@@ -57,6 +63,7 @@
//PLASTEEL WHITE
/turf/open/floor/plasteel/warnwhite
icon = 'icons/turf/floors/warning.dmi'
icon_state = "white_warn"
/turf/open/floor/plasteel/warnwhite/corner
icon_state = "white_warn_corner"
@@ -66,6 +73,7 @@
icon_state = "white_warn_end"
/turf/open/floor/plasteel/airless/warnwhite
icon = 'icons/turf/floors/warning.dmi'
icon_state = "white_warn"
/turf/open/floor/plasteel/airless/warnwhite/corner
icon_state = "white_warn_corner"
@@ -77,6 +85,7 @@
//PLASTEEL BLACK
/turf/open/floor/plasteel/darkwarning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "black_warn"
/turf/open/floor/plasteel/darkwarning/corner
icon_state = "black_warn_corner"
@@ -86,6 +95,7 @@
icon_state = "black_warn_end"
/turf/open/floor/plasteel/airless/darkwarning
icon = 'icons/turf/floors/warning.dmi'
icon_state = "black_warn"
/turf/open/floor/plasteel/airless/darkwarning/corner
icon_state = "black_warn_corner"
@@ -97,6 +107,7 @@
//PLATING
/turf/open/floor/plating/warnplate
icon = 'icons/turf/floors/warning.dmi'
icon_state = "plating_warn"
/turf/open/floor/plating/warnplate/corner
icon_state = "plating_warn_corner"
@@ -106,6 +117,7 @@
icon_state = "plating_warn_end"
/turf/open/floor/plating/airless/warnplate
icon = 'icons/turf/floors/warning.dmi'
icon_state = "plating_warn"
/turf/open/floor/plating/airless/warnplate/corner
icon_state = "plating_warn_corner"