finishes effects, adds nanocalcium auto-injector, adds bone repair kit to uplink. adds sprites.

This commit is contained in:
Birdtalon
2018-02-21 20:44:03 +00:00
parent 8d45200f20
commit fe914dc5f5
5 changed files with 68 additions and 13 deletions
@@ -1043,18 +1043,34 @@
color = "#9b3401"
metabolization_rate = 0.5
/datum/reagent/medicine/nanocalcium/on_mob_life(mob/living/M)
/datum/reagent/medicine/nanocalcium/on_mob_life(mob/living/carbon/human/M)
switch(current_cycle)
if(1 to 44)
if(M.has_reagent("methamphetamine"))
M.adjustToxLoss(2)
else
if(prob(50))
if(1 to 19)
M.AdjustJitter(4)
if(prob(10))
to_chat(M, "<span class='notice'>Your skin feels hot and your veins are on fire!</span>")
if(20 to 43)
//If they have stimulants or stimulant drugs then just apply toxin damage instead.
if(M.reagents.has_reagent("methamphetamine") || M.reagents.has_reagent("crank") || M.reagents.has_reagent("bath_salts") || M.reagents.has_reagent("stimulative_agent") || M.reagents.has_reagent("stimulants"))
M.adjustToxLoss(10)
else //apply debilitating effects
if(prob(75))
M.AdjustConfused(5)
else
M.AdjustWeakened(5)
//apply debilitating effects
if(45 to 55)
//fix minor bones as we go
if(56 to 60)
//fix major bones
if(44)
to_chat(M, "<span class='notice'>Your body goes rigid, you cannot move at all!</span>")
M.AdjustWeakened(15)
if(45 to 60) // Start fixing bones | If they have stimulants or stimulant drugs in their system then the nanites won't work.
if(M.reagents.has_reagent("methamphetamine") || M.reagents.has_reagent("crank") || M.reagents.has_reagent("bath_salts") || M.reagents.has_reagent("stimulative_agent") || M.reagents.has_reagent("stimulants"))
return ..()
else
for(var/obj/item/organ/external/E in M.bodyparts)
if(E.is_broken())
if(prob(50)) // Each tick has a 50% chance of repearing a bone.
to_chat(M, "<span class='notice'>You feel a burning sensation in your [E.name] as it straightens involuntarily!</span>")
E.rejuvenate() //Repair it completely.
return ..()
else
continue
..()
@@ -110,4 +110,13 @@
amount_per_transfer_from_this = 50
possible_transfer_amounts = list(50)
volume = 50
list_reagents = list("stimulants" = 50)
list_reagents = list("stimulants" = 50)
/obj/item/weapon/reagent_containers/hypospray/autoinjector/nanocalcium
name = "Nanocalcium autoinjector"
desc = "After a short period of time the nanites will slow the body's systems and assist with bone repair. WARNING: Do not use with stimulants!"
icon_state = "bonepen"
amount_per_transfer_from_this = 30
possible_transfer_amounts = list(30)
volume = 30
list_reagents = list("nanocalcium" = 30)