Skip to content

Commit

Permalink
Modular culture extention instead of a static list; GAS define failsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
UEDCommander committed Nov 17, 2023
1 parent a1e723c commit e3724e4
Show file tree
Hide file tree
Showing 10 changed files with 134 additions and 256 deletions.
3 changes: 0 additions & 3 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -3354,9 +3354,6 @@
#include "mods\_master_files\code\modules\events\gravity.dm"
#include "mods\_master_files\code\modules\mob\new_player\new_player.dm"
#include "mods\_master_files\code\modules\power\gravitygenerator.dm"
#include "mods\_master_files\code\modules\species\station\lizard.dm"
#include "mods\_master_files\code\modules\species\station\machine.dm"
#include "mods\_master_files\code\modules\species\station\station.dm"
#include "mods\_master_files\maps\mapsystem\maps.dm"
#include "~code\global_init.dm"
// END_INCLUDE
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
LAZYADD(job_titles, "none")
// [SIERRA-EDIT] - EXPANDED_CULTURE_DESCRIPTOR - Перевод здесь, потому что переопределение в мастер файлах ломает hidden_valid_jobs. Увы.
// description = "You have been trained by Xynergy to [name]. This makes you suitable for the following roles: [english_list(job_titles)]." // SIERRA-EDIT - ORIGINAL
var/grade = copytext("[name]",7)
var/grade = name
if(findtext_char("[name]","Grade")==0)
crash_with("Не удалось получить класс ГБС для формирования описания - вероятно, были изменены дефайны классов ГБС")
else
grade = copytext_char("[name]",7)
description = "Вы были обучены корпорацией Xynergy в соответствии с классом [grade] и пригодны для исполнения обязанностей следующих категорий: [english_list(job_titles)]."
// [SIERRA-EDIT]

Expand Down
62 changes: 0 additions & 62 deletions mods/_master_files/code/modules/species/station/lizard.dm

This file was deleted.

43 changes: 0 additions & 43 deletions mods/_master_files/code/modules/species/station/machine.dm

This file was deleted.

138 changes: 0 additions & 138 deletions mods/_master_files/code/modules/species/station/station.dm

This file was deleted.

19 changes: 11 additions & 8 deletions mods/expanded_culture_descriptor/_expanded_culture_descriptor.dme
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,30 @@
// #include "code/something.dm"

#include "code\_culture.dm"
#include "code\language\alain.dm"
#include "code\language\arabic.dm"
#include "code\language\chinese.dm"
#include "code\cultures_human.dm"
#include "code\cultures_unathi.dm"
#include "code\language\euro.dm"
#include "code\factions_human.dm"
#include "code\factions_ipc.dm"
#include "code\factions_skrell.dm"
#include "code\factions_unathi.dm"
#include "code\language\german.dm"
#include "code\language\indian.dm"
#include "code\language\lirris.dm"
#include "code\locations_human.dm"
#include "code\locations_ipc.dm"
#include "code\locations_unathi.dm"
#include "code\loadout_xeno.dm"
#include "code\passport.dm"
#include "code\tajara_culture.dm"
#include "code\language\alain.dm"
#include "code\language\arabic.dm"
#include "code\language\chinese.dm"
#include "code\language\euro.dm"
#include "code\language\german.dm"
#include "code\language\indian.dm"
#include "code\language\lirris.dm"
#include "code\language\russian.dm"
#include "code\language\selenian.dm"
#include "code\language\spanish.dm"
#include "code\tajara_culture.dm"
#include "code\species\station.dm"
#include "code\species\machine.dm"
#include "code\species\lizard.dm"

#endif
2 changes: 1 addition & 1 deletion mods/expanded_culture_descriptor/code/locations_human.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = HOME_SYSTEM_TERSTEN
nickname = "Терстен"
distance = "46 световых лет"
description = "Терстен является населенным равнинным миром и третьей планетой системы Гавил, которая расположена в \
description = "Терстен является населенным равнинным миром и третьей планетой системы Гавил, которая расположена \
примерно в 50 световых годах от Солнечной Системы. Трестен является самой удалённой человеческой колонией в известном \
космосе и единственной населённой планетой в системе Гавил. Система Гавил расположенна в \"Лордианском кластере\" — малой \
группы из десяти звёзд расположенных близко к друг-другу, и чья история тесно переплетается между собой. Столица — \
Expand Down
31 changes: 31 additions & 0 deletions mods/expanded_culture_descriptor/code/species/lizard.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/datum/species/unathi
additional_available_cultural_info = list(
TAG_CULTURE = list(
CULTURE_UNATHI_TERSTEN
),
TAG_HOMEWORLD = list(
HOME_SYSTEM_UNATHI_TERSTEN
),
TAG_FACTION = list(
FACTION_UNATHI_TERSTEN,
FACTION_NANOTRASEN,
FACTION_FREETRADE,
FACTION_HEPHAESTUS,
FACTION_EXPEDITIONARY,
FACTION_PCRC,
FACTION_SAARE,
FACTION_CORPORATE,
FACTION_DAIS,
FACTION_ZENG_HU,
FACTION_WARD_TAKAHASHI,
FACTION_GRAYSON,
FACTION_AERTHER,
FACTION_MAJOR_BILL,
FACTION_FOCAL_POINT,
FACTION_XION,
FACTION_VEY_MED,
FACTION_BISHOP,
FACTION_ZPCI,
FACTION_SEPTENERGO
)
)
9 changes: 9 additions & 0 deletions mods/expanded_culture_descriptor/code/species/machine.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/datum/species/machine
additional_available_cultural_info = list(
TAG_HOMEWORLD = list(
HOME_SYSTEM_ROOT
),
TAG_FACTION = list(
FACTION_POSITRONICS
)
)
Loading

0 comments on commit e3724e4

Please sign in to comment.