From 539f704311218f35f3dff347604e2811122eb5da Mon Sep 17 00:00:00 2001 From: larentoun <31931237+larentoun@users.noreply.github.com> Date: Sun, 13 Oct 2024 19:02:20 +0300 Subject: [PATCH] auto rename designs --- modular_bandastation/translations/_translations.dme | 1 + modular_bandastation/translations/code/design.dm | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 modular_bandastation/translations/code/design.dm diff --git a/modular_bandastation/translations/_translations.dme b/modular_bandastation/translations/_translations.dme index 6d83ba51fad5b..ee3f2bf83bb79 100644 --- a/modular_bandastation/translations/_translations.dme +++ b/modular_bandastation/translations/_translations.dme @@ -1,6 +1,7 @@ #include "_translations.dm" #include "code/bodyparts.dm" +#include "code/design.dm" #include "code/moustache.dm" #include "code/pronouns.dm" #include "code/restaurant_customer.dm" diff --git a/modular_bandastation/translations/code/design.dm b/modular_bandastation/translations/code/design.dm new file mode 100644 index 0000000000000..ec32147539ef2 --- /dev/null +++ b/modular_bandastation/translations/code/design.dm @@ -0,0 +1,9 @@ +/datum/design + var/use_declented_name = TRUE + +/datum/design/New() + . = ..() + if(!use_declented_name || !build_path) + return + var/atom/design_result = build_path + name = capitalize(design_result::ru_name_nominative) || name