mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-28 06:27:26 +01:00
geartweak vars
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user