mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 09:54:52 +00:00
* sprites and sounds * The code for the reactor itself * Update code/modules/power/reactor/rbmk.dm Co-authored-by: Putnam3145 <putnam3145@gmail.com> * Update code/modules/power/reactor/rbmk.dm Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> * Map stuff * Removes Clamps. * Matrices separated, this was a mistake on my part. * Update tgstation.dme * removal as per putnam's review * redfines highest available as 1007 * possible soundloop fix? probably not. * temporary config thing to make engine load * changes to map template from splurt * Update code/modules/power/reactor/rbmk.dm Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> * Update code/modules/power/reactor/rbmk.dm Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> * actually somehow fixed the runtimes? * old maps from hyper, not needed.. * Revert "old maps from hyper, not needed.." This reverts commit 92ccd89952d360206926d8b57e82084994a6a0d6. * take two on removal * fixes power output * Update code/modules/power/reactor/rbmk.dm Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> * Update code/modules/power/reactor/rbmk.dm Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com> * deals with the double turf * Revert "temporary config thing to make engine load" This reverts commit 7f52188d5261cd60024ef36cf7c33df0748d0c79. * was told to bring it back * don't need to change these * next time I'll just copy paste it instead of type it. * a * Flexi Seal crate so we can fix the reactor * set power to 0 so it can be fixed * nerfs power output Co-authored-by: Putnam3145 <putnam3145@gmail.com> Co-authored-by: SandPoot <43283559+SandPoot@users.noreply.github.com>
118 lines
4.0 KiB
Plaintext
118 lines
4.0 KiB
Plaintext
/datum/map_template/shelter
|
|
var/shelter_id
|
|
var/description
|
|
var/blacklisted_turfs
|
|
var/whitelisted_turfs
|
|
var/banned_areas
|
|
var/banned_objects
|
|
|
|
/datum/map_template/shelter/New()
|
|
. = ..()
|
|
blacklisted_turfs = typecacheof(/turf/closed)
|
|
whitelisted_turfs = list()
|
|
banned_areas = typecacheof(/area/shuttle)
|
|
banned_objects = list()
|
|
|
|
/datum/map_template/shelter/proc/check_deploy(turf/deploy_location)
|
|
var/affected = get_affected_turfs(deploy_location, centered=TRUE)
|
|
for(var/turf/T in affected)
|
|
var/area/A = get_area(T)
|
|
if(is_type_in_typecache(A, banned_areas))
|
|
return SHELTER_DEPLOY_BAD_AREA
|
|
|
|
var/banned = is_type_in_typecache(T, blacklisted_turfs)
|
|
var/permitted = is_type_in_typecache(T, whitelisted_turfs)
|
|
if(banned && !permitted)
|
|
return SHELTER_DEPLOY_BAD_TURFS
|
|
|
|
for(var/obj/O in T)
|
|
if((O.density && O.anchored) || is_type_in_typecache(O, banned_objects))
|
|
return SHELTER_DEPLOY_ANCHORED_OBJECTS
|
|
return SHELTER_DEPLOY_ALLOWED
|
|
|
|
/datum/map_template/shelter/alpha
|
|
name = "Shelter Alpha"
|
|
shelter_id = "shelter_alpha"
|
|
description = "A cosy self-contained pressurized shelter, with \
|
|
built-in navigation, entertainment, medical facilities and a \
|
|
sleeping area! Order now, and we'll throw in a TINY FAN, \
|
|
absolutely free!"
|
|
mappath = "_maps/templates/shelter_1.dmm"
|
|
|
|
/datum/map_template/shelter/alpha/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
/datum/map_template/shelter/beta
|
|
name = "Shelter Beta"
|
|
shelter_id = "shelter_beta"
|
|
description = "An extremely luxurious shelter, containing all \
|
|
the amenities of home, including carpeted floors, hot and cold \
|
|
running water, a gourmet three course meal, cooking facilities, \
|
|
and a deluxe companion to keep you from getting lonely during \
|
|
an ash storm."
|
|
mappath = "_maps/templates/shelter_2.dmm"
|
|
|
|
/datum/map_template/shelter/beta/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
/datum/map_template/shelter/charlie
|
|
name = "Shelter Charlie"
|
|
shelter_id = "shelter_charlie"
|
|
description = "A luxury elite bar which holds an entire bar \
|
|
along with two vending machines, tables, and a restroom that \
|
|
also has a sink. This isn't a survival capsule and so you can \
|
|
expect that this won't save you if you're bleeding out to \
|
|
death."
|
|
mappath = "_maps/templates/shelter_3.dmm"
|
|
|
|
/datum/map_template/shelter/charlie/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
/datum/map_template/shelter/delta
|
|
name = "Shelter Delta"
|
|
shelter_id = "shelter_delta"
|
|
description = "A massive but barebones survival capsule useful\
|
|
for projects that require great deals of space."
|
|
mappath = "_maps/templates/shelter_4.dmm"
|
|
|
|
/datum/map_template/shelter/delta/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
/datum/map_template/shelter/epsilon
|
|
name = "Shelter Epsilon"
|
|
shelter_id = "shelter_epsilon"
|
|
description = "A small apartment in the palm of your hand."
|
|
mappath = "_maps/templates/shelter_5.dmm"
|
|
|
|
/datum/map_template/shelter/epsilon/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
/datum/map_template/shelter/zeta
|
|
name = "Shelter zeta"
|
|
shelter_id = "shelter_zeta"
|
|
description = "A survival capsule with a garden and kitchen. Commonly used by space fast food joints everywhere."
|
|
mappath = "_maps/templates/shelter_6.dmm"
|
|
|
|
/datum/map_template/shelter/zeta/New()
|
|
. = ..()
|
|
whitelisted_turfs = typecacheof(/turf/closed/mineral)
|
|
banned_objects = typecacheof(/obj/structure/stone_tile)
|
|
|
|
// yes, I COULD make it a seperate object from the surv capsule but the code needed is indeticle soo...
|
|
|
|
/datum/map_template/shelter/reactor
|
|
name = "RBMK Reactor"
|
|
shelter_id = "reactor"
|
|
description = "A reactor core, coolant and moderator loop not included."
|
|
mappath = "_maps/templates/reactor_1.dmm"
|