mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 06:54:18 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user