[NO GBP] fixed fish traits added through the fish gene gun not updating some things properly. (#96517)

This commit is contained in:
Ghom
2026-06-18 17:14:19 +02:00
committed by GitHub
parent ec5d7570c6
commit 9df4e3960f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -664,7 +664,7 @@
/obj/item/fish_gene/proc/inject_into_fish(obj/item/fish/fish, mob/living/user, obj/item/tool = src)
var/datum/fish_trait/trait = GLOB.fish_traits[trait_type]
if(!trait.apply_to_fish(fish))
if(!trait.apply_to_fish(fish, initial = FALSE))
to_chat(user, span_warning("You can't inject the \"[trait_type::name]\" trait into [fish]. [fish.p_they(TRUE)] either [fish.p_have()] it or [fish.p_are()] incompatible with it."))
return ITEM_INTERACT_BLOCKING
user.visible_message(span_notice("[user] injects [fish] with [tool]."), span_notice("You inject the \"[trait_type::name]\" trait into [fish]."))
+1 -1
View File
@@ -155,7 +155,7 @@
inheritability = 100
reagents_to_add = list(/datum/reagent/fishdummy = FISH_REAGENT_AMOUNT)
/datum/fish_trait/dummy/apply_to_fish(obj/item/fish/fish)
/datum/fish_trait/dummy/apply_to_fish(obj/item/fish/fish, initial = TRUE)
. = ..()
ADD_TRAIT(fish, TRAIT_FISH_TESTING, FISH_TRAIT_DATUM)