From a314842e4ff8f2ebe5438cd3c8cdc0a77d2c09d5 Mon Sep 17 00:00:00 2001 From: FlufflesTheDog Date: Wed, 29 May 2024 07:49:20 -0700 Subject: [PATCH] Fix being able to add too many symptoms to a virus (#83560) ## About The Pull Request Makes sure viruses respect the weighted 6 symptom cap. 8 symptom viruses are not something this world is prepared for. Fixes https://github.com/NovaSector/NovaSector/issues/2727 ## Why It's Good For The Game fix bug ## Changelog :cl: fix: viruses can no longer potentially have 8 symptoms /:cl: --- code/datums/diseases/advance/advance.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/diseases/advance/advance.dm b/code/datums/diseases/advance/advance.dm index 3d8bfdf8837..57ce722cd64 100644 --- a/code/datums/diseases/advance/advance.dm +++ b/code/datums/diseases/advance/advance.dm @@ -405,7 +405,7 @@ /datum/disease/advance/proc/AddSymptom(datum/symptom/S) if(HasSymptom(S)) return - while(get_symptom_weights() > VIRUS_SYMPTOM_LIMIT + S.weight) + while(get_symptom_weights() + S.weight > VIRUS_SYMPTOM_LIMIT) RemoveSymptom(pick(symptoms)) symptoms += S S.OnAdd(src)