mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Drask Traitor Item - Cryoregenerative Enhancer (#25885)
* Drask Traitor Item - Cryoregenerative Enhancer * Removed extraneous list Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Better Math Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Excessive spacing Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Comment fix Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Cleaner dna logic Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Better lore Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * Better readability on checks Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> * More noticable alert if empty. Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> --------- Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> Co-authored-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com> Co-authored-by: Ryan <80364400+Sirryan2002@users.noreply.github.com> Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
co-authored by
CRUNCH
Ryan
1080pCat
DGamerL
parent
29eb7efaa4
commit
c3f0694bad
@@ -184,6 +184,7 @@ Remember to update _globalvars/traits.dm if you're adding/removing/renaming trai
|
||||
#define TRAIT_EMOTE_MUTE "emote_mute"
|
||||
#define TRAIT_HYPOSPRAY_IMMUNE "hypospray_immune" // For making crew-accessable hyposprays not pierce your clothing
|
||||
#define TRAIT_RSG_IMMUNE "rsgimmune" //prevents RSG syringes from piercing your clothing
|
||||
#define TRAIT_DRASK_SUPERCOOL "drask_supercool"
|
||||
|
||||
#define TRAIT_NO_BONES "no_bones"
|
||||
#define TRAIT_STURDY_LIMBS "sturdy_limbs"
|
||||
|
||||
@@ -50,6 +50,7 @@ GLOBAL_LIST_INIT(traits_by_type, list(
|
||||
"TRAIT_MESON_VISION" = TRAIT_MESON_VISION,
|
||||
"TRAIT_FLASH_PROTECTION" = TRAIT_FLASH_PROTECTION,
|
||||
"TRAIT_NIGHT_VISION" = TRAIT_NIGHT_VISION,
|
||||
"TRAIT_DRASK_SUPERCOOL" = TRAIT_DRASK_SUPERCOOL,
|
||||
|
||||
"TRAIT_NO_BONES" = TRAIT_NO_BONES,
|
||||
"TRAIT_STURDY_LIMBS" = TRAIT_STURDY_LIMBS,
|
||||
|
||||
@@ -396,6 +396,16 @@
|
||||
cost = 25 /// A fresh start, but a start with nothing. Hard to use as well
|
||||
species = list("Grey")
|
||||
|
||||
// Drask
|
||||
/datum/uplink_item/species_restricted/cryoregenerative_enhancer
|
||||
name = "Cryoregenerative Enhancer"
|
||||
desc = "Specially designed nanomachines that enhance the low-temperature regenerative capabilities of drask. Requires supercooled air in the enviroment or internals to function."
|
||||
reference = "CRE"
|
||||
item = /obj/item/cryoregenerative_enhancer
|
||||
cost = 25
|
||||
species = list("Drask")
|
||||
surplus = 0
|
||||
|
||||
// -------------------------------------
|
||||
// ITEMS BLACKLISTED FROM NUCLEAR AGENTS
|
||||
// -------------------------------------
|
||||
|
||||
@@ -286,6 +286,40 @@
|
||||
to_chat(user, "<span class='notice'>You inject yourself with the nanites!</span>")
|
||||
ADD_TRAIT(user, TRAIT_RESISTHEAT, "fireproof_injector")
|
||||
|
||||
/obj/item/cryoregenerative_enhancer
|
||||
name = "cryoregenerative enhancer"
|
||||
desc = "Specially designed nanomachines that enhance the low-temperature regenerative capabilities of drask. Requires supercooled air in the enviroment or internals to function."
|
||||
icon = 'icons/obj/hypo.dmi'
|
||||
icon_state = "combat_hypo"
|
||||
var/used = FALSE
|
||||
|
||||
/obj/item/cryoregenerative_enhancer/examine_more(mob/user)
|
||||
. = ..()
|
||||
. += "Designed by Viim-vaarooomunnm's prestigious polytechnic university, these experimental nanomachines infiltrate the cells of the drask host and integrate into the specialised cryoregenerative organelles that facilitate low-temperature healing and work to boost enzymatic activity, massively improving the efficiency of the associated metabolic processes."
|
||||
. += ""
|
||||
. += "Clinical trials have shown a four times increase in the rate of healing compared to a placebo. Whilst the product is technically not yet available to the public, the right connections with the right people allow interested parties to obtain samples early..."
|
||||
|
||||
/obj/item/cryoregenerative_enhancer/attack_self(mob/living/user)
|
||||
if(HAS_TRAIT(user, TRAIT_DRASK_SUPERCOOL))
|
||||
to_chat(user, "<span class='warning'>Your regeneration is already enhanced!</span>")
|
||||
return
|
||||
if(user.mind && (IS_CHANGELING(user) || user.mind.has_antag_datum(/datum/antagonist/vampire)) || user.dna?.species.name != "Drask")
|
||||
to_chat(user, "<span class='warning'>The injector is not compatable with your biology!</span>")
|
||||
return
|
||||
if(used)
|
||||
to_chat(user, "<span class='notice'>The injector is empty!</span>")
|
||||
return
|
||||
var/choice = tgui_alert(user, "The injector is still unused. Do you wish to use it?", "Cryoregenerative enhancer", list("Yes", "No"))
|
||||
if(choice != "Yes")
|
||||
to_chat(user, "<span class='notice'>You decide against using [src].</span>")
|
||||
return
|
||||
if(used)
|
||||
to_chat(user, "<span class='warning'>The injector is empty!</span>")
|
||||
return
|
||||
used = TRUE
|
||||
to_chat(user, "<span class='notice'>You inject yourself with the enhancer!</span>")
|
||||
ADD_TRAIT(user, TRAIT_DRASK_SUPERCOOL, "cryoregenerative_enhancer")
|
||||
|
||||
/obj/item/batterer
|
||||
name = "mind batterer"
|
||||
desc = "A dangerous syndicate device focused on crowd control and escapes. Causes brain damage, confusion, and other nasty effects to those surrounding the user."
|
||||
|
||||
@@ -249,6 +249,8 @@
|
||||
TC = cold_level_1_damage
|
||||
if(TC)
|
||||
for(var/D in cold_damage_types)
|
||||
if(HAS_TRAIT(H, TRAIT_DRASK_SUPERCOOL))
|
||||
TC *= 4
|
||||
H.apply_damage_type(TC * CM * cold_damage_types[D], D)
|
||||
if(breath_temperature < cold_level_1_threshold)
|
||||
if(prob(20))
|
||||
|
||||
Reference in New Issue
Block a user