Skip to content

Commit 8bca9f2

Browse files
committed
Merge branch 'master' into renovate/nextjs-monorepo
2 parents fa77807 + 3e9cb0b commit 8bca9f2

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Next.js](https://img.shields.io/badge/Next.js-14.2.4-success)
44
![TypeScript](https://img.shields.io/badge/TypeScript-5.1.6-success)
55

6-
## This game is under active development and may have bugs.
6+
## This game is under active development and may have bugs
77

88
## Earthdoom
99

game/src/utils/functions.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,16 +180,34 @@ export const renderIncomeData = (paPlayer: PaUserWithConstruct) => {
180180
const extraTitanium = paPlayer.r_immetal ? 1 : 0;
181181
const extraCrystal = paPlayer.r_imcrystal ? 1 : 0;
182182

183+
console.log("Extra crystal:", extraCrystal)
184+
183185
const civilians = paPlayer.civilians || 1000;
184186
const metalroid = paPlayer.asteroid_metal;
185187

186188
const incomeCredits = Math.floor((civilians * tax) / 100);
187189

190+
const incomeCreditsWithTest =
191+
extraCrystal === 1
192+
? incomeCredits + Math.floor(incomeCredits * 0.1)
193+
: incomeCredits;
194+
195+
console.log("Extra crystal bonus:", incomeCreditsWithTest)
196+
197+
198+
199+
200+
/*
201+
188202
const incomeCreditsWithBonus =
189203
extraCrystal === 1
190204
? incomeCredits + Math.floor(incomeCredits * 0.1)
191205
: incomeCredits;
192206
207+
*/
208+
209+
const incomeCreditsWithBonus = incomeCredits;
210+
193211
const incomeTitanium =
194212
metalroid * 60 + (extraTitanium === 1 ? Math.floor(metalroid * 0.1) : 0);
195213
const incomeEnergy = sats * 45;

0 commit comments

Comments
 (0)