mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Make catwalks unsimulated. Fixes #403.
This commit is contained in:
@@ -260,7 +260,7 @@
|
||||
|
||||
// CATWALKS
|
||||
// Space and plating, all in one buggy fucking turf!
|
||||
/turf/simulated/floor/plating/airless/catwalk
|
||||
/turf/unsimulated/floor/airless/catwalk
|
||||
icon = 'icons/turf/catwalks.dmi'
|
||||
icon_state = "catwalk0"
|
||||
name = "catwalk"
|
||||
@@ -273,13 +273,15 @@
|
||||
lighting_lumcount = 4 //starlight
|
||||
accepts_lighting=0 // Don't apply overlays
|
||||
|
||||
intact = 0
|
||||
|
||||
New()
|
||||
..()
|
||||
// Fucking cockshit dickfuck shitslut
|
||||
name = "catwalk"
|
||||
update_icon(1)
|
||||
|
||||
update_icon(var/propogate=1)
|
||||
proc/update_icon(var/propogate=1)
|
||||
underlays.Cut()
|
||||
underlays += new /icon('icons/turf/space.dmi',"[((x + y) ^ ~(x * y) + z) % 25]")
|
||||
|
||||
@@ -287,54 +289,20 @@
|
||||
for(var/direction in cardinal)
|
||||
var/turf/T = get_step(src,direction)
|
||||
if(T.is_catwalk())
|
||||
var/turf/simulated/floor/plating/airless/catwalk/C=T
|
||||
var/turf/unsimulated/floor/airless/catwalk/C=T
|
||||
dirs |= direction
|
||||
if(propogate)
|
||||
C.update_icon(0)
|
||||
icon_state="catwalk[dirs]"
|
||||
|
||||
|
||||
attackby(obj/item/C as obj, mob/user as mob)
|
||||
if(!C || !user)
|
||||
return 0
|
||||
if(istype(C, /obj/item/weapon/screwdriver))
|
||||
ReplaceWithLattice()
|
||||
playsound(src, 'sound/items/Screwdriver.ogg', 80, 1)
|
||||
return
|
||||
|
||||
is_catwalk()
|
||||
return 1
|
||||
|
||||
/** ACT UNSIMULATED! **/
|
||||
assume_air(datum/gas_mixture/giver) //use this for machines to adjust air
|
||||
del(giver)
|
||||
return 0
|
||||
|
||||
return_air()
|
||||
//Create gas mixture to hold data for passing
|
||||
var/datum/gas_mixture/GM = new
|
||||
|
||||
GM.oxygen = oxygen
|
||||
GM.carbon_dioxide = carbon_dioxide
|
||||
GM.nitrogen = nitrogen
|
||||
GM.toxins = toxins
|
||||
|
||||
GM.temperature = temperature
|
||||
GM.update_values()
|
||||
|
||||
return GM
|
||||
|
||||
// For new turfs
|
||||
copy_air_from(var/turf/T)
|
||||
oxygen = T.oxygen
|
||||
carbon_dioxide = T.carbon_dioxide
|
||||
nitrogen = T.nitrogen
|
||||
toxins = T.toxins
|
||||
|
||||
temperature = T.temperature
|
||||
|
||||
remove_air(amount as num)
|
||||
var/datum/gas_mixture/GM = new
|
||||
|
||||
var/sum = oxygen + carbon_dioxide + nitrogen + toxins
|
||||
if(sum>0)
|
||||
GM.oxygen = (oxygen/sum)*amount
|
||||
GM.carbon_dioxide = (carbon_dioxide/sum)*amount
|
||||
GM.nitrogen = (nitrogen/sum)*amount
|
||||
GM.toxins = (toxins/sum)*amount
|
||||
|
||||
GM.temperature = temperature
|
||||
GM.update_values()
|
||||
|
||||
return GM
|
||||
return 1
|
||||
@@ -45,7 +45,7 @@
|
||||
playsound(src, 'sound/weapons/Genhit.ogg', 50, 1)
|
||||
user << "\blue You build a catwalk!"
|
||||
R.use(2)
|
||||
ChangeTurf(/turf/simulated/floor/plating/airless/catwalk)
|
||||
ChangeTurf(/turf/unsimulated/floor/airless/catwalk)
|
||||
del(L)
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user