3f1375ba39
Conflicts: _maps/RandomZLevels/Cabin.dmm _maps/RandomZLevels/beach2.dmm _maps/RandomZLevels/caves.dmm _maps/RandomZLevels/research.dmm _maps/RandomZLevels/snowdin.dmm _maps/RandomZLevels/undergroundoutpost45.dmm _maps/map_files/DreamStation/dreamstation04.dmm _maps/map_files/EfficiencyStation/EfficiencyStation.dmm _maps/map_files/MetaStation/MetaStation.v41I.dmm _maps/map_files/MiniStation/MiniStation.dmm _maps/map_files/TgStation/tgstation.2.1.3.dmm _maps/map_files/generic/z4.dmm _maps/templates/lavaland_surface_automated_trade_outpost.dmm _maps/templates/lavaland_surface_biodome_winter.dmm _maps/templates/lavaland_surface_prisoner_crash.dmm _maps/templates/lavaland_surface_seed_vault.dmm code/controllers/subsystem/air.dm code/game/asteroid.dm code/game/atoms.dm code/game/gamemodes/nuclear/nuclearbomb.dm code/game/machinery/computer/arcade.dm code/game/objects/effects/aliens.dm code/game/objects/effects/overlays.dm code/game/objects/items/apc_frame.dm code/game/objects/structures/false_walls.dm code/game/objects/structures/girders.dm code/game/turfs/simulated.dm code/game/turfs/simulated/floor/fancy_floor.dm code/game/turfs/simulated/floor/mineral_floor.dm code/game/turfs/simulated/floor/plating.dm code/game/turfs/simulated/river.dm code/game/turfs/simulated/walls_misc.dm code/game/turfs/simulated/walls_reinforced.dm code/modules/admin/verbs/buildmode.dm code/modules/atmospherics/environmental/LINDA_turf_tile.dm code/modules/events/spacevine.dm code/modules/flufftext/Hallucination.dm code/modules/holodeck/turfs.dm code/modules/mining/mine_items.dm code/modules/mining/mine_turfs.dm code/modules/mob/interactive.dm code/modules/mob/living/carbon/human/life.dm code/modules/mob/living/living.dm code/modules/mob/living/simple_animal/bot/floorbot.dm code/modules/mob/living/simple_animal/guardian/guardian.dm code/modules/mob/living/simple_animal/hostile/hostile.dm code/modules/mob/mob_movement.dm code/modules/power/singularity/narsie.dm code/modules/reagents/chemistry/reagents/pyrotechnic_reagents.dm code/modules/research/server.dm
133 lines
3.1 KiB
Plaintext
133 lines
3.1 KiB
Plaintext
/*Cabin areas*/
|
|
/area/awaymission/snowforest
|
|
name = "Snow Forest"
|
|
icon_state = "away"
|
|
requires_power = 0
|
|
luminosity = 1
|
|
lighting_use_dynamic = DYNAMIC_LIGHTING_ENABLED
|
|
|
|
/area/awaymission/cabin
|
|
name = "Cabin"
|
|
icon_state = "away2"
|
|
requires_power = 1
|
|
luminosity = 0
|
|
lighting_use_dynamic = DYNAMIC_LIGHTING_ENABLED
|
|
|
|
/area/awaymission/snowforest/lumbermill
|
|
name = "Lumbermill"
|
|
icon_state = "away3"
|
|
|
|
|
|
|
|
|
|
|
|
/*Cabin code*/
|
|
/obj/structure/fireplace
|
|
name = "fireplace"
|
|
desc = "warm and toasty"
|
|
icon = 'icons/obj/stationobjs.dmi'
|
|
icon_state = "fireplace-active"
|
|
density = 0
|
|
var/active = 1
|
|
|
|
/obj/structure/fireplace/initialize()
|
|
..()
|
|
toggleFireplace()
|
|
|
|
/obj/structure/fireplace/attack_hand(mob/living/user)
|
|
if(active)
|
|
active = 0
|
|
toggleFireplace()
|
|
else
|
|
..()
|
|
|
|
|
|
/obj/structure/fireplace/attackby(obj/item/W,mob/living/user,params)
|
|
if(!active)
|
|
if(W.is_hot())
|
|
active = 1
|
|
toggleFireplace()
|
|
else
|
|
..()
|
|
else
|
|
W.fire_act()
|
|
|
|
/obj/structure/fireplace/proc/toggleFireplace()
|
|
if(active)
|
|
SetLuminosity(8)
|
|
icon_state = "fireplace-active"
|
|
else
|
|
SetLuminosity(0)
|
|
icon_state = "fireplace"
|
|
|
|
/obj/structure/fireplace/extinguish()
|
|
if(active)
|
|
active = 0
|
|
toggleFireplace()
|
|
|
|
/obj/structure/fireplace/fire_act()
|
|
if(!active)
|
|
active = 1
|
|
toggleFireplace()
|
|
|
|
/obj/machinery/recycler/lumbermill
|
|
name = "lumbermill saw"
|
|
desc = "Faster then the cartoons!"
|
|
emagged = 2 //Always grinds people
|
|
|
|
/obj/machinery/recycler/lumbermill/recycle(obj/item/weapon/grown/log/L, sound = 1)
|
|
L.loc = src.loc
|
|
if(!istype(L))
|
|
return
|
|
if(sound)
|
|
playsound(src.loc, 'sound/weapons/chainsawhit.ogg', 100, 1)
|
|
new L.plank_type(src.loc, 1 + round(L.seed.potency / 25))
|
|
qdel(L)
|
|
|
|
/mob/living/simple_animal/chicken/rabbit/normal
|
|
icon_state = "b_rabbit"
|
|
icon_living = "b_rabbit"
|
|
icon_dead = "b_rabbit_dead"
|
|
icon_prefix = "b_rabbit"
|
|
minbodytemp = 0
|
|
eggsleft = 0
|
|
egg_type = null
|
|
speak = list()
|
|
|
|
/*Cabin's forest*/
|
|
/datum/mapGenerator/snowy
|
|
modules = list(/datum/mapGeneratorModule/snow/pineTrees, \
|
|
/datum/mapGeneratorModule/snow/deadTrees, \
|
|
/datum/mapGeneratorModule/snow/randBushes, \
|
|
/datum/mapGeneratorModule/snow/randIceRocks, \
|
|
/datum/mapGeneratorModule/snow/bunnies)
|
|
|
|
/datum/mapGeneratorModule/snow/checkPlaceAtom(turf/T)
|
|
if(istype(T,/turf/open/floor/plating/asteroid/snow))
|
|
return ..(T)
|
|
return 0
|
|
|
|
/datum/mapGeneratorModule/snow/pineTrees
|
|
spawnableAtoms = list(/obj/structure/flora/tree/pine = 30)
|
|
|
|
/datum/mapGeneratorModule/snow/deadTrees
|
|
spawnableAtoms = list(/obj/structure/flora/tree/dead = 10)
|
|
|
|
/datum/mapGeneratorModule/snow/randBushes
|
|
spawnableAtoms = list()
|
|
|
|
/datum/mapGeneratorModule/snow/randBushes/New()
|
|
..()
|
|
spawnableAtoms = typesof(/obj/structure/flora/ausbushes)
|
|
for(var/i in spawnableAtoms)
|
|
spawnableAtoms[i] = 1
|
|
|
|
/datum/mapGeneratorModule/snow/bunnies
|
|
//spawnableAtoms = list(/mob/living/simple_animal/chicken/rabbit/normal = 0.1)
|
|
spawnableAtoms = list(/mob/living/simple_animal/chicken/rabbit = 0.5)
|
|
|
|
/datum/mapGeneratorModule/snow/randIceRocks
|
|
spawnableAtoms = list(/obj/structure/flora/rock/icy = 5, /obj/structure/flora/rock/pile/icy = 5)
|
|
|
|
/obj/effect/landmark/mapGenerator/snowy
|
|
mapGeneratorType = /datum/mapGenerator/snowy |