mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-21 12:08:55 +01:00
Merge pull request #10988 from PatchouliKnowledge/Appendifixis
Fixes appendicitis magically self-curing
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
//Disease Flags
|
||||
#define CURABLE 1
|
||||
#define CAN_CARRY 2
|
||||
#define CAN_RESIST 3
|
||||
#define CAN_RESIST 4
|
||||
|
||||
//Spread Flags
|
||||
#define SPECIAL 1
|
||||
|
||||
@@ -12,12 +12,10 @@
|
||||
disease_flags = CAN_CARRY|CAN_RESIST
|
||||
spread_flags = NON_CONTAGIOUS
|
||||
visibility_flags = HIDDEN_PANDEMIC
|
||||
required_organs = list(/obj/item/organ/limb/chest)
|
||||
|
||||
required_organs = list(/obj/item/organ/internal/appendix)
|
||||
|
||||
/datum/disease/appendicitis/stage_act()
|
||||
..()
|
||||
|
||||
switch(stage)
|
||||
if(1)
|
||||
if(prob(5))
|
||||
|
||||
@@ -14,5 +14,5 @@
|
||||
continue
|
||||
|
||||
var/datum/disease/D = new /datum/disease/appendicitis
|
||||
H.AddDisease(D)
|
||||
H.ForceContractDisease(D)
|
||||
break
|
||||
@@ -24,6 +24,9 @@
|
||||
user.visible_message("[user] successfully removes [target]'s appendix!", "<span class='notice'>You successfully removes [target]'s appendix.</span>")
|
||||
A.loc = get_turf(target)
|
||||
A.Remove(target)
|
||||
for(var/datum/disease/appendicitis in target.viruses)
|
||||
appendicitis.cure()
|
||||
target.resistances += /datum/disease/appendicitis
|
||||
else
|
||||
user << "<span class='warning'>You can't find an appendix in [target]!</span>"
|
||||
return 1
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user