File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -180,11 +180,23 @@ 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+
188200 /*
189201
190202 const incomeCreditsWithBonus =
@@ -194,7 +206,7 @@ export const renderIncomeData = (paPlayer: PaUserWithConstruct) => {
194206
195207 */
196208
197- const incomeCreditsWithBonus = incomeCredits
209+ const incomeCreditsWithBonus = incomeCredits ;
198210
199211 const incomeTitanium =
200212 metalroid * 60 + ( extraTitanium === 1 ? Math . floor ( metalroid * 0.1 ) : 0 ) ;
You can’t perform that action at this time.
0 commit comments