mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-22 04:28:33 +01:00
Fixes #3344 - Holocarp set DM_HOLD when holodeck is safe
This commit is contained in:
@@ -226,11 +226,20 @@
|
||||
|
||||
/mob/living/simple_animal/hostile/carp/holodeck
|
||||
vore_icons = 0 // NO VORE SPRITES
|
||||
vore_digest_chance = 0
|
||||
vore_absorb_chance = 0
|
||||
|
||||
// Override stuff for holodeck carp to make them not digest when set to safe!
|
||||
/mob/living/simple_animal/hostile/carp/holodeck/init_vore()
|
||||
. = ..()
|
||||
var/safe = (faction == "neutral")
|
||||
for(var/belly in vore_organs)
|
||||
var/obj/belly/B = belly
|
||||
B.digest_mode = safe ? DM_HOLD : vore_default_mode
|
||||
|
||||
/mob/living/simple_animal/hostile/carp/holodeck/set_safety(var/safe)
|
||||
. = ..()
|
||||
for(var/belly in vore_organs)
|
||||
var/obj/belly/B = belly
|
||||
B.digest_mode = safe ? DM_HOLD : vore_default_mode
|
||||
B.digestchance = safe ? 0 : vore_digest_chance
|
||||
B.absorbchance = safe ? 0 : vore_absorb_chance
|
||||
|
||||
Reference in New Issue
Block a user