summaryrefslogtreecommitdiff
path: root/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'game.js')
-rw-r--r--game.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/game.js b/game.js
index b8e6d32..a8c8eb5 100644
--- a/game.js
+++ b/game.js
@@ -51,7 +51,9 @@
var ThingButton = {
view: ()=>{
- return m("button",{onclick:()=>{if (!sdata.autothing) am.thing.amount+=1}},sdata.autothing?"Unavailable":"Attain a thing");
+ return m("button",{
+ onclick:()=>{if (!sdata.autothing) am.thing.amount+=1}
+ },sdata.autothing?"Unavailable":"Attain a thing");
}
}
@@ -59,7 +61,9 @@
view: ()=>{
return m("button",{onclick:()=>sdata.autothing = !sdata.autothing},[
"AutoThing™ ",
- m("span",{style:"color:"+(sdata.autothing?"lime":"grey")+";"},sdata.autothing?"ON":"OFF"),
+ m("span",{
+ style:"color:"+(sdata.autothing?"lime":"grey")+";"},
+ sdata.autothing?"ON":"OFF"),
]);
}
}
@@ -109,7 +113,9 @@
let a = vnode.attrs;
return m(".currencydisplay",[
m(CIcon,{currency:a.currency}),
- m(".currencycount",{style:"color:"+cdata[a.currency].color},a.amount==undefined?"oh bee something broke":a.amount),
+ m(".currencycount",{
+ style:"color:"+cdata[a.currency].color},
+ a.amount==undefined?"oh bee something broke":a.amount),
]);
}
}