From 781c4702aa4f9fe241430abdb7edee8ad8b02f66 Mon Sep 17 00:00:00 2001 From: Lukasdotcom Date: Tue, 22 Feb 2022 16:50:57 -0500 Subject: [PATCH] Changed the default simulation settings to 75% --- src/Data.gd | 2 +- src/Main.tscn | 2 +- src/box.gd | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Data.gd b/src/Data.gd index a4ec421..39ad726 100644 --- a/src/Data.gd +++ b/src/Data.gd @@ -62,7 +62,7 @@ func start() -> void: # Loads starting loader _data["upgrades"] = {"ball" : _data["ball_upgrades"], "golden" : false} _data["version"] = "v0.6.0" if _data["version"] == "v0.6.0": - _data["performance"] = {"Simulate" : 100, "Show" : 100, "Ball" : 9.5} + _data["performance"] = {"Simulate" : 75, "Show" : 100, "Ball" : 9.5} _data["version"] = "v0.6.1" if _data["version"] == "v0.6.1": # Loads the save goldenLength = _data["goldenLength"] diff --git a/src/Main.tscn b/src/Main.tscn index ed1e5c7..5b8187f 100644 --- a/src/Main.tscn +++ b/src/Main.tscn @@ -100,7 +100,7 @@ margin_top = 52.0 margin_right = 460.0 margin_bottom = 72.0 min_value = 1.0 -value = 100.0 +value = 75.0 __meta__ = { "_edit_use_anchors_": false } diff --git a/src/box.gd b/src/box.gd index b87cfda..2a0bc9a 100644 --- a/src/box.gd +++ b/src/box.gd @@ -36,7 +36,8 @@ func _on_hit(body: Node) -> void: var _earnings = Data.earnings[level] + (game.disabledTotal / game.enabled) # Calculates the base earnings _earnings *= Data.multiplier # Multiplies the global multiplier _earnings *= body.multiplier # Multiplies the balls multiplier - Data.money += _earnings + _earnings = ceil(_earnings) + Data.money += _earnings get_node("../../MPS Calculator").earnings(_earnings) func delete() -> void: # Used to delete the box