mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 16:09:15 +00:00
* levels * mining * ore exp * fixes * epic * Update code/game/turfs/simulated/minerals.dm Co-Authored-By: moo <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com> * fixes message * dumb * shreet * epic * fix * ass * scrape * fixes bugs * fixes * reset * test * ?? * ok bye * fix * Adds skills * skill
24 lines
770 B
Plaintext
24 lines
770 B
Plaintext
/*!
|
|
This subsystem mostly exists to populate and manage the skill singletons.
|
|
*/
|
|
|
|
SUBSYSTEM_DEF(skills)
|
|
name = "Skills"
|
|
flags = SS_NO_FIRE
|
|
init_order = INIT_ORDER_SKILLS
|
|
///Dictionary of skill.type || skill ref
|
|
var/list/all_skills = list()
|
|
///Static assoc list of levels (ints) - strings
|
|
var/list/level_names = list("Novice", "Apprentice", "Journeyman", "Expert", "Master", "Legendary")//This list is already in the right order, due to indexing
|
|
|
|
|
|
/datum/controller/subsystem/skills/Initialize(timeofday)
|
|
InitializeSkills()
|
|
return ..()
|
|
|
|
///Ran on initialize, populates the skills dictionary
|
|
/datum/controller/subsystem/skills/proc/InitializeSkills(timeofday)
|
|
for(var/type in subtypesof(/datum/skill))
|
|
var/datum/skill/ref = new type
|
|
all_skills[type] = ref
|