7e9b96a00f
* Maps and things no code/icons * helpers defines globalvars * Onclick world.dm orphaned_procs * subsystems Round vote and shuttle autocall done here too * datums * Game folder * Admin - chatter modules * clothing - mining * modular computers - zambies * client * mob level 1 * mob stage 2 + simple_animal * silicons n brains * mob stage 3 + Alien/Monkey * human mobs * icons updated * some sounds * emitter y u no commit * update tgstation.dme * compile fixes * travis fixes Also removes Fast digest mode, because reasons. * tweaks for travis Mentors are broke again Also fixes Sizeray guns * oxygen loss fix for vore code. * removes unused code * some code updates * bulk fixes * further fixes * outside things * whoops. * Maint bar ported * GLOBs.
172 lines
4.5 KiB
Plaintext
172 lines
4.5 KiB
Plaintext
/* In this file:
|
|
* Wood floor
|
|
* Grass floor
|
|
* Carpet floor
|
|
* Fake pits
|
|
* Fake space
|
|
*/
|
|
|
|
/turf/open/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/open/floor/wood/attackby(obj/item/C, mob/user, params)
|
|
if(..())
|
|
return
|
|
if(istype(C, /obj/item/weapon/screwdriver))
|
|
pry_tile(C, user)
|
|
return
|
|
|
|
/turf/open/floor/wood/try_replace_tile(obj/item/stack/tile/T, mob/user, params)
|
|
if(T.turf_type == type)
|
|
return
|
|
var/obj/item/weapon/tool = user.is_holding_item_of_type(/obj/item/weapon/screwdriver)
|
|
if(!tool)
|
|
tool = user.is_holding_item_of_type(/obj/item/weapon/crowbar)
|
|
if(!tool)
|
|
return
|
|
var/turf/open/floor/plating/P = pry_tile(tool, user, TRUE)
|
|
if(!istype(P))
|
|
return
|
|
P.attackby(T, user, params)
|
|
|
|
/turf/open/floor/wood/pry_tile(obj/item/C, mob/user, silent = FALSE)
|
|
var/is_screwdriver = istype(C, /obj/item/weapon/screwdriver)
|
|
playsound(src, C.usesound, 80, 1)
|
|
return remove_tile(user, silent, make_tile = is_screwdriver)
|
|
|
|
/turf/open/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='danger'>You remove the broken planks.</span>")
|
|
else
|
|
if(make_tile)
|
|
if(user && !silent)
|
|
to_chat(user, "<span class='danger'>You unscrew the planks.</span>")
|
|
if(floor_tile)
|
|
new floor_tile(src)
|
|
else
|
|
if(user && !silent)
|
|
to_chat(user, "<span class='danger'>You forcefully pry off the planks, destroying them in the process.</span>")
|
|
return make_plating()
|
|
|
|
/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."
|
|
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/Initialize()
|
|
..()
|
|
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/Initialize()
|
|
..()
|
|
if(prob(15))
|
|
icon_state = "basalt[rand(0, 12)]"
|
|
set_basalt_light(src)
|
|
|
|
/turf/open/floor/carpet
|
|
name = "carpet"
|
|
desc = "Soft velvet carpeting. Feels good between your toes."
|
|
icon = 'icons/turf/floors/carpet.dmi'
|
|
icon_state = "carpet"
|
|
floor_tile = /obj/item/stack/tile/carpet
|
|
broken_states = list("damaged")
|
|
smooth = SMOOTH_TRUE
|
|
canSmoothWith = list(/turf/open/floor/carpet, /turf/open/chasm)
|
|
flags = NONE
|
|
|
|
/turf/open/floor/carpet/Initialize()
|
|
..()
|
|
update_icon()
|
|
|
|
/turf/open/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/open/floor/carpet/narsie_act()
|
|
return
|
|
|
|
/turf/open/floor/carpet/break_tile()
|
|
broken = 1
|
|
update_icon()
|
|
|
|
/turf/open/floor/carpet/burn_tile()
|
|
burnt = 1
|
|
update_icon()
|
|
|
|
|
|
|
|
turf/open/floor/fakepit
|
|
desc = "A clever illusion designed to look like a bottomless pit."
|
|
smooth = SMOOTH_TRUE | SMOOTH_BORDER | SMOOTH_MORE
|
|
canSmoothWith = list(/turf/open/floor/fakepit, /turf/open/chasm)
|
|
icon = 'icons/turf/floors/Chasms.dmi'
|
|
icon_state = "smooth"
|
|
|
|
/turf/open/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/open/floor/fakespace/Initialize()
|
|
..()
|
|
icon_state = "[rand(0,25)]"
|