stats toy example

This commit is contained in:
Matt Brockman 2021-01-16 17:55:15 -08:00
parent bdec90bcef
commit 4e35aa46a4

11
examples/stats.js Normal file
View 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)