File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments