diff --git a/modular_skyrat/master_files/code/game/atoms.dm b/modular_skyrat/master_files/code/game/atoms.dm index 1701f6cfa78..0c7510d5b89 100644 --- a/modular_skyrat/master_files/code/game/atoms.dm +++ b/modular_skyrat/master_files/code/game/atoms.dm @@ -8,3 +8,11 @@ human_mob.dna.current_body_size = BODY_SIZE_NORMAL // because if we don't set this, update_body_size will think that it has no work to do. human_mob.dna.update_body_size() + +/// Called after a loadout item gets custom named +/atom/proc/on_loadout_custom_named() + return + +/// Called after a loadout item gets a custom description +/atom/proc/on_loadout_custom_described() + return diff --git a/modular_skyrat/modules/customization/game/objects/items/plushes.dm b/modular_skyrat/modules/customization/game/objects/items/plushes.dm index 1d2992cf8ef..1d6349c5651 100644 --- a/modular_skyrat/modules/customization/game/objects/items/plushes.dm +++ b/modular_skyrat/modules/customization/game/objects/items/plushes.dm @@ -1,3 +1,7 @@ +// Because plushes have a second desc var that needs to be updated +/obj/item/toy/plush/on_loadout_custom_described() + normal_desc = desc + // // MODULAR PLUSHES /obj/item/toy/plush/skyrat icon = 'modular_skyrat/master_files/icons/obj/plushes.dmi' diff --git a/modular_skyrat/modules/loadouts/loadout_items/_loadout_datum.dm b/modular_skyrat/modules/loadouts/loadout_items/_loadout_datum.dm index 8057753b143..5a4d3bc6a54 100644 --- a/modular_skyrat/modules/loadouts/loadout_items/_loadout_datum.dm +++ b/modular_skyrat/modules/loadouts/loadout_items/_loadout_datum.dm @@ -121,8 +121,10 @@ GLOBAL_LIST_EMPTY(all_loadout_datums) if(equipped_item) if(INFO_NAMED in our_loadout[item_path]) equipped_item.name = our_loadout[item_path][INFO_NAMED] + equipped_item.on_loadout_custom_named() if(INFO_DESCRIBED in our_loadout[item_path]) equipped_item.desc = our_loadout[item_path][INFO_DESCRIBED] + equipped_item.on_loadout_custom_described() else stack_trace("[type] on_equip_item(): Could not locate item (path: [item_path]) in [equipper]'s contents to set name/desc!")