diff --git a/code/__DEFINES/components.dm b/code/__DEFINES/components.dm index 48d5f352e805..3912ed6a43bc 100644 --- a/code/__DEFINES/components.dm +++ b/code/__DEFINES/components.dm @@ -9,7 +9,7 @@ #define COMPONENT_DUPE_HIGHLANDER 0 //old component is deleted (default) #define COMPONENT_DUPE_ALLOWED 1 //duplicates allowed #define COMPONENT_DUPE_UNIQUE 2 //new component is deleted -#define COMPONENT_DUPE_INSTANCELESS 4 //old component is given the initialization args of the new +#define COMPONENT_DUPE_UNIQUE_PASSARGS 4 //old component is given the initialization args of the new // All signals. Format: // When the signal is called: (signal arguments) diff --git a/code/datums/components/README.md b/code/datums/components/README.md index b3ebd9f6c24f..026b387e2707 100644 --- a/code/datums/components/README.md +++ b/code/datums/components/README.md @@ -40,7 +40,7 @@ Stands have a lot of procs which mimic mob procs. Rather than inserting hooks fo * `COMPONENT_DUPE_HIGHLANDER` (default): Old component will be deleted, new component will first have `/datum/component/proc/InheritComponent(datum/component/old, FALSE)` on it * `COMPONENT_DUPE_ALLOWED`: The components will be treated as separate, `GetComponent()` will return the first added * `COMPONENT_DUPE_UNIQUE`: New component will be deleted, old component will first have `/datum/component/proc/InheritComponent(datum/component/new, TRUE)` on it - * `COMPONENT_DUPE_INSTANCELESS`: New component will never exist and instead its initialization arguments will be passed on to the old component. + * `COMPONENT_DUPE_UNIQUE_PASSARGS`: New component will never exist and instead its initialization arguments will be passed on to the old component. 1. `/datum/component/var/dupe_type` (protected, type) * Definition of a duplicate component type * `null` means exact match on `type` (default) diff --git a/code/datums/components/_component.dm b/code/datums/components/_component.dm index afb5b2191e9a..fcd46514592a 100644 --- a/code/datums/components/_component.dm +++ b/code/datums/components/_component.dm @@ -212,7 +212,7 @@ if(!QDELETED(new_comp)) new_comp.InheritComponent(old_comp, FALSE) qdel(old_comp) - if(COMPONENT_DUPE_INSTANCELESS) + if(COMPONENT_DUPE_UNIQUE_PASSARGS) if(!new_comp) var/list/arguments = args.Copy(2) old_comp.InheritComponent(null, TRUE, arguments) diff --git a/code/datums/components/radioactive.dm b/code/datums/components/radioactive.dm index 70426a5938f0..fc0456ad10ec 100644 --- a/code/datums/components/radioactive.dm +++ b/code/datums/components/radioactive.dm @@ -4,7 +4,7 @@ #define RAD_AMOUNT_EXTREME 1000 /datum/component/radioactive - dupe_mode = COMPONENT_DUPE_INSTANCELESS + dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS var/source diff --git a/code/datums/components/thermite.dm b/code/datums/components/thermite.dm index 453555d21d58..11611cadfb5e 100644 --- a/code/datums/components/thermite.dm +++ b/code/datums/components/thermite.dm @@ -1,5 +1,5 @@ /datum/component/thermite - dupe_mode = COMPONENT_DUPE_INSTANCELESS + dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS var/amount var/overlay