mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 19:43:16 +00:00
Skips traits that aren't implemented yet.
This commit is contained in:
@@ -7,6 +7,9 @@ var/global/list/trait_categories = list() // The categories available for the tr
|
||||
//create a list of trait datums
|
||||
for(var/trait_type in typesof(/datum/trait) - list(/datum/trait, /datum/trait/modifier))
|
||||
var/datum/trait/T = new trait_type
|
||||
if(!T.is_available())
|
||||
qdel(T)
|
||||
continue
|
||||
|
||||
if(!T.name)
|
||||
error("Trait Menu - Missing name: [T.type]")
|
||||
@@ -173,6 +176,9 @@ var/global/list/trait_categories = list() // The categories available for the tr
|
||||
|
||||
return result
|
||||
|
||||
/datum/trait/proc/is_available()
|
||||
return TRUE
|
||||
|
||||
// Similar to above, but uses the above two procs, in one place.
|
||||
// Returns TRUE is everything is well.
|
||||
/datum/trait/proc/validate(var/list/current_traits, var/datum/category_item/player_setup_item/traits/setup)
|
||||
@@ -193,4 +199,4 @@ var/global/list/trait_categories = list() // The categories available for the tr
|
||||
for(var/trait in mind.traits)
|
||||
var/datum/trait/T = trait_datums[trait]
|
||||
if(istype(T))
|
||||
T.apply_trait_post_spawn(src)
|
||||
T.apply_trait_post_spawn(src)
|
||||
|
||||
Reference in New Issue
Block a user