From 01620b9c46bbcdbb5a4b6abb60db87ca35cee44b Mon Sep 17 00:00:00 2001 From: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Date: Tue, 7 Jan 2025 04:17:03 +0200 Subject: [PATCH] fixes goliaths being untamable (#88779) ## About The Pull Request you can now tame goliaths again! ## Why It's Good For The Game closes #88761 ## Changelog :cl: fix: goliaths can now be tamed /:cl: --- code/datums/elements/basic_eating.dm | 13 +++++-------- .../mob/living/basic/lavaland/goliath/goliath.dm | 3 +-- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/code/datums/elements/basic_eating.dm b/code/datums/elements/basic_eating.dm index 4be983b3211..1e148b30b15 100644 --- a/code/datums/elements/basic_eating.dm +++ b/code/datums/elements/basic_eating.dm @@ -73,19 +73,16 @@ if (heal_amt > 0) var/healed = heal_amt && eater.health < eater.maxHealth - if(heal_amt) - eater.heal_overall_damage(heal_amt) + eater.heal_overall_damage(heal_amt) eater.visible_message(span_notice("[eater] [eat_verb]s [target]."), span_notice("You [eat_verb] [target][healed ? ", restoring some health" : ""].")) - finish_eating(eater, target) - return TRUE - if (damage_amount > 0 && damage_type) + else if (damage_amount > 0 && damage_type) eater.apply_damage(damage_amount, damage_type) eater.visible_message(span_notice("[eater] [eat_verb]s [target], and seems to hurt itself."), span_notice("You [eat_verb] [target], hurting yourself in the process.")) - finish_eating(eater, target, feeder) - return TRUE - eater.visible_message(span_notice("[eater] [eat_verb]s [target]."), span_notice("You [eat_verb] [target].")) + else + eater.visible_message(span_notice("[eater] [eat_verb]s [target]."), span_notice("You [eat_verb] [target].")) + finish_eating(eater, target, feeder) return TRUE diff --git a/code/modules/mob/living/basic/lavaland/goliath/goliath.dm b/code/modules/mob/living/basic/lavaland/goliath/goliath.dm index f8a7ee46bc3..c19591ae8cc 100644 --- a/code/modules/mob/living/basic/lavaland/goliath/goliath.dm +++ b/code/modules/mob/living/basic/lavaland/goliath/goliath.dm @@ -68,8 +68,7 @@ AddComponent(/datum/component/basic_mob_attack_telegraph) AddComponentFrom(INNATE_TRAIT, /datum/component/shovel_hands) if (tameable) - var/static/list/food_types = list(/obj/item/food/grown/ash_flora) - AddComponent(/datum/component/tameable, food_types = food_types, tame_chance = 10, bonus_tame_chance = 5) + AddComponent(/datum/component/tameable, tame_chance = 10, bonus_tame_chance = 5) tentacles = new (src) tentacles.Grant(src)