From 199485a87a49536ec27cb873dcb17fc547d5e245 Mon Sep 17 00:00:00 2001 From: Acamaeda Date: Thu, 8 Oct 2020 19:42:26 -0400 Subject: [PATCH] Put an end to convertToDecimal --- docs/layer-features.md | 5 ----- index.html | 9 +++++++++ js/game.js | 20 +------------------ js/layers.js | 3 --- js/utils.js | 45 +++++++++++++++++++++++++++++++++++++++++- 5 files changed, 54 insertions(+), 28 deletions(-) diff --git a/docs/layer-features.md b/docs/layer-features.md index 39e5b34..1951c8c 100644 --- a/docs/layer-features.md +++ b/docs/layer-features.md @@ -131,11 +131,6 @@ Key: Without it, the default is to reset everything on the row, but only if it was triggered by a layer in a higher row. -- convertToDecimal(): **sometimes required**, required if you add non-standard Decimals to startData. - This function converts those values from a string to a Decimal (used when loading). - Convert a value to Decimal with `value = new Decimal(value)` - - - update(diff): **optional**, this function is called every game tick. Use it for any passive resource production or time-based things. diff is the time since the last tick. Suggestion: use addPoints(layer, gain) when generating points to automatically diff --git a/index.html b/index.html index 86fcf48..da1e46c 100644 --- a/index.html +++ b/index.html @@ -49,6 +49,15 @@



+

v1.3.5

+ +

v1.3.4

+

v1.3.3