90 lines
2.1 KiB
Plaintext
90 lines
2.1 KiB
Plaintext
/* In this file:
|
|
* Wood floor
|
|
* Grass floor
|
|
* Carpet floor
|
|
*/
|
|
|
|
/turf/simulated/floor/wood
|
|
icon_state = "wood"
|
|
floor_tile = /obj/item/stack/tile/wood
|
|
broken_states = list("wood-broken", "wood-broken2", "wood-broken3", "wood-broken4", "wood-broken5", "wood-broken6", "wood-broken7")
|
|
|
|
/turf/simulated/floor/wood/attackby(obj/item/C, mob/user, params)
|
|
if(..())
|
|
return
|
|
if(istype(C, /obj/item/weapon/screwdriver))
|
|
if(broken || burnt)
|
|
return
|
|
user << "<span class='danger'>You unscrew the planks.</span>"
|
|
new floor_tile(src)
|
|
make_plating()
|
|
playsound(src, 'sound/items/Screwdriver.ogg', 80, 1)
|
|
return
|
|
|
|
/turf/simulated/floor/wood/cold
|
|
temperature = 255.37
|
|
|
|
/turf/simulated/floor/grass
|
|
name = "Grass patch"
|
|
icon_state = "grass"
|
|
floor_tile = /obj/item/stack/tile/grass
|
|
broken_states = list("sand")
|
|
|
|
/turf/simulated/floor/grass/New()
|
|
..()
|
|
spawn(1)
|
|
update_icon()
|
|
|
|
/turf/simulated/floor/grass/attackby(obj/item/C, mob/user, params)
|
|
if(..())
|
|
return
|
|
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/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
|
|
|
|
/turf/simulated/floor/carpet/New()
|
|
..()
|
|
spawn(1)
|
|
update_icon()
|
|
|
|
/turf/simulated/floor/carpet/update_icon()
|
|
if(!..())
|
|
return 0
|
|
if(!broken && !burnt)
|
|
if(smooth)
|
|
smooth_icon(src)
|
|
else
|
|
make_plating()
|
|
if(smooth)
|
|
smooth_icon_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/fakespace
|
|
icon = 'icons/turf/space.dmi'
|
|
icon_state = "0"
|
|
floor_tile = /obj/item/stack/tile/fakespace
|
|
broken_states = list("damaged")
|
|
|
|
/turf/simulated/floor/fakespace/New()
|
|
..()
|
|
icon_state = "[rand(0,25)]" |