mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Merge pull request #3765 from VOREStation/aro-prottypefix
Fix prototype trait showing up
This commit is contained in:
@@ -395,6 +395,8 @@ var/global/list/cont_flavors_musky = list("drenched",
|
||||
paths = typesof(/datum/trait) - /datum/trait
|
||||
for(var/path in paths)
|
||||
var/datum/trait/instance = new path()
|
||||
if(!instance.name)
|
||||
continue //A prototype or something
|
||||
var/cost = instance.cost
|
||||
traits_costs[path] = cost
|
||||
all_traits[path] = instance
|
||||
|
||||
Reference in New Issue
Block a user