File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed 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