forked from yogstation13/Yogstation
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sanity_do_after_coefficient
- Loading branch information
Showing
50 changed files
with
1,621 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define COLOR_CARGO_GLASS "#bd6f26" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
modular_dripstation/code/controllers/subsystem/processing/digital_clock.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// The subsystem used to tick digital clocks //tg port | ||
PROCESSING_SUBSYSTEM_DEF(digital_clock) | ||
name = "Digital Clocks" | ||
flags = SS_NO_INIT|SS_BACKGROUND|SS_KEEP_TIMING | ||
wait = 1 SECONDS |
118 changes: 118 additions & 0 deletions
118
modular_dripstation/code/datums/reagent/restore_nanites.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/datum/reagent/medicine/syndicate_nanites //Used exclusively by Syndicate medical cyborgs | ||
name = "Restorative Nanite Serum" | ||
|
||
/datum/reagent/medicine/coagulant/blood_restoring_nanites | ||
name = "Blood Regeneration Nanite Serum" | ||
description = "A serum of nanites capable of coagulant wounds and restore blood volume to safe levels." | ||
taste_description = "a bunch of tiny robots" | ||
can_synth = FALSE | ||
clot_rate = 0.5 | ||
passive_bleed_modifier = 0.5 | ||
reagent_state = SOLID | ||
color = "#555555" | ||
overdose_threshold = 30 | ||
|
||
/datum/reagent/medicine/coagulant/blood_restoring_nanites/on_mob_life(mob/living/carbon/M) | ||
if(M.blood_volume < BLOOD_VOLUME_SAFE(M)) | ||
M.blood_volume += 2 | ||
|
||
/datum/reagent/medicine/coagulant/blood_restoring_nanites/overdose_process(mob/living/carbon/M) //wtb flavortext messages that hint that you're vomitting up robots | ||
if(prob(25)) | ||
M.reagents.remove_reagent(type, metabolization_rate*15) // ~5 units at a rate of 0.4 but i wanted a nice number in code | ||
M.vomit(20) // nanite safety protocols make your body expel them to prevent harmies | ||
..() | ||
. = 1 | ||
|
||
/datum/reagent/medicine/bone_restoring_nanites | ||
name = "Bone Restoration Nanite Serum" | ||
description = "A serum of nanites capable of coagulant wounds and restore blood volume to safe levels." | ||
taste_description = "a bunch of tiny robots" | ||
can_synth = FALSE | ||
reagent_state = SOLID | ||
color = "#555555" | ||
overdose_threshold = 30 | ||
|
||
/datum/reagent/medicine/bone_restoring_nanites/on_mob_life(mob/living/carbon/C) | ||
for(var/X in C.bodyparts) | ||
var/obj/item/bodypart/BP = X | ||
if(BP.get_wound_type(/datum/wound/blunt) && prob(20)) | ||
var/datum/wound/blunt/W = BP.get_wound_type(/datum/wound/blunt) | ||
C.emote("scream") | ||
playsound(C, 'sound/surgery/bone3.ogg', 35) | ||
if(W.severity >= WOUND_SEVERITY_SEVERE) | ||
var/painkiller_bonus = 0 | ||
if(C.get_drunk_amount() > 10) | ||
painkiller_bonus += 10 | ||
if(C.reagents?.has_reagent(/datum/reagent/medicine/morphine)) | ||
painkiller_bonus += 20 | ||
if((C.stat && C.stat == UNCONSCIOUS)) | ||
painkiller_bonus += 20 | ||
if(C.reagents?.has_reagent(/datum/reagent/determination)) | ||
painkiller_bonus += 10 | ||
|
||
if(prob(35 + (20 * (W.severity - 1)) - painkiller_bonus)) // 35%/55% chance to cause shock with severe and critical wounds, modded by painkillers | ||
C.visible_message(span_danger("[C] passing out from the pain!"), span_notice("You black out from the pain while nanites restore your bone!")) | ||
C.AdjustUnconscious(12 SECONDS) | ||
W.remove_wound() | ||
|
||
/datum/reagent/medicine/bone_restoring_nanites/overdose_process(mob/living/carbon/M) //wtb flavortext messages that hint that you're vomitting up robots | ||
if(prob(25)) | ||
M.reagents.remove_reagent(type, metabolization_rate*15) // ~5 units at a rate of 0.4 but i wanted a nice number in code | ||
M.vomit(20) // nanite safety protocols make your body expel them to prevent harmies | ||
..() | ||
. = 1 | ||
|
||
/datum/reagent/medicine/cellular_restoring_nanites | ||
name = "Сellular Regenerator Nanite Serum" | ||
description = "A serum of nanites capable of regenerate limbs, remove scars and treat wounds." | ||
taste_description = "a bunch of tiny robots" | ||
can_synth = FALSE | ||
reagent_state = SOLID | ||
color = "#555555" | ||
overdose_threshold = 30 | ||
|
||
/datum/reagent/medicine/cellular_restoring_nanites/on_mob_life(mob/living/carbon/M) | ||
M.adjustCloneLoss(-2) | ||
M.heal_bodypart_damage(2,2) | ||
M.set_eye_blur(0) | ||
M.set_blindness(0) | ||
for(var/organ in M.internal_organs) | ||
var/obj/item/organ/O = organ | ||
if(O.status == ORGAN_ROBOTIC) | ||
continue | ||
O.setOrganDamage(O.damage - (0.1 * O.maxHealth)) | ||
for(var/i in M.all_scars) | ||
var/datum/scar/iter_scar = i | ||
if(!iter_scar.fake) | ||
qdel(iter_scar) | ||
if(prob(10)) | ||
var/list/missing = M.get_missing_limbs() | ||
if(missing.len) | ||
playsound(M, 'sound/magic/demon_consume.ogg', 50, 1) | ||
M.visible_message("<span class='warning'>[M]'s missing limbs \ | ||
reform, making a loud, grotesque sound!</span>", | ||
"<span class='userdanger'>Your limbs regrow, making a \ | ||
loud, crunchy sound and giving you great pain!</span>", | ||
"<span class='italics'>You hear organic matter ripping \ | ||
and tearing!</span>") | ||
M.emote("scream") | ||
M.adjust_dizzy(3 SECONDS) | ||
M.adjust_jitter(3 SECONDS) | ||
M.adjust_stutter(3 SECONDS) | ||
M.regenerate_limbs(1) | ||
if(prob(10)) | ||
for(var/i in M.all_wounds) | ||
var/datum/wound/iter_wound = i | ||
M.adjust_dizzy(3 SECONDS) | ||
M.adjust_jitter(3 SECONDS) | ||
M.adjust_stutter(3 SECONDS) | ||
M.emote("scream") | ||
iter_wound.remove_wound() | ||
return TRUE | ||
|
||
/datum/reagent/medicine/cellular_restoring_nanites/overdose_process(mob/living/carbon/M) //wtb flavortext messages that hint that you're vomitting up robots | ||
if(prob(25)) | ||
M.reagents.remove_reagent(type, metabolization_rate*15) // ~5 units at a rate of 0.4 but i wanted a nice number in code | ||
M.vomit(20) // nanite safety protocols make your body expel them to prevent harmies | ||
..() | ||
. = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.