diff options
Diffstat (limited to 'game.js')
-rw-r--r-- | game.js | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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), ]); } } |