mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Diseases will now cure if species is changed (#31495)
* Diseases will now cure if species is changed * Update _disease.dm * Update _disease.dm * Update species.dm
This commit is contained in:
committed by
Jordan Brown
parent
cd1835cd8f
commit
34d22ccde6
@@ -98,10 +98,10 @@
|
||||
V = Temp
|
||||
|
||||
|
||||
/datum/disease/proc/cure()
|
||||
/datum/disease/proc/cure(add_resistance = TRUE)
|
||||
if(affected_mob)
|
||||
if(disease_flags & CAN_RESIST)
|
||||
if(!(type in affected_mob.resistances))
|
||||
if(add_resistance && !(type in affected_mob.resistances))
|
||||
affected_mob.resistances += type
|
||||
remove_virus()
|
||||
qdel(src)
|
||||
|
||||
@@ -257,6 +257,11 @@
|
||||
C.dropItemToGround(I)
|
||||
else //Entries in the list should only ever be items or null, so if it's not an item, we can assume it's an empty hand
|
||||
C.put_in_hands(new mutanthands())
|
||||
|
||||
if(VIRUSIMMUNE in species_traits)
|
||||
for(var/datum/disease/A in C.viruses)
|
||||
A.cure(FALSE)
|
||||
|
||||
|
||||
/datum/species/proc/on_species_loss(mob/living/carbon/C)
|
||||
if(C.dna.species.exotic_bloodtype)
|
||||
|
||||
Reference in New Issue
Block a user