diff --git a/code/modules/client/preference/loadout/loadout.dm b/code/modules/client/preference/loadout/loadout.dm index 2eaf2a612c1..979a4f2f423 100644 --- a/code/modules/client/preference/loadout/loadout.dm +++ b/code/modules/client/preference/loadout/loadout.dm @@ -17,6 +17,10 @@ GLOBAL_LIST_EMPTY(gear_datums) var/sort_category = "General" /// List of datums which will alter the item after it has been spawned. (NYI) var/list/gear_tweaks = list() + /// Can this item's name be customized? + var/tweakname = TRUE + /// Can this item's description be customized? + var/tweakdesc = TRUE /// Set on empty category datums to skip them being added to the list. (/datum/gear/accessory, /datum/gear/suit/coat/job, etc.) var/main_typepath = /datum/gear /// Does selecting a second item with the same `main_typepath` cost loadout points. @@ -29,6 +33,11 @@ GLOBAL_LIST_EMPTY(gear_datums) if(!description) var/obj/O = path description = initial(O.desc) + if(tweakname == TRUE) // Check if the name and/or description var is set to false, in case we don't want custom stuff. + gear_tweaks |= new /datum/gear_tweak/rename + if(tweakdesc == TRUE) // There has got to be a more efficient way to handle this. + gear_tweaks |= new /datum/gear_tweak/redesc + /datum/gear_data var/path