From 4e35aa46a49043385b0703d24ee5e6b183d39dea Mon Sep 17 00:00:00 2001 From: Matt Brockman Date: Sat, 16 Jan 2021 17:55:15 -0800 Subject: [PATCH] stats toy example --- examples/stats.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 examples/stats.js diff --git a/examples/stats.js b/examples/stats.js new file mode 100644 index 0000000..df18b06 --- /dev/null +++ b/examples/stats.js @@ -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) + \ No newline at end of file