simplify example

This commit is contained in:
Matt Brockman 2021-01-15 21:17:38 -08:00
parent ffb6039536
commit a4dd047b32

View file

@ -1,27 +1,6 @@
//input modifiers to set up skills //input modifiers to set up skills
//creates skills with 5 skill points (for input modifier)
//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) => { const modifier = (text) => {
state.skills = {'turtle':1} state.skills = {'turtle':1}
state.skillPoints = 1 state.skillPoints = 1