Files
fulpstation/code/controllers/subsystem/skills.dm
Qustinnus b021210a2f [READY] Adds a basic skill framework to Physiology. (Only applied to mining) (#46913)
* 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
2019-10-18 19:59:35 -04:00

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