stats toy example
This commit is contained in:
parent
bdec90bcef
commit
4e35aa46a4
1 changed files with 11 additions and 0 deletions
11
examples/stats.js
Normal file
11
examples/stats.js
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
//input modifiers to set up stats
|
||||||
|
|
||||||
|
// creates stats to open up the stats overlay
|
||||||
|
const modifier = (text) => {
|
||||||
|
state.stats = {stats:{strength:{level: 4, cost:2}, agility:{level: 1, cost:5},}, statPoints:50}
|
||||||
|
return ({text})
|
||||||
|
}
|
||||||
|
|
||||||
|
// Don't modify this part
|
||||||
|
modifier(text)
|
||||||
|
|
Reference in a new issue