/tg/ Station 13 - Modules - TypesVar Details - Proc Details

/datum/mind

Vars

known_skillsAssoc list of skills. Use SKILL_LVL to access level, and SKILL_EXP to access skill's exp.
original_characterWhat character we spawned in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not
skills_rewardedList of skills the user has received a reward for. Should not be used to keep track of currently known skills. Lazy list because it shouldnt be filled often

Procs

adjust_experienceAdjust experience of a specific skill
exp_needed_to_level_upReturn the amount of EXP needed to go to the next level. Returns 0 if max level
get_skill_expGets the player's current exp from the relevant skill
get_skill_levelGets the player's current level number from the relevant skill
get_skill_modifierGets the skill's singleton and returns the result of its get_skill_modifier
set_experienceSet experience of a specific skill to a number
set_levelSet level of a specific skill
update_skill_levelCheck what the current skill level is based on that skill's exp

Var Details

known_skills

Assoc list of skills. Use SKILL_LVL to access level, and SKILL_EXP to access skill's exp.

original_character

What character we spawned in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not

skills_rewarded

List of skills the user has received a reward for. Should not be used to keep track of currently known skills. Lazy list because it shouldnt be filled often

Proc Details

adjust_experience

Adjust experience of a specific skill

exp_needed_to_level_up

Return the amount of EXP needed to go to the next level. Returns 0 if max level

get_skill_exp

Gets the player's current exp from the relevant skill

get_skill_level

Gets the player's current level number from the relevant skill

get_skill_modifier

Gets the skill's singleton and returns the result of its get_skill_modifier

set_experience

Set experience of a specific skill to a number

set_level

Set level of a specific skill

update_skill_level

Check what the current skill level is based on that skill's exp