Fixes synths not being able to take hunger traits. (#7333)

This commit is contained in:
Verkister
2023-12-04 20:40:54 +02:00
committed by GitHub
parent 84f7b6f1ec
commit 1435b11a3c
3 changed files with 10 additions and 5 deletions

View File

@@ -78,11 +78,13 @@
return return
if(resting) if(resting)
vore_selected.digest_mode = DM_UNABSORB if(isbelly(vore_selected)) //CHOMPEdit Start
vore_selected.digest_mode = DM_UNABSORB
ai_holder.go_sleep() ai_holder.go_sleep()
else else
vore_selected.digest_mode = vore_default_mode if(isbelly(vore_selected))
vore_selected.digest_mode = vore_default_mode //CHOMPEdit End
ai_holder.go_wake() ai_holder.go_wake()
/mob/living/simple_mob/vore/pakkun/attack_hand(mob/user) /mob/living/simple_mob/vore/pakkun/attack_hand(mob/user)

View File

@@ -1,8 +1,8 @@
/datum/trait/neutral/metabolism_up /datum/trait/neutral/metabolism_up
can_take = ORGANICS can_take = ORGANICS|SYNTHETICS
/datum/trait/neutral/metabolism_down /datum/trait/neutral/metabolism_down
can_take = ORGANICS can_take = ORGANICS|SYNTHETICS
/datum/trait/neutral/metabolism_apex /datum/trait/neutral/metabolism_apex
can_take = ORGANICS can_take = ORGANICS|SYNTHETICS

View File

@@ -15,6 +15,9 @@
if(faction == "Neutral") if(faction == "Neutral")
neutral = TRUE neutral = TRUE
mobspawned = new mobtype(get_turf(GLOB.button_mob_spawner_landmark[link])) mobspawned = new mobtype(get_turf(GLOB.button_mob_spawner_landmark[link]))
if(!istype(mobspawned))
mobspawned = null
return
mobspawned.voremob_loaded = TRUE mobspawned.voremob_loaded = TRUE
mobspawned.init_vore() mobspawned.init_vore()
if(neutral == TRUE) if(neutral == TRUE)