switch target to ES5
This commit is contained in:
parent
20f5b326e9
commit
ed54d98b63
6
TODO.md
6
TODO.md
|
@ -35,6 +35,9 @@
|
||||||
- higher makes recruitment harder
|
- higher makes recruitment harder
|
||||||
- political influence
|
- political influence
|
||||||
- affects credibility, needed to enact policies
|
- affects credibility, needed to enact policies
|
||||||
|
- global birth/death rates
|
||||||
|
- religious fanaticism
|
||||||
|
- affects follower growth/loss
|
||||||
- consumable resource type
|
- consumable resource type
|
||||||
- one-off actions that cost money
|
- one-off actions that cost money
|
||||||
- ad blitz to improve credibility
|
- ad blitz to improve credibility
|
||||||
|
@ -44,3 +47,6 @@
|
||||||
- policies
|
- policies
|
||||||
- can affect a wide range of stuff
|
- can affect a wide range of stuff
|
||||||
- costs political influence to enact and maintain
|
- costs political influence to enact and maintain
|
||||||
|
- inter-religion relationships
|
||||||
|
- hostility between religiions
|
||||||
|
- holy wars (affects birth/death rate)
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<head>
|
<head>
|
||||||
<title>irreligio.us</title>
|
<title>irreligio.us</title>
|
||||||
<meta charset='utf-8'>
|
<meta charset='utf-8'>
|
||||||
<script src='js/irreligious.js'></script>
|
<script src='js/irreligious.min.js'></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id='irreligious-game'></div>
|
<div id='irreligious-game'></div>
|
||||||
|
|
|
@ -112,9 +112,10 @@ class GameState {
|
||||||
{ value: 1e18, symbol: 'E' }
|
{ value: 1e18, symbol: 'E' }
|
||||||
];
|
];
|
||||||
const rx: RegExp = /\.0+$|(\.[0-9]*[1-9])0+$/;
|
const rx: RegExp = /\.0+$|(\.[0-9]*[1-9])0+$/;
|
||||||
const item: vlookup =
|
let item: vlookup;
|
||||||
lookup.slice().reverse()
|
for (item of lookup.slice().reverse()) {
|
||||||
.find((i: vlookup): boolean => num >= i.value);
|
if (num >= item.value) break;
|
||||||
|
}
|
||||||
return item
|
return item
|
||||||
? (num / item.value).toFixed(this.numberFormatDigits)
|
? (num / item.value).toFixed(this.numberFormatDigits)
|
||||||
.replace(rx, '$1') + item.symbol
|
.replace(rx, '$1') + item.symbol
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"target": "ES6",
|
"target": "ES5",
|
||||||
"module": "none"
|
"module": "none"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue