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
🆑
fix: viruses can no longer potentially have 8 symptoms
/🆑
This commit is contained in:
FlufflesTheDog
2024-05-29 14:49:20 +00:00
committed by GitHub
parent ded43ab21e
commit a314842e4f
+1 -1
View File
@@ -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)