explain current skills setup

This commit is contained in:
Matt Brockman 2021-01-15 20:44:31 -08:00
parent cfafc231d9
commit 236a2aa5dc
2 changed files with 37 additions and 0 deletions

33
examples/skills.js Normal file
View file

@ -0,0 +1,33 @@
//input modifiers to set up skills
//EXAMPLE 1
//creates skills with 0 skill points
const modifier = (text) => {
state.skills = {'turtle':1}
}
// Don't modify this part
modifier(text)
//EXAMPLE 2
//creates skills with 1 skill point
const modifier = (text) => {
state.skills = {'turtle':1}
state.skillPoints = 1
}
// Don't modify this part
modifier(text)
//EXAMPLE 3
//creates skills with 5 skill points and
const modifier = (text) => {
state.skills = {'turtle':1}
state.skillPoints = 1
state.disableRandomSkill = true
}
// Don't modify this part
modifier(text)