Skip to content

Commit

Permalink
use names
Browse files Browse the repository at this point in the history
  • Loading branch information
larentoun committed Nov 4, 2024
1 parent 6b8cd65 commit 9d22bf3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modular_ss220/translations/code/ru_names/ru_name_base.dm
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,8 @@ GLOBAL_LIST_EMPTY(ru_names)
return name

/// Used for getting initial values, such as for recipies where resulted atom is not yet created.
/proc/declent_ru_initial(atom/target, declent, override_backup)
if(!istype(target) && !ispath(target, /atom))
return override_backup
var/list/declented_list = ru_names_toml(target::name)
/proc/declent_ru_initial(target_name, declent, override_backup)
var/list/declented_list = ru_names_toml(target_name)
if(length(declented_list) && declented_list[declent])
return declented_list[declent]
return override_backup || target::name
return override_backup || target_name

0 comments on commit 9d22bf3

Please sign in to comment.