* ports all the tg junk for icemoon, not yet changed to make it all compile * fixes * fixes * fixes * fixes * fixes * new stuff * whew * fixes * it compiles, now to fix the maps * fixes the maps * fixes solars + removes the space tiles in the toxins burn chamber * nukes the SpawnTerrain proc used for tg geysers * linter fix * fix * fixes the non matching turf atmos (hopefully) * more mapping fixes * dmm2tgm * unfucks changeturf for the more_caves * fixes the volanic subtypes of the other thing * fixes the stupid fucking tile placing list * some map fixes, fixes the station_ruin loader shitting out errors this commit took 2 hours of my fucking life * fixes a bunch of mismatch atmos in ruins * fixes wendigo cave having no air * backwards couch backwards couch * fixes the SM up * wendigos can't runtime when butchering if you can't butcher them 😎 * makes the wendigo fight have the same atmos as the surrounding icemoon * Tweaks atmos mixture from o2=22;n2=82;TEMP=180 to o2=18;n2=63;TEMP=180, making lavaland weapons actually work * makes the wendigo screech shake not completely aids * fixes snowlegion portals dropping proper legions instead of skeles * brings the engioutpost ruin over as well * whoopps * empty commit to reroll bots * Fixes pirates, ops, the mining base, and gives pirates and ops drills * fixes lone ops and ninjas * fixes the snowed plating getting fucked when tiles are placed on it * removes some OP junk from the wabbajack pool (aka removes non-antag headslugs again) * more bug fixes * empty commit to reroll bots * hopefully finally kills the active turfs on the library ruin Co-authored-by: kevinz000 <2003111+kevinz000@users.noreply.github.com>
147 lines
4.7 KiB
Plaintext
147 lines
4.7 KiB
Plaintext
//**************
|
|
//*****Keys*******************
|
|
//************** ** **
|
|
/obj/item/keycard
|
|
name = "security keycard"
|
|
desc = "This feels like it belongs to a door."
|
|
icon = 'icons/obj/puzzle_small.dmi'
|
|
icon_state = "keycard"
|
|
force = 0
|
|
throwforce = 0
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throw_speed = 1
|
|
throw_range = 7
|
|
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF | LAVA_PROOF
|
|
var/puzzle_id = null
|
|
|
|
//Two test keys for use alongside the two test doors.
|
|
/obj/item/keycard/cheese
|
|
name = "cheese keycard"
|
|
desc = "Look, I still don't understand the reference. What the heck is a keyzza?"
|
|
color = "#f0da12"
|
|
puzzle_id = "cheese"
|
|
|
|
/obj/item/keycard/swordfish
|
|
name = "titanic keycard"
|
|
desc = "Smells like it was at the bottom of a harbor."
|
|
color = "#3bbbdb"
|
|
puzzle_id = "swordfish"
|
|
|
|
//***************
|
|
//*****Doors*****
|
|
//***************
|
|
|
|
/obj/machinery/door/keycard
|
|
name = "locked door"
|
|
desc = "This door only opens when a keycard is swiped. It looks virtually indestructable."
|
|
icon = 'icons/obj/doors/puzzledoor/default.dmi'
|
|
icon_state = "door_closed"
|
|
explosion_block = 3
|
|
heat_proof = TRUE
|
|
max_integrity = 600
|
|
armor = list("melee" = 100, "bullet" = 100, "laser" = 100, "energy" = 100, "bomb" = 100, "bio" = 100, "rad" = 100, "fire" = 100, "acid" = 100)
|
|
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF | LAVA_PROOF
|
|
damage_deflection = 70
|
|
/// Make sure that the key has the same puzzle_id as the keycard door!
|
|
var/puzzle_id = null
|
|
/// Message that occurs when the door is opened
|
|
var/open_message = "The door beeps, and slides opens."
|
|
|
|
//Standard Expressions to make keycard doors basically un-cheeseable
|
|
/obj/machinery/door/keycard/Bumped(atom/movable/AM)
|
|
return !density && ..()
|
|
|
|
/obj/machinery/door/keycard/emp_act(severity)
|
|
return
|
|
|
|
/obj/machinery/door/keycard/ex_act(severity, target)
|
|
return
|
|
|
|
/obj/machinery/door/keycard/try_to_activate_door(mob/user)
|
|
add_fingerprint(user)
|
|
if(operating)
|
|
return
|
|
|
|
/obj/machinery/door/keycard/attackby(obj/item/I, mob/user, params)
|
|
. = ..()
|
|
if(istype(I,/obj/item/keycard))
|
|
var/obj/item/keycard/key = I
|
|
if((!puzzle_id || puzzle_id == key.puzzle_id) && density)
|
|
if(open_message)
|
|
to_chat(user, "<span class='notice'>[open_message]</span>")
|
|
open()
|
|
return
|
|
else if(puzzle_id != key.puzzle_id)
|
|
to_chat(user, "<span class='notice'>[src] buzzes. This must not be the right key.</span>")
|
|
return
|
|
else
|
|
to_chat(user, "<span class='notice'>This door doesn't appear to close.</span>")
|
|
return
|
|
|
|
//Test doors. Gives admins a few doors to use quickly should they so choose.
|
|
/obj/machinery/door/keycard/cheese
|
|
name = "blue airlock"
|
|
desc = "Smells like... pizza?"
|
|
puzzle_id = "cheese"
|
|
|
|
/obj/machinery/door/keycard/swordfish
|
|
name = "blue airlock"
|
|
desc = "If nautical nonsense be something you wish."
|
|
puzzle_id = "swordfish"
|
|
|
|
//*************************
|
|
//***Box Pushing Puzzles***
|
|
//*************************
|
|
//We're working off a subtype of pressureplates, which should work just a BIT better now.
|
|
/obj/structure/holobox
|
|
name = "holobox"
|
|
desc = "A hard-light box, containing a secure decryption key."
|
|
icon = 'icons/obj/puzzle_small.dmi'
|
|
icon_state = "laserbox"
|
|
density = TRUE
|
|
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF | LAVA_PROOF
|
|
|
|
//Uses the pressure_plate settings for a pretty basic custom pattern that waits for a specific item to trigger. Easy enough to retool for mapping purposes or subtypes.
|
|
/obj/item/pressure_plate/hologrid
|
|
name = "hologrid"
|
|
desc = "A high power, electronic input port for a holobox, which can unlock the hologrid's storage compartment. Safe to stand on."
|
|
icon = 'icons/obj/puzzle_small.dmi'
|
|
icon_state = "lasergrid"
|
|
anchored = TRUE
|
|
trigger_mob = FALSE
|
|
trigger_item = TRUE
|
|
specific_item = /obj/structure/holobox
|
|
removable_signaller = FALSE //Being a pressure plate subtype, this can also use signals.
|
|
roundstart_signaller_freq = FREQ_HOLOGRID_SOLUTION //Frequency is kept on it's own default channel however.
|
|
active = TRUE
|
|
trigger_delay = 10
|
|
resistance_flags = INDESTRUCTIBLE | FIRE_PROOF | ACID_PROOF | LAVA_PROOF
|
|
var/reward = /obj/item/reagent_containers/food/snacks/cookie
|
|
var/claimed = FALSE
|
|
|
|
/obj/item/pressure_plate/hologrid/examine(mob/user)
|
|
. = ..()
|
|
if(claimed)
|
|
. += "<span class='notice'>This one appears to be spent already.</span>"
|
|
|
|
/obj/item/pressure_plate/hologrid/trigger()
|
|
if(!claimed)
|
|
new reward(loc)
|
|
flick("lasergrid_a",src)
|
|
icon_state = "lasergrid_full"
|
|
claimed = TRUE
|
|
|
|
/obj/item/pressure_plate/hologrid/Crossed(atom/movable/AM)
|
|
. = ..()
|
|
if(trigger_item && istype(AM, specific_item) && !claimed)
|
|
AM.anchored = TRUE
|
|
flick("laserbox_burn", AM)
|
|
trigger()
|
|
sleep(15)
|
|
qdel(AM)
|
|
|
|
// snowflake code until undertile elements
|
|
/obj/item/pressure_plate/hologrid/hide()
|
|
. = ..()
|
|
anchored = TRUE
|