Skip to content

Commit

Permalink
Entombed + paraplegic quirk interaction & minor QoL update (#2367) (#…
Browse files Browse the repository at this point in the history
…3294)

* Add entombed + paraplegic quirk antigrav interaction

* Increase entombed modsuit name length

Co-authored-by: Ephemeralis <[email protected]>
  • Loading branch information
Steals-The-PRs and Ephemeralis authored May 15, 2024
1 parent ff5b0b6 commit 31f3370
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
/datum/quirk/equipping/entombed/post_add()
. = ..()
// quickly deploy it on roundstart. we can't do this in add_unique because that gets called in the preview screen, which overwrites people's loadout stuff in suit/shoes/gloves slot. very unfun for them
install_quirk_interaction_features() // have to do this here to ensure all traumas and the like from quirks are applied to our mob
modsuit.quick_activation()

/datum/quirk/equipping/entombed/remove()
Expand All @@ -134,6 +135,15 @@
var/obj/item/mod/module/plasma_stabilizer/entombed/plasma_stab = new
modsuit.install(plasma_stab, human_holder)

/datum/quirk/equipping/entombed/proc/install_quirk_interaction_features()
// if entombed needs to interact with certain other quirks, add it here
if (!modsuit)
return
var/mob/living/carbon/human/human_holder = quirk_holder
if (human_holder.get_quirk(/datum/quirk/paraplegic))
var/obj/item/mod/module/anomaly_locked/antigrav/entombed/ambulator = new
modsuit.install(ambulator, human_holder)

/datum/quirk_constant_data/entombed
associated_typepath = /datum/quirk/equipping/entombed
customization_options = list(
Expand Down Expand Up @@ -185,7 +195,7 @@
savefile_key = "entombed_mod_name"
savefile_identifier = PREFERENCE_CHARACTER
can_randomize = FALSE
maximum_value_length = 48
maximum_value_length = 64

/datum/preference/text/entombed_mod_name/is_accessible(datum/preferences/preferences)
if (!..())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@
idle_power_cost = 0
removable = FALSE

/obj/item/mod/module/anomaly_locked/antigrav/entombed
name = "assistive anti-gravity ambulator"
desc = "An obligatory addition from the NanoTrasen science division as part of the Space Disabilities Act, this augmentation allows your suit to project a limited anti-gravity field to aid in your ambulation around the station for both general use and emergencies. It is powered by a tiny sliver of a gravitational anomaly core, inextricably linked to the power systems that keep you alive. Warning: not rated for EMP protection."
complexity = 1
allow_flags = MODULE_ALLOW_INACTIVE // the suit is never off, so this just allows this to be used w/o being parts-deployed for cosmetic reasons
removable = FALSE
active_power_cost = 0 // torsion does not generate power in antigrav, so this is effectively -0.4 * DEFAULT_CHARGE_DRAIN
prebuilt = TRUE
core_removable = FALSE

/obj/item/mod/control/pre_equipped/entombed
theme = /datum/mod_theme/entombed
applied_cell = /obj/item/stock_parts/cell/high
Expand Down

0 comments on commit 31f3370

Please sign in to comment.