Skip to content

Commit

Permalink
Update species.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Sep 17, 2024
1 parent 87c09d9 commit 64b5a79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions monkestation/code/modules/smithing/ipcs/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,17 @@

RegisterSignal(C, COMSIG_LIVING_DEATH, PROC_REF(bsod_death)) // screen displays bsod on death, if they have one
RegisterSignal(C.reagents, COMSIG_REAGENTS_ADD_REAGENT, PROC_REF(will_it_blend))
RegisterSignal(C, COMSIG_HUMAN_ON_HANDLE_BLOOD, PROC_REF(blood_handled))

/datum/species/ipc/proc/blood_handled(mob/living/carbon/human/slime, seconds_per_tick, times_fired)
SIGNAL_HANDLER

if(slime.stat == DEAD)
return NONE

if(slime.blood_volume >= BLOOD_VOLUME_OKAY)

slime.adjustOxyLoss(-3)

/datum/species/ipc/proc/will_it_blend(datum/reagents/holder, ...)
var/mob/living/carbon/carbon = holder.my_atom
Expand Down

0 comments on commit 64b5a79

Please sign in to comment.