mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
## About The Pull Request In similar fashion to what was done with crafting recipes last year, this year it's time for techweb designs and printed items to be audited. This is mostly just about consistency, we've a lot of items that can be printed by protolathes, autolathes, circuit printers and techfab etc. However they almost all (except most stacks, mainly) have custom materials that do not match in one way or another with the materials used by the design, which is what this PR is for. "But items printed from lathes etc. already get the mats used to make them." Yes, they do, however that isn't the case for items of the same type that were spawned in some other way (cargo shuttle, space/maints loot, mapped, admins), this create a subtle discrepancy. It isn't a huge deal (in spite of the size of this PR, ton of designs), but given that I have done something similar with crafting recipes before, I may as well give it a second arc of some sort and bring things to completion. And fix a few possible oversights. TL;DR consistency and stuff ## Why It's Good For The Game Consistency, unit test checks to make it harder not to be consistent in the future. Still has a few TODOs like: - [x] Fixed newly printed, fully charged RCDs costing less than the RCD cartridges required to fully charge one. EDIT: I had to tweak the newly added RDD as well because it suffered from the same fundamental issue. - [x] Fixed plates being made of iron and yet shattering like ceramic ones. A new subtype for metallic ones has been made. ## Changelog 🆑 refactor: Refactored a few things with techweb designs (the ones for autolathes, protolathes, circuit printers, mechfabs etc.) to make sure that the materials of items that can be made from these designs more closely match the materials used to make them. fix: Lizard fries no longer need a plate to be made, like all other treats that used to require plates in a distant past. balance: Tweaked the materials cost of RCD, RDD and RCD cartridges. image: Oven trays now have a more metallic hue. balance: Plates printed printed from lathes won't shatter like ceramic ones, in virtue of them being made out of iron instead. /🆑
98 lines
4.0 KiB
Plaintext
98 lines
4.0 KiB
Plaintext
/obj/item/implant/tracking
|
|
name = "tracking implant"
|
|
desc = "Track with this."
|
|
actions_types = null
|
|
implant_flags = IMPLANT_TYPE_SECURITY
|
|
hud_icon_state = "hud_imp_tracking"
|
|
custom_materials = list(/datum/material/iron = HALF_SHEET_MATERIAL_AMOUNT)
|
|
|
|
///How long will the implant continue to function after death?
|
|
var/lifespan_postmortem = 10 MINUTES
|
|
|
|
implant_info = "Automatically activates upon implantation. Acts as a dedicated, tracking-only beacon \
|
|
and direct-to-brain prisoner messaging system. \
|
|
Deactivates ten minutes after host's death, but remains within the body."
|
|
|
|
implant_lore = "The Robust Corp EYE-5 Convict Parole Monitoring Implant is a subdermal tracking beacon \
|
|
designed for interfacing with prisoner management equipment, serving as both a beacon that can \
|
|
be tracked via locator equipment, and a provider of one-way communication from prisoner management staff \
|
|
to implanted subjects, relaying messages directly to subjects' brains. \
|
|
Automatically deactivates ten minutes after the host's death."
|
|
|
|
/obj/item/implant/tracking/is_shown_on_console(obj/machinery/computer/prisoner/management/console)
|
|
if(imp_in.stat == DEAD && imp_in.timeofdeath + lifespan_postmortem < world.time)
|
|
return FALSE
|
|
if(!is_valid_z_level(get_turf(console), get_turf(imp_in)))
|
|
return FALSE
|
|
return TRUE
|
|
|
|
/obj/item/implant/tracking/get_management_console_data()
|
|
var/list/info_shown = ..()
|
|
info_shown["Location"] = get_area_name(imp_in, format_text = TRUE) || "Unknown"
|
|
return info_shown
|
|
|
|
/obj/item/implant/tracking/get_management_console_buttons()
|
|
var/list/buttons = ..()
|
|
UNTYPED_LIST_ADD(buttons, list(
|
|
"name" = "Warn",
|
|
"color" = "average",
|
|
"tooltip" = "Sends a message directly to the target's brain.",
|
|
"action_key" = "warn",
|
|
))
|
|
return buttons
|
|
|
|
/obj/item/implant/tracking/handle_management_console_action(mob/user, list/params, obj/machinery/computer/prisoner/management/console)
|
|
. = ..()
|
|
if(.)
|
|
return
|
|
|
|
if(params["implant_action"] == "warn")
|
|
var/warning = tgui_input_text(user, "What warning do you want to send to [imp_in.name]?", "Messaging", max_length = MAX_MESSAGE_LEN)
|
|
if(!warning || QDELETED(src) || QDELETED(user) || QDELETED(console) || isnull(imp_in))
|
|
return TRUE
|
|
if(!console.is_operational || !user.can_perform_action(console, NEED_DEXTERITY|ALLOW_SILICON_REACH))
|
|
return TRUE
|
|
|
|
to_chat(imp_in, span_hear("You hear a voice in your head saying: '[warning]'"))
|
|
log_directed_talk(user, imp_in, warning, LOG_SAY, "implant message")
|
|
return TRUE
|
|
|
|
/obj/item/implant/tracking/c38
|
|
name = "TRAC implant"
|
|
desc = "A smaller tracking implant that supplies power for only a few minutes."
|
|
implant_flags = NONE
|
|
///How long before this implant self-deletes?
|
|
var/lifespan = 5 MINUTES
|
|
///The id of the timer that's qdeleting us
|
|
var/timerid
|
|
|
|
implant_info = "Automatically activates upon implantation, typically via firearm. \
|
|
Acts as a dedicated, tracking-only beacon and direct-to-brain prisoner messaging system. \
|
|
Dissolves into absorbable elements after 5 minutes."
|
|
|
|
implant_lore = "The Robust Corp EYE-5/TRAC Fugitive Monitoring Implant is a subdermal tracking beacon \
|
|
designed to be delivered via high-velocity projectile. \
|
|
Much like the original EYE-5 Convict Parole Monitoring Implant, \
|
|
interfaces with prisoner management equipment, serving as both a beacon that can \
|
|
be tracked via locator equipment, and a provider of one-way communication from prisoner management staff \
|
|
to implanted targets, relaying messages directly to targets' brains. \
|
|
Dissolves into bio-safe elements after five minutes."
|
|
|
|
/obj/item/implant/tracking/c38/implant(mob/living/target, mob/user, silent, force)
|
|
. = ..()
|
|
timerid = QDEL_IN_STOPPABLE(src, lifespan)
|
|
|
|
/obj/item/implant/tracking/c38/removed(mob/living/source, silent, special)
|
|
. = ..()
|
|
deltimer(timerid)
|
|
timerid = null
|
|
|
|
/obj/item/implant/tracking/c38/Destroy()
|
|
return ..()
|
|
|
|
/obj/item/implanter/tracking
|
|
imp_type = /obj/item/implant/tracking
|
|
|
|
/obj/item/implanter/tracking/gps
|
|
imp_type = /obj/item/gps/mining/internal
|