Skip to content

Commit

Permalink
auto rename designs
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Oct 13, 2024
1 parent 2aea65c commit 539f704
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions modular_bandastation/translations/_translations.dme
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
9 changes: 9 additions & 0 deletions modular_bandastation/translations/code/design.dm
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 539f704

Please sign in to comment.