Files
Paradise/code/game/turfs/simulated/floor/fancy_floor.dm
T
Fox McCloudandGitHub 0dea896023 Minor Turf Refactor (#13690)
* Turf GC

* might as well do this

* additions

* Bay being bay
2020-06-30 17:47:09 -06:00

136 lines
3.9 KiB
Plaintext

/turf/simulated/floor/wood
icon_state = "wood"
floor_tile = /obj/item/stack/tile/wood
prying_tool_list = list(TOOL_SCREWDRIVER)
broken_states = list("wood-broken", "wood-broken2", "wood-broken3", "wood-broken4", "wood-broken5", "wood-broken6", "wood-broken7")
footstep_sounds = list(
"human" = list('sound/effects/footstep/wood_all.ogg'), //@RonaldVanWonderen of Freesound.org
"xeno" = list('sound/effects/footstep/wood_all.ogg') //@RonaldVanWonderen of Freesound.org
)
/turf/simulated/floor/wood/screwdriver_act(mob/user, obj/item/I)
. = TRUE
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
return
remove_tile(user, FALSE, TRUE)
/turf/simulated/floor/wood/crowbar_act(mob/user, obj/item/I)
. = TRUE
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
return
remove_tile(user, FALSE, FALSE)
/turf/simulated/floor/wood/remove_tile(mob/user, silent = FALSE, make_tile = TRUE)
if(broken || burnt)
broken = 0
burnt = 0
if(user && !silent)
to_chat(user, "<span class='notice'>You remove the broken planks.</span>")
else
if(make_tile)
if(user && !silent)
to_chat(user, "<span class='notice'>You unscrew the planks.</span>")
if(floor_tile)
new floor_tile(src)
else
if(user && !silent)
to_chat(user, "<span class='warning'>You forcefully pry off the planks, destroying them in the process.</span>")
return make_plating()
/turf/simulated/floor/wood/cold
oxygen = 22
nitrogen = 82
temperature = 180
/turf/simulated/floor/grass
name = "grass patch"
icon_state = "grass1"
floor_tile = /obj/item/stack/tile/grass
broken_states = list("sand")
/turf/simulated/floor/grass/Initialize(mapload)
. = ..()
update_icon()
/turf/simulated/floor/grass/update_icon()
icon_state = "grass[pick("1","2","3","4")]"
/turf/simulated/floor/grass/attackby(obj/item/C, mob/user, params)
if(..())
return
if(istype(C, /obj/item/shovel))
new /obj/item/stack/ore/glass(src, 2) //Make some sand if you shovel grass
to_chat(user, "<span class='notice'>You shovel the grass.</span>")
playsound(src, 'sound/effects/shovel_dig.ogg', 50, 1)
make_plating()
/turf/simulated/floor/carpet
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
footstep_sounds = list(
"human" = list('sound/effects/footstep/carpet_human.ogg'),
"xeno" = list('sound/effects/footstep/carpet_xeno.ogg')
)
/turf/simulated/floor/carpet/Initialize(mapload)
. = ..()
update_icon()
/turf/simulated/floor/carpet/update_icon()
if(!..())
return 0
if(!broken && !burnt)
if(smooth)
queue_smooth(src)
else
make_plating()
if(smooth)
queue_smooth_neighbors(src)
/turf/simulated/floor/carpet/break_tile()
broken = 1
update_icon()
/turf/simulated/floor/carpet/burn_tile()
burnt = 1
update_icon()
/turf/simulated/floor/carpet/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
return FALSE
/turf/simulated/floor/carpet/black
icon = 'icons/turf/floors/carpet_black.dmi'
floor_tile = /obj/item/stack/tile/carpet/black
canSmoothWith = list(/turf/simulated/floor/carpet/black)
/turf/simulated/floor/fakespace
icon = 'icons/turf/space.dmi'
icon_state = "0"
floor_tile = /obj/item/stack/tile/fakespace
broken_states = list("damaged")
plane = PLANE_SPACE
/turf/simulated/floor/fakespace/Initialize(mapload)
. = ..()
icon_state = SPACE_ICON_STATE
/turf/simulated/floor/fakespace/get_smooth_underlay_icon(mutable_appearance/underlay_appearance, turf/asking_turf, adjacency_dir)
underlay_appearance.icon = 'icons/turf/space.dmi'
underlay_appearance.icon_state = SPACE_ICON_STATE
underlay_appearance.plane = PLANE_SPACE
return TRUE
/turf/simulated/floor/carpet/arcade
icon = 'icons/goonstation/turf/floor.dmi'
icon_state = "arcade"
floor_tile = /obj/item/stack/tile/arcade_carpet
smooth = SMOOTH_FALSE