summaryrefslogtreecommitdiff
path: root/game.js
diff options
context:
space:
mode:
Diffstat (limited to 'game.js')
-rw-r--r--game.js39
1 files changed, 10 insertions, 29 deletions
diff --git a/game.js b/game.js
index a8c8eb5..a248c4d 100644
--- a/game.js
+++ b/game.js
@@ -1,32 +1,13 @@
+
(()=>{
var root = document.body;
const cdata = {
- thing: {
- singular:"thing",
- plural:"things",
- color:"lime",
- },
- apioform: {
- singular:"apioform",
- plural:"apioforms",
- color:"yellow",
- },
- violetstar: {
- singular:"violet star",
- plural:"violet stars",
- color:"#8050FF",
- },
- undefinedium: {
- singular:"undefinedium",
- plural:"undefinedium",
- color:"#FF00FF",
- },
- four: {
- singular:"four",
- plural:"fours",
- color:"#3040FF",
- },
+ thing: { color:"lime" },
+ apioform: { color:"yellow" },
+ violetstar: { color:"#8050FF" },
+ undefinedium: { color:"#FF00FF" },
+ four: { color:"#3040FF" },
}
let sdata;
@@ -53,17 +34,17 @@
view: ()=>{
return m("button",{
onclick:()=>{if (!sdata.autothing) am.thing.amount+=1}
- },sdata.autothing?"Unavailable":"Attain a thing");
+ },sdata.autothing?get_msg('unavailable'):get_msg('attain_a_thing'));
}
}
var AutoThing = {
view: ()=>{
return m("button",{onclick:()=>sdata.autothing = !sdata.autothing},[
- "AutoThing™ ",
+ get_msg('autothing'),
m("span",{
style:"color:"+(sdata.autothing?"lime":"grey")+";"},
- sdata.autothing?"ON":"OFF"),
+ sdata.autothing?get_msg('on'):get_msg('off')),
]);
}
}
@@ -115,7 +96,7 @@
m(CIcon,{currency:a.currency}),
m(".currencycount",{
style:"color:"+cdata[a.currency].color},
- a.amount==undefined?"oh bee something broke":a.amount),
+ a.amount==undefined?get_msg('something_broke'):a.amount),
]);
}
}