From 3cf6aa9f2adfb1534510d3fb3630500912addda0 Mon Sep 17 00:00:00 2001 From: Guti Date: Sat, 30 Nov 2024 17:06:02 +0100 Subject: [PATCH] Size stuffs --- code/datums/diseases/advance/symptoms/size.dm | 60 ++++++++++++------- code/modules/admin/admin_verb_lists_vr.dm | 6 +- code/modules/admin/admin_verbs.dm | 15 +++++ .../reagents/reactions/instant/virology.dm | 3 +- 4 files changed, 59 insertions(+), 25 deletions(-) diff --git a/code/datums/diseases/advance/symptoms/size.dm b/code/datums/diseases/advance/symptoms/size.dm index 07429aac73d..a0a71fe1b71 100644 --- a/code/datums/diseases/advance/symptoms/size.dm +++ b/code/datums/diseases/advance/symptoms/size.dm @@ -1,7 +1,7 @@ /* ////////////////////////////////////// -Dwindling Malady +Mass Revectoring Very noticeable. Increases resistance slightly. @@ -10,13 +10,13 @@ Dwindling Malady Intense level. BONUS - Shrinks the host to small sizes + Changes the size of the host. ////////////////////////////////////// */ /datum/symptom/size - name = "Dwindling Malady" + name = "Mass Revectoring" stealth = -4 resistance = 1 stage_speed = 2 @@ -24,29 +24,18 @@ BONUS 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)) + M.emote("twitch") + Resize(M, rand(25, 200)) /datum/symptom/size/proc/Resize(mob/living/M, var/size) - M.resize(size+M.size_multiplier) + M.resize(size+M.size_multiplier/100) /* ////////////////////////////////////// @@ -74,9 +63,36 @@ BONUS 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)) + M.emote("twitch") + Resize(M, rand(100, 200)) + +/* +////////////////////////////////////// + +Dwindling Malady + + Very noticeable. + Increases resistance slightly. + Increases stage speed. + Decreases transmittablity + Intense level. + +BONUS + Shrinks the host to small sizes + +////////////////////////////////////// +*/ + +/datum/symptom/size/shrink + name = "Dwindling Malady" + +/datum/symptom/size/Activate(datum/disease/advance/A) + ..() + if(prob(SYMPTOM_ACTIVATION_PROB)) + var/mob/living/M = A.affected_mob + + switch(A.stage) + if(4, 5) + M.emote("twitch") + Resize(M, rand(25, 100)) diff --git a/code/modules/admin/admin_verb_lists_vr.dm b/code/modules/admin/admin_verb_lists_vr.dm index fac337afb8a..de613980d0a 100644 --- a/code/modules/admin/admin_verb_lists_vr.dm +++ b/code/modules/admin/admin_verb_lists_vr.dm @@ -196,7 +196,8 @@ var/list/admin_verbs_spawn = list( /client/proc/create_gm_message, /client/proc/remove_gm_message, /client/proc/AdminCreateVirus, - /client/proc/ReleaseVirus + /client/proc/ReleaseVirus, + /client/proc/spawn_reagent ) var/list/admin_verbs_server = list( @@ -283,7 +284,8 @@ var/list/admin_verbs_debug = list( /client/proc/admin_give_modifier, /client/proc/simple_DPS, /datum/admins/proc/view_feedback, - /client/proc/stop_sounds + /client/proc/stop_sounds, + /client/proc/spawn_reagent ) var/list/admin_verbs_paranoid_debug = list( diff --git a/code/modules/admin/admin_verbs.dm b/code/modules/admin/admin_verbs.dm index 7bd3b1e4c15..6b4bad16849 100644 --- a/code/modules/admin/admin_verbs.dm +++ b/code/modules/admin/admin_verbs.dm @@ -535,3 +535,18 @@ set category = "Debug.Misc" src.stat_panel.send_message("create_debug") + +/client/proc/spawn_reagent() + set name = "Spawn Reagent" + set category = "Debug.Game" + + if(!check_rights(R_ADMIN|R_EVENT)) return + var/datum/reagent/R = tgui_input_list(usr, "Select a reagent to spawn", "Reagent Spawner", subtypesof(/datum/reagent)) + if(!R) + return + + var/obj/item/reagent_containers/glass/bottle/B = new(usr.loc) + + B.icon_state = "bottle-1" + B.reagents.add_reagent(R.id, 60) + B.name = "[B.name] of [R.name]" diff --git a/code/modules/reagents/reactions/instant/virology.dm b/code/modules/reagents/reactions/instant/virology.dm index e449cccb28e..26576c23d6c 100644 --- a/code/modules/reagents/reactions/instant/virology.dm +++ b/code/modules/reagents/reactions/instant/virology.dm @@ -135,7 +135,8 @@ symptoms = list( /datum/symptom/macrophage, /datum/symptom/size, - /datum/symptom/size/grow + /datum/symptom/size/grow, + /datum/symptom/size/shrink ) /decl/chemical_reaction/instant/mix_virus/rem_virus