mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 08:36:00 +01:00
15baf7873a
## About The Pull Request Updates subdermal implants so that they have `implant_info` and `implant_lore` variables instead of one unchanging `get_info()`. Also rewrites/updates/tweaks/etc. lore for every implant that had get_info() blocks. Makes beacon implants (the ones you teleport onto) turn off (hide themselves on prisoner management consoles) after ten minutes, matching the tracking implant's functionality. Deathrattle implants are now `allow_multiple = TRUE`, so you can have multiple deathrattles implanted. Reworked the implant pad's UI to have collapsible sections for implant info, implant lore, and also have buttons for configuring deathrattle implants. Adds a box of expeditionary deathrattle implants to the mining vendor. For 900 points (585 points if delivered), you receive a box containing 5 expeditionary deathrattle implants, which **ONLY ALERT TO DEATHS IN MINING WASTELAND AREAS (e.g. not ruins, not space, not station) (this is important)**, an implanter, and an implant pad. The intended workflow is that you initialize one deathrattle implant, use that network for all the other deathrattles, and implant yourself, your mining buddies, your QM, and a paramedic, maybe. However since they start unset you could theoretically make one really big deathrattle network. Good luck getting people to volunteer for implanting, though, and as above, it only really works if you die outside of the station. Also, repaths kheiral cuffs to be accessories, so you can attach them to uniforms. They're still functional as suit sensor extenders and GPSes (when off-station). <details><summary>Screenshots</summary> <img width="469" height="91" alt="image" src="https://github.com/user-attachments/assets/2c88b151-e5ab-415a-8c41-0f166f439315" /><br> <img width="300" height="350" alt="image" src="https://github.com/user-attachments/assets/0764983a-1160-48ab-aa6a-d1aaf08a682e" /><br> <img width="300" height="350" alt="image" src="https://github.com/user-attachments/assets/98e84368-300b-453a-89a4-d922c80628e8" /> </details> ## Why It's Good For The Game Deathrattle implants are cool. Being able to know that your coworker exploded, after a non-negligible amount of setup and wrangling your fellow spaceman to let you implant them, is probably a good thing. Introduces a cooperative avenue of "Wait, my coworker just died" instead of "Hey, they haven't yelled something on comms, did they roll antag? (No. They died.)" Kheiral cuffs being uniform attachments is because having to sacrifice glove slot for them annoyed me a lot. ## Changelog 🆑 add: Nanotrasen has begun rolling out (unconfigured) expeditionary deathrattle implant kits for their mining teams for 900 points (585 points, if manually delivered). These only alert for deaths on raw mining wasteland, and will not work in space, ruins, or on-station. balance: Kheiral cuffs can now be attached to uniforms as accessories. They retain their suit sensor extension/GPS functionality (still only when off station Z-levels, though). fix: Beacon implants now turn off (hide themselves on prisoner management consoles) after ten minutes, matching the tracking implant's functionality. qol: Made the implant pad UI a little nicer to look at, with dropdowns and demarcated sections. code: Implants now have separated "immediately useful" information and "extended lore tidbits" information as variables instead of one unchangeable get_info() block. /🆑 --------- Co-authored-by: Hatterhat <Hatterhat@users.noreply.github.com>
43 lines
1.8 KiB
Plaintext
43 lines
1.8 KiB
Plaintext
///Essentially, just turns the implantee into a teleport beacon.
|
|
/obj/item/implant/beacon
|
|
name = "beacon implant"
|
|
desc = "Teleports things."
|
|
actions_types = null
|
|
implant_flags = IMPLANT_TYPE_SECURITY
|
|
hud_icon_state = "hud_imp_beacon"
|
|
///How long will the implant be teleportable to after death?
|
|
var/lifespan_postmortem = 10 MINUTES
|
|
|
|
implant_info = "Automatically activates upon implantation. Acts as a dedicated, teleport-only bluespace beacon. \
|
|
Deactivates ten minutes after host's death, but remains within the body."
|
|
|
|
implant_lore = "The Robust Corp JMP-21 Fugitive Retrieval Implant is a subdermal bluespace transponder \
|
|
designed for interfacing with common bluespace teleporting technology and serving as a beacon that can \
|
|
be teleported directly onto. Unfortunately, it only serves as a beacon-transponder that can be locked onto, \
|
|
providing no tracking functionality. Automatically deactivates ten minutes after the host's death."
|
|
|
|
/obj/item/implant/beacon/is_shown_on_console(obj/machinery/computer/prisoner/management/console)
|
|
if(imp_in.stat == DEAD && imp_in.timeofdeath + lifespan_postmortem < world.time)
|
|
return FALSE
|
|
return TRUE
|
|
|
|
/obj/item/implant/beacon/get_management_console_data()
|
|
var/list/info_shown = ..()
|
|
|
|
var/area/destination_area = get_area(imp_in)
|
|
if(isnull(destination_area) || !check_teleport_valid(imp_in, usr))
|
|
info_shown["Status"] = "Implant carrier teleport signal cannot be reached!"
|
|
else
|
|
var/turf/turf_to_check = get_turf(imp_in)
|
|
info_shown["Status"] = "Implant carrier is in [is_safe_turf(turf_to_check, dense_atoms = TRUE) ? "a safe environment." : "a hazardous environment!"]"
|
|
|
|
return info_shown
|
|
|
|
/obj/item/implanter/beacon
|
|
imp_type = /obj/item/implant/beacon
|
|
|
|
/obj/item/implantcase/beacon
|
|
name = "implant case - 'Beacon'"
|
|
desc = "A glass case containing a beacon implant."
|
|
imp_type = /obj/item/implant/beacon
|