Moved species defines to setup.dm, add whitelisted species global.

This commit is contained in:
Zuhayr
2013-08-07 01:12:11 -07:00
parent 221324d29b
commit e9a1272d34
3 changed files with 22 additions and 17 deletions
+5 -1
View File
@@ -17,9 +17,10 @@ var/global/list/landmarks_list = list() //list of all landmarks created
var/global/list/surgery_steps = list() //list of all surgery steps |BS12
var/global/list/mechas_list = list() //list of all mechs. Used by hostile mobs target tracking.
//Languages/species
//Languages/species/whitelist.
var/global/list/all_species[0]
var/global/list/all_languages[0]
var/global/list/whitelisted_species = list("Human")
//Preferences stuff
//Hairstyles
@@ -85,6 +86,9 @@ var/global/list/backbaglist = list("Nothing", "Backpack", "Satchel", "Satchel Al
var/datum/species/S = new T
all_species[S.name] = S
if(S.flags & WHITELISTED)
whitelisted_species += S.name
/* // Uncomment to debug chemical reaction list.
/client/verb/debug_chemical_list()
+1 -15
View File
@@ -1,17 +1,3 @@
#define NO_EAT 1
#define NO_BREATHE 2
#define NO_SLEEP 4
#define NO_SHOCK 8
#define NO_SCAN 16
#define NON_GENDERED 32
#define REQUIRE_LIGHT 64
#define WHITELISTED 128
#define HAS_SKIN_TONE 256
#define HAS_LIPS 512
#define HAS_UNDERWEAR 1024
#define HAS_TAIL 2048
#define IS_PLANT 4096
/*
Datum-based species. Should make for much cleaner and easier to maintain mutantrace code.
*/
@@ -63,7 +49,7 @@
flags = WHITELISTED | HAS_LIPS | HAS_UNDERWEAR | HAS_TAIL
/datum/species/tajaran
name = "Tajara"
name = "Tajaran"
icobase = 'icons/mob/human_races/r_tajaran.dmi'
deform = 'icons/mob/human_races/r_def_tajaran.dmi'
language = "Siik'mas"
+16 -1
View File
@@ -701,4 +701,19 @@ var/list/RESTRICTED_CAMERA_NETWORKS = list( //Those networks can only be accesse
"thunder",
"ERT",
"NUKE"
)
)
//Species flags.
#define NO_EAT 1
#define NO_BREATHE 2
#define NO_SLEEP 4
#define NO_SHOCK 8
#define NO_SCAN 16
#define NON_GENDERED 32
#define REQUIRE_LIGHT 64
#define WHITELISTED 128
#define HAS_SKIN_TONE 256
#define HAS_LIPS 512
#define HAS_UNDERWEAR 1024
#define HAS_TAIL 2048
#define IS_PLANT 4096