mirror of
https://github.com/IvarK/AntimatterDimensionsSourceCode.git
synced 2024-11-26 22:21:56 +00:00
extract lastCost into a var
This commit is contained in:
parent
d8a543290c
commit
55f5135a05
@ -71,11 +71,9 @@ function buyTickSpeed() {
|
||||
player.thisInfinityLastBuyTime = player.thisInfinityTime;
|
||||
player.secretUnlocks.why++;
|
||||
if (NormalChallenge(9).isRunning || InfinityChallenge(5).isRunning) {
|
||||
multiplySameCosts(
|
||||
Tickspeed.costScale.calculateCost(player.totalTickBought +
|
||||
player.chall9TickspeedPurchaseBumps -
|
||||
1)
|
||||
);
|
||||
const lastCost =
|
||||
Tickspeed.costScale.calculateCost(player.totalTickBought + player.chall9TickspeedPurchaseBumps - 1);
|
||||
multiplySameCosts(lastCost);
|
||||
}
|
||||
if (NormalChallenge(2).isRunning) player.chall2Pow = 0;
|
||||
GameUI.update();
|
||||
|
Loading…
Reference in New Issue
Block a user