Custom item augments are no longer duplicated (#20847)

Oops.

Adds a check to the relevant proc so custom item prosthetics and
augments don't get spawned twice.
This commit is contained in:
hazelrat
2025-06-16 22:17:05 +00:00
committed by GitHub
parent 4e931c0f9c
commit c9a0b0c3ff
2 changed files with 62 additions and 0 deletions
@@ -324,6 +324,10 @@ GLOBAL_LIST_EMPTY(character_id_to_custom_items_mapping)
else if(citem.item_path == /obj/item/modular_computer)
existing_item = locate(/obj/item/modular_computer) in target_mob.contents
// So prosthetics or augments don't spawn in both variations of this proc.
if(ispath(citem.item_path, /obj/item/organ/external) || ispath(citem.item_path, /obj/item/organ/internal/augment/fluff))
return FALSE
// Spawn and equip the item.
if(existing_item)
citem.apply_to_item(existing_item)