Sick stuff

This commit is contained in:
Guti
2024-11-25 17:05:54 +01:00
parent 4c77d88ba7
commit 9f52fc0b1c
19 changed files with 486 additions and 17 deletions
-1
View File
@@ -18,7 +18,6 @@
#define CONTACT_GENERAL (1<<5)
#define AIRBORNE (1<<6)
//Severity Defines
#define NONTHREAT "No threat"
#define MINOR "Minor"
+9 -2
View File
@@ -3,8 +3,8 @@ GLOBAL_LIST_EMPTY(archive_diseases)
GLOBAL_LIST_INIT(advance_cures, list(
"sodiumchloride", "sugar", "orangejuice",
"spaceacilin", "glucose", "ethanol",
"dyloteane", "impedrezene", "hepanephrodaxon",
"gold", "silver"
"leporazine", "impedrezene", "hepanephrodaxon",
"silver", "gold"
))
/datum/disease/advance
@@ -235,6 +235,13 @@ GLOBAL_LIST_INIT(advance_cures, list(
Refresh(1)
return
/datum/disease/advance/proc/PickyEvolve(var/list/datum/symptom/D)
var/s = safepick(D)
if(s)
AddSymptom(new s)
Refresh(1)
return
// Randomly remove a symptom.
/datum/disease/advance/proc/Devolve()
if(length(symptoms) > 1)
@@ -0,0 +1,38 @@
/*
//////////////////////////////////////
Deafness
Slightly hidden.
Lowers resistance.
Increases stage speed slightly.
Decreases transmittablity.
Intense Level.
Bonus
Causes intermittent loss of hearing.
//////////////////////////////////////
*/
/datum/symptom/deafness
name = "Deafness"
stealth = 1
resistance = -2
stage_speed = 1
transmittable = -3
level = 4
severity = 3
/datum/symptom/deafness/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
switch(A.stage)
if(3, 4)
to_chat(M, span_warning("[pick("you hear a ringing in your ear.", "You ears pop.")]"))
if(5)
to_chat(M, span_userdanger("You ear pop and begin ringing loudly!"))
M.ear_deaf += 20
return
@@ -6,7 +6,7 @@ Necrotizing Fasciitis (AKA Flesh-Eating Disease)
Very very noticable.
Lowers resistance tremendously.
No changes to stage speed.
Decreases transmittablity temrendously.
Decreases transmittablity tremendously.
Fatal Level.
Bonus
@@ -0,0 +1,33 @@
/*
//////////////////////////////////////
Flippinov
Slightly hidden.
No change to resistance.
Increases stage speed.
Little transmittable.
Low Level.
BONUS
Makes the host FLIP.
Should be used for buffing your disease.
//////////////////////////////////////
*/
/datum/symptom/spyndrome
name = "Flippinov"
stealth = 2
resistance = 0
stage_speed = 3
transmittable = 1
level = 1
severity = 1
/datum/symptom/spyndrome/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/L = A.affected_mob
L.emote("flip")
@@ -0,0 +1,56 @@
/*
//////////////////////////////////////
Alopecia
Noticable.
Decreases resistance slightly.
Reduces stage speed slightly.
Transmittable.
Intense Level.
BONUS
Makes the mob lose hair.
//////////////////////////////////////
*/
/datum/symptom/shedding
name = "Alopecia"
stealth = -1
resistance = -1
stage_speed = -1
transmittable = 2
level = 4
severity = 1
/datum/symptom/shedding/Activate(datum/disease/advance/A)
..()
if(!prob(SYMPTOM_ACTIVATION_PROB))
return
if(ishuman(A.affected_mob))
return
var/mob/living/carbon/human/H = A.affected_mob
var/obj/item/organ/external/head/head_organ = H.get_organ(BP_HEAD)
if(!istype(head_organ))
return
to_chat(H, span_warning("[pick("Your scal itches.", "Your skin feels flakey.")]"))
switch(A.stage)
if(3, 4)
if(H.h_style != "Bald" && H.h_style != "Balding Hair")
to_chat(H, span_warning("Your hair starts to fall out in clumps..."))
addtimer(CALLBACK(src, PROC_REF(change_hair), H, null, "Balding Hair"), 5 SECONDS)
if(5)
if(H.h_style != "Shaved" && H.h_style != "Bald")
to_chat(H, span_warning("Your hair starts to fall out in clumps..."))
addtimer(CALLBACK(src, PROC_REF(change_hair), H, "Shaved", "Bald"), 5 SECONDS)
return
/datum/symptom/shedding/proc/change_hair(var/mob/living/carbon/human/H, f_style, h_style)
if(!H)
return
if(f_style)
H.f_style = f_style
if(h_style)
H.h_style = h_style
return
@@ -130,7 +130,7 @@ Bonus
Very high level.
Bonus
Heals brain damage, treats radiation.
Heals clone damage, treats radiation.
//////////////////////////////////////
*/
@@ -145,6 +145,6 @@ Bonus
/datum/symptom/heal/dna/Heal(var/mob/living/carbon/M, var/datum/disease/advance/A)
var/amt_healed = (sqrtor0(20+A.totalStageSpeed()*(3+rand())))-(sqrtor0(16+A.totalStealth()*rand()))
M.adjustBrainLoss(-amt_healed)
M.apply_damage(-amt_healed, CLONE)
M.radiation = max(M.radiation - 3, 0)
return TRUE
@@ -0,0 +1,42 @@
/*
//////////////////////////////////////
Hematophagy
Little bit hidden.
Decreases resistance slightly.
Decreases stage speed tremendously.
Slightly increased transmittablity.
Intense level.
BONUS
The host must feed on BLOOD
//////////////////////////////////////
*/
/datum/symptom/hematophagy
name = "Hematophagy"
stealth = 1
resistance = -1
resistance = -4
transmittable = 1
level = 4
/datum/symptom/hematophagy/Start(datum/disease/advance/A)
if(ishuman(A.affected_mob))
var/mob/living/carbon/human/H = A.affected_mob
H.species.organic_food_coeff = 0
H.species.bloodsucker = TRUE
add_verb(H, /mob/living/carbon/human/proc/bloodsuck)
/datum/symptom/hematophagy/End(datum/disease/advance/A)
if(ishuman(A.affected_mob))
var/mob/living/carbon/human/H = A.affected_mob
H.species.organic_food_coeff = initial(H.species.organic_food_coeff)
H.species.bloodsucker = initial(H.species.bloodsucker)
remove_verb(H, /mob/living/carbon/human/proc/bloodsuck)
@@ -0,0 +1,41 @@
/*
//////////////////////////////////////
Photosensitivity
Noticable.
Increases resistance.
Increases stage speed slightly.
Decreases transmittablity tremendously.
Fatal Level.
Bonus
Deals brute damage over time.
//////////////////////////////////////
*/
/datum/symptom/photosensitivity
name = "Photosensitivity"
stealth = -2
resistance = 2
stage_speed = 1
transmittable = -4
level = 6
severity = 5
/datum/symptom/photosensitivity/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/carbon/human/H = A.affected_mob
var/turf/T = get_turf(H)
switch(A.stage)
if(3)
if(T.get_lumcount() > 0.5)
to_chat(H, span_danger("Your skin itches under the light..."))
if(4, 5)
if(T.get_lumcount() > 0.5)
to_chat(H, span_danger("Your skin feels like burning!"))
H.adjustFireLoss(T.get_lumcount())
return
@@ -0,0 +1,46 @@
/*
//////////////////////////////////////
Pica
Not noticable or unnoticable.
Decreases resistance.
Increases stage speed.
Little transmittable.
Low Level.
BONUS
The host gains hunger for any kind of object.
//////////////////////////////////////
*/
/datum/symptom/pica
name = "Pica"
stealth = 0
resistance = -2
stage_speed = 3
transmittable = 1
level = 1
severity = 1
/datum/symptom/pica/Start(datum/disease/advance/A)
add_verb(A.affected_mob, /mob/living/proc/eat_trash)
add_verb(A.affected_mob, /mob/living/proc/toggle_trash_catching)
/datum/symptom/pica/End(datum/disease/advance/A)
remove_verb(A.affected_mob, /mob/living/proc/eat_trash)
remove_verb(A.affected_mob, /mob/living/proc/toggle_trash_catching)
/datum/symptom/pica/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/list/nearby = oview(5, A.affected_mob)
to_chat(A.affected_mob, span_warning("You could go fo a bite of [pick(nearby)]..."))
else if (prob(SYMPTOM_ACTIVATION_PROB))
if(ishuman(A.affected_mob))
var/mob/living/carbon/human/H = A.affected_mob
var/list/item = H.get_equipped_items()
to_chat(H, span_warning("[pick(item)] looks oddly [pick("delicious", "tasty", "scrumptious", "inviting")]..."))
return
@@ -0,0 +1,82 @@
/*
//////////////////////////////////////
Dwindling Malady
Very noticeable.
Increases resistance slightly.
Increases stage speed.
Decreases transmittablity
Intense level.
BONUS
Shrinks the host to small sizes
//////////////////////////////////////
*/
/datum/symptom/size
name = "Dwindling Malady"
stealth = -4
resistance = 1
stage_speed = 2
transmittable = -2
level = 4
severity = 1
var/initial_size
/datum/symptom/size/Start(datum/disease/advance/A)
initial_size = A.affected_mob.size_multiplier
/datum/symptom/size/End(datum/disease/advance/A)
A.affected_mob = initial_size
/datum/symptom/size/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
switch(A.stage)
if(1, 2, 3)
to_chat(M, span_notice("Your clothes feel loose."))
if(4, 5)
if(prob(10))
M.emote("twitches")
Resize(M, -rand(0.1, 0.5))
/datum/symptom/size/proc/Resize(mob/living/M, var/size)
M.resize(size+M.size_multiplier)
/*
//////////////////////////////////////
Enlargement Disorder
Very noticeable.
Increases resistance slightly.
Increases stage speed.
Decreases transmittablity
Intense level.
BONUS
Grows the host to bigger sizes
//////////////////////////////////////
*/
/datum/symptom/size/grow
name = "Enlargement Disorder"
/datum/symptom/size/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/M = A.affected_mob
switch(A.stage)
if(1, 2, 3)
to_chat(M, span_notice("Your clothes feel tight."))
if(4, 5)
if(prob(10))
M.emote("twitches")
Resize(M, rand(0.1, 0.5))
@@ -16,7 +16,7 @@ BONUS
//////////////////////////////////////
*/
/datum/symptom/mlem
/datum/symptom/spyndrome
name = "Spyndrome"
stealth = 2
resistance = 0
@@ -26,7 +26,7 @@ BONUS
severity = 1
var/list/directions = list(2,4,1,8,2,4,1,8,2,4,1,8,2,4,1,8,2,4,1,8)
/datum/symptom/mlem/Activate(var/datum/disease/advance/A)
/datum/symptom/spyndrome/Activate(var/datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
@@ -0,0 +1,43 @@
/*
//////////////////////////////////////
Healing
No change to stealth.
Slightly decreases resistance.
Increases stage speed.
Decreases transmittablity considerably.
Moderate Level.
Bonus
Heals toxins in the affected mob's blood stream.
//////////////////////////////////////
*/
/datum/symptom/stimulant
name = "Overactive Adrenal Gland"
stealth = 0
resistance = -1
stage_speed = 2
transmittable = -3
level = 3
severity = 1
/datum/symptom/stimulant/Activate(datum/disease/advance/A)
..()
if(prob(SYMPTOM_ACTIVATION_PROB))
var/mob/living/L = A.affected_mob
to_chat(L, span_notice("You feel a rush of energy inside you!"))
switch(A.stage)
if(1, 2)
L.jitteriness += 5
if(3, 4)
L.jitteriness += 10
else
if(L.reagents.get_reagent_amount("hyperzine" < 10))
L.reagents.add_reagent("hyperzine", 5)
if(prob(30))
L.jitteriness += 15
return
@@ -1,7 +1,7 @@
/*
//////////////////////////////////////
Sneezing
Synthetic Infection
Slightly hidden.
Increases resistance.
@@ -23,7 +23,6 @@ Bonus
transmittable = 1
level = 5
severity = 3
id = "synthetic_infection"
/datum/symptom/infect_synthetics/Start(datum/disease/advance/A)
A.infect_synthetics = TRUE
+45
View File
@@ -0,0 +1,45 @@
/datum/disease/appendicitis
form = "Condition"
name = "Appendicitis"
max_stages = 3
spread_text = "Non-contagius"
spread_flags = NON_CONTAGIOUS
cure_text = "Surgery"
agent = "Shitty Appendix"
viable_mobtypes = list(/mob/living/carbon/human)
desc = "If left untreated the subject will become very weak, and may vomit often."
severity = MINOR
disease_flags = CAN_CARRY|CAN_CARRY
visibility_flags = HIDDEN_PANDEMIC
required_organs = list(/obj/item/organ/internal/appendix)
bypasses_immunity = TRUE
virus_heal_resistant = TRUE
/datum/disease/appendicitis/stage_act()
if(!..())
return
switch(stage)
if(1)
if(prob(5))
affected_mob.adjustToxLoss(1)
if(2)
var/obj/item/organ/internal/appendix/A = affected_mob.internal_organs_by_name[O_APPENDIX]
if(A)
A.inflamed = TRUE
if(prob(3))
to_chat(affected_mob, span_warning("You feel a stabbing pain in your abdomen!"))
affected_mob.custom_emote(VISIBLE_MESSAGE, "winces painfully.")
affected_mob.Stun(rand(4, 6))
affected_mob.adjustToxLoss(1)
if(3)
if(prob(1))
to_chat(affected_mob, span_danger("Your abdomen is a world of pain!"))
affected_mob.custom_emote(VISIBLE_MESSAGE, "winces painfully.")
affected_mob.Weaken(10)
if(prob(1))
affected_mob.vomit(95)
if(prob(5))
to_chat(affected_mob, span_warning("You feel a stabbing pain in your abdomen!"))
affected_mob.custom_emote(VISIBLE_MESSAGE, "winces painfully.")
affected_mob.Stun(rand(4, 6))
affected_mob.adjustToxLoss(2)
+3 -6
View File
@@ -9,12 +9,9 @@
/mob/living/carbon/human/proc/appendicitis()
if(stat == DEAD)
return 0
var/obj/item/organ/internal/appendix/A = internal_organs_by_name[O_APPENDIX]
if(istype(A) && !A.inflamed)
A.inflamed = 1
return 1
ForceContractDisease(new /datum/disease/appendicitis)
return 0
/*
/obj/item/organ/internal/appendix/process()
..()
@@ -47,7 +44,7 @@
owner.adjustToxLoss(25)
groin.wounds += W
inflamed = 1
*/
/obj/item/organ/internal/appendix/removed()
if(inflamed)
icon_state = "[initial(icon_state)]inflamed"
@@ -40,6 +40,13 @@
required_reagents = list("inaprovaline" = 1, "mutagenvirusfood" = 1)
result_amount = 2
/decl/chemical_reaction/instant/virus_food_size
name = "sizeoxadone virus food"
id = "sizeoxadonevirusfood"
result = "sizevirusfood"
required_reagents = list("sizeoxadone" = 1, "phoronvirusfood" = 1)
result_amount = 2
/decl/chemical_reaction/instant/mix_virus
name = "Mix Virus"
id = "mixvirus"
@@ -48,6 +55,9 @@
var/level_min = 0
var/level_max = 2
/decl/chemical_reaction/instant/mix_virus/picky
var/list/datum/symptom/symptoms
/decl/chemical_reaction/instant/mix_virus/on_reaction(datum/reagents/holder)
var/datum/reagent/blood/B = locate(/datum/reagent/blood) in holder.reagent_list
if(B && B.data)
@@ -55,6 +65,13 @@
if(D)
D.Evolve(level_min, level_max)
/decl/chemical_reaction/instant/mix_virus/picky/on_reaction(datum/reagents/holder)
var/datum/reagent/blood/B = locate(/datum/reagent/blood) in holder.reagent_list
if(B && B.data)
var/datum/disease/advance/D = locate(/datum/disease/advance) in B.data["viruses"]
if(D)
D.PickyEvolve(symptoms)
/decl/chemical_reaction/instant/mix_virus/mix_virus_2
name = "Mix Virus 2"
id = "mixvirus2"
@@ -111,6 +128,16 @@
level_min = 1
level_max = 1
/decl/chemical_reaction/instant/mix_virus/picky/size
name = "Mix Virus Size"
id = "mixvirussize"
required_reagents = list("sizevirusfood" = 1)
symptoms = list(
/datum/symptom/macrophage,
/datum/symptom/size,
/datum/symptom/size/grow
)
/decl/chemical_reaction/instant/mix_virus/rem_virus
name = "Devolve Virus"
id = "remvirus"
@@ -46,3 +46,9 @@
id = "weakphoronvirusfood"
description = "Mutates viruses when mixed in blood. This one seems to have been weakened, but still strong."
color = "#CEC3C6"
/datum/reagent/toxin/phoron/phoronvirusfood/sizevirusfood
name = "Sizeoxadone virus food"
id = "sizevirusfood"
description = "Mutates virus when mixed in blood. This is a strange size mix..."
color = "#88AFDD"
+9 -1
View File
@@ -459,6 +459,7 @@
#include "code\datums\diseases\_disease.dm"
#include "code\datums\diseases\_MobProcs.dm"
#include "code\datums\diseases\anxiety.dm"
#include "code\datums\diseases\appendicitis.dm"
#include "code\datums\diseases\beesease.dm"
#include "code\datums\diseases\brainrot.dm"
#include "code\datums\diseases\choreomania.dm"
@@ -474,23 +475,30 @@
#include "code\datums\diseases\advance\symptoms\confusion.dm"
#include "code\datums\diseases\advance\symptoms\cough.dm"
#include "code\datums\diseases\advance\symptoms\damage_converter.dm"
#include "code\datums\diseases\advance\symptoms\deafness.dm"
#include "code\datums\diseases\advance\symptoms\dizzy.dm"
#include "code\datums\diseases\advance\symptoms\fever.dm"
#include "code\datums\diseases\advance\symptoms\fire.dm"
#include "code\datums\diseases\advance\symptoms\flesh_eating.dm"
#include "code\datums\diseases\advance\symptoms\flip.dm"
#include "code\datums\diseases\advance\symptoms\hair.dm"
#include "code\datums\diseases\advance\symptoms\hallucigen.dm"
#include "code\datums\diseases\advance\symptoms\headache.dm"
#include "code\datums\diseases\advance\symptoms\heal.dm"
#include "code\datums\diseases\advance\symptoms\hematophagy.dm"
#include "code\datums\diseases\advance\symptoms\itching.dm"
#include "code\datums\diseases\advance\symptoms\language.dm"
#include "code\datums\diseases\advance\symptoms\macrophage.dm"
#include "code\datums\diseases\advance\symptoms\mlem.dm"
#include "code\datums\diseases\advance\symptoms\necrotic_agent.dm"
#include "code\datums\diseases\advance\symptoms\oxygen.dm"
#include "code\datums\diseases\advance\symptoms\photosensitivity.dm"
#include "code\datums\diseases\advance\symptoms\pica.dm"
#include "code\datums\diseases\advance\symptoms\sensory.dm"
#include "code\datums\diseases\advance\symptoms\shivering.dm"
#include "code\datums\diseases\advance\symptoms\size.dm"
#include "code\datums\diseases\advance\symptoms\sneeze.dm"
#include "code\datums\diseases\advance\symptoms\spin.dm"
#include "code\datums\diseases\advance\symptoms\stimulant.dm"
#include "code\datums\diseases\advance\symptoms\symptoms.dm"
#include "code\datums\diseases\advance\symptoms\synthetic_infection.dm"
#include "code\datums\diseases\advance\symptoms\telepathy.dm"