Shiptest 13 - Modules - TypesVar Details - Proc Details

mind

Vars

current_scar_slot_indexThe index for our current scar slot, so we don't have to constantly check the savefile (unlike the slots themselves, this index is independent of selected char slot, and increments whenever a valid char is joined with)
experience_multiplierSkill multiplier, adjusts how much xp you get/loose from adjust_xp. Dont override it directly, add your reason to experience_multiplier_reasons and use that as a key to put your value in there.
experience_multiplier_reasonsSkill multiplier list, just slap your multiplier change onto this with the type it is coming from as key.
guestbookGuestbook datum, in case we actually make use of the guestbook mechanics
known_skillsAssoc list of skills. Use SKILL_LVL to access level, and SKILL_EXP to access skill's exp.
original_characterWeakref to thecharacter we joined in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not
original_character_slot_indexThe index for what character slot, if any, we were loaded from, so we can track persistent scars on a per-character basis. Each character slot gets PERSISTENT_SCAR_SLOTS scar slots
original_shipA weakref to the /datum/overmap/ship/controlled the original mob spawned on
skills_rewardedList of skills the user has recieved a reward for. Should not be used to keep track of currently known skills. Lazy list because it shouldnt be filled often
special_statusesA lazy list of statuses to add next to this mind in the traitor panel

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_hijack_speedSets our can_hijack to the fastest speed our antag datums allow.
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

current_scar_slot_index

The index for our current scar slot, so we don't have to constantly check the savefile (unlike the slots themselves, this index is independent of selected char slot, and increments whenever a valid char is joined with)

experience_multiplier

Skill multiplier, adjusts how much xp you get/loose from adjust_xp. Dont override it directly, add your reason to experience_multiplier_reasons and use that as a key to put your value in there.

experience_multiplier_reasons

Skill multiplier list, just slap your multiplier change onto this with the type it is coming from as key.

guestbook

Guestbook datum, in case we actually make use of the guestbook mechanics

known_skills

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

original_character

Weakref to thecharacter we joined in as- either at roundstart or latejoin, so we know for persistent scars if we ended as the same person or not

original_character_slot_index

The index for what character slot, if any, we were loaded from, so we can track persistent scars on a per-character basis. Each character slot gets PERSISTENT_SCAR_SLOTS scar slots

original_ship

A weakref to the /datum/overmap/ship/controlled the original mob spawned on

skills_rewarded

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

special_statuses

A lazy list of statuses to add next to this mind in the traitor panel

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_hijack_speed

Sets our can_hijack to the fastest speed our antag datums allow.

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