Skip to content

Commit

Permalink
Gaining TRAIT_VIRUSIMMUNE now properly cures any diseases
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed May 12, 2024
1 parent 2948749 commit 51fc784
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion code/modules/mob/living/carbon/init_signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@
SIGNAL_HANDLER

for(var/datum/disease/disease as anything in diseases)
disease.cure(FALSE)
// monkestation edit start - virology (cure() on advanced diseases has the infected mob as the first argument now)
if(istype(disease, /datum/disease/advanced))
disease.cure(src, FALSE)
else
disease.cure(FALSE)
// monkestation end

/**
* On gain of TRAIT_TOXIMMUNE
Expand Down
1 change: 1 addition & 0 deletions monkestation/code/modules/virology/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This PR aims to make virology not ass to play with

<!-- If you had to edit, or append to any core procs in the process of making this PR, list them here. APPEND: Also, please include any files that you've changed. .DM files that is. -->
- code\modules\mob\living\carbon\life.dm
- code\modules\mob\living\carbon\init_signals.dm
- code\datums\diseases\_disease.dm
- code\game\objects\effects\decals\cleanable.dm
- code\game\atoms.dm
Expand Down

0 comments on commit 51fc784

Please sign in to comment.