Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebalances black and green core reactions also adds three items to green cores (fug) #14649

Merged
merged 14 commits into from Apr 23, 2017
11 changes: 2 additions & 9 deletions code/game/objects/items/slime_heart.dm
Expand Up @@ -5,24 +5,17 @@
icon_state = "Slime-Heart"
item_state = "Slime-Heart"
w_class = W_CLASS_TINY
var/cd = 0

/obj/item/slime_heart/New()
processing_objects.Add(src)
..()

/obj/item/slime_heart/process()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to OnMobLife(var/mob) and remove the New code

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dang c*ders

Copy link
Author

@ghost ghost Apr 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wait isn't that the old code?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nvm

if(iscarbon(loc) && !cd)
if(iscarbon(loc))
var/mob/living/carbon/C = loc
if(C.is_holding_item(src))
if(C.dna && C.dna.mutantrace == "slime")
C.adjustToxLoss(-3)
else
C.adjustToxLoss(5)
cd = 1
spawn(1 SECONDS)
cd = 0

/obj/item/slime_heart/Destroy()
processing_objects.Remove(src)
..()
spawn(1 SECONDS)