forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A separate list for cultural info - about as modular as its gonna get
- Loading branch information
1 parent
e83af8e
commit e4a621b
Showing
5 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/datum/species | ||
var/list/extended_cultural_info = list() | ||
|
||
|
||
/datum/species/New() | ||
. = ..() | ||
for(var/token in ALL_CULTURAL_TAGS) | ||
|
||
var/force_val = force_cultural_info[token] | ||
if(force_val) | ||
default_cultural_info[token] = force_val | ||
available_cultural_info[token] = list(force_val) | ||
|
||
else if(additional_available_cultural_info[token]) | ||
if(!available_cultural_info[token]) | ||
available_cultural_info[token] = list() | ||
available_cultural_info[token] |= additional_available_cultural_info[token] | ||
|
||
else if(!LAZYLEN(available_cultural_info[token])) | ||
var/list/map_systems = GLOB.using_map.available_cultural_info[token] | ||
available_cultural_info[token] = map_systems.Copy() | ||
|
||
if(extended_cultural_info[token]) | ||
available_cultural_info[token] |= extended_cultural_info[token] | ||
|
||
if(LAZYLEN(available_cultural_info[token]) && !default_cultural_info[token]) | ||
var/list/avail_systems = available_cultural_info[token] | ||
default_cultural_info[token] = avail_systems[1] | ||
|
||
if(!default_cultural_info[token]) | ||
default_cultural_info[token] = GLOB.using_map.default_cultural_info[token] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters