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

IPCs now take damage from Slimes feeding on them #26685

Closed
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions code/modules/mob/living/simple_animal/slime/slime_life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
if(prob(30) && stat == CONSCIOUS)
adjustBruteLoss(-1)

// This is where slime feeding is handled.
/mob/living/simple_animal/slime/proc/handle_feeding()
if(!ismob(buckled))
return
Expand All @@ -174,10 +175,20 @@
Feedstop()
return

// This is where damage dealt by slime feeding is handled.
if(iscarbon(M))
var/mob/living/carbon/C = M
C.adjustCloneLoss(rand(2, 4))
C.adjustToxLoss(rand(1, 2))
var/mob/living/carbon/human/D = M // I don't want to accidentally break feeding on Xenos or something.
if(C.dna) // Ensures there is DNA for the Synthetic check
if(C.dna.species.reagent_tag & PROCESS_SYN)
D.adjustBrainLoss(rand(2, 4)) // The IPC equivalent of Clone damage would be Brain damage.
D.adjustFireLoss(rand(1, 2), robotic = TRUE) // Poison can make you numb and feel on fire, also IPCs can't take Toxin damage.
else // Ensure slimes deal organic type damage to organics.
C.adjustCloneLoss(rand(2, 4))
C.adjustToxLoss(rand(1, 2))
else
C.adjustCloneLoss(rand(2, 4))
C.adjustToxLoss(rand(1, 2))

if(prob(10) && C.client)
to_chat(C, "<span class='userdanger'>[pick("You can feel your body becoming weak!", \
Expand Down