@@ -160,12 +160,14 @@ private void recursiveProjection(final ActionList actions, final ProjectionState
160
160
private void projectDaily (final ActionList actions , final ProjectionState state ) {
161
161
final var today = LocalDate .now ();
162
162
final var format = DateTimeFormatter .ofPattern ("yyyy-MM-dd" );
163
- final var rewardWithBonus = Reward .DAILY .getValue () + state .getCorporationBonusValues ().get (MoneyType .BALANCE .getBonusType ());
163
+ final var balanceRewardWithBonus = Reward .DAILY .getValue () + state .getCorporationBonusValues ().get (MoneyType .BALANCE .getBonusType ());
164
+ final var loreDustReward = 10 ;
164
165
var todayDaily = state .getDailyMap ().getOrDefault (today .format (format ), 0 );
165
166
166
167
if (todayDaily == 0 ) {
167
168
this .addAction (state , actions , ActionType .DAILY , null );
168
- state .getMoneyAmount (MoneyType .BALANCE ).getAndAdd ((int ) rewardWithBonus );
169
+ state .getMoneyAmount (MoneyType .BALANCE ).getAndAdd ((int ) balanceRewardWithBonus );
170
+ state .getMoneyAmount (MoneyType .LORE_DUST ).getAndAdd (loreDustReward );
169
171
todayDaily += Reward .DAILY .getValue ();
170
172
state .getDailyMap ().put (today .format (format ), todayDaily );
171
173
}
@@ -183,7 +185,8 @@ private void projectDaily(final ActionList actions, final ProjectionState state)
183
185
return ;
184
186
185
187
this .addAction (state , actions , ActionType .WEEKLY , null );
186
- state .getMoneyAmount (MoneyType .BALANCE ).getAndAdd ((int ) rewardWithBonus );
188
+ state .getMoneyAmount (MoneyType .BALANCE ).getAndAdd ((int ) balanceRewardWithBonus );
189
+ state .getMoneyAmount (MoneyType .LORE_DUST ).getAndAdd (loreDustReward );
187
190
state .getDailyMap ().put (today .format (format ), todayDaily + Reward .DAILY .getValue ());
188
191
}
189
192
@@ -562,7 +565,7 @@ private ProjectionSummary makeSummary(final ActionList actions,
562
565
summary .put (
563
566
SummaryType .MONEY ,
564
567
moneyType .getName (),
565
- new Change (user .getMoneyAmount (moneyType ), state .getMoneyAmount (moneyType ))
568
+ new Change (user .getMoneyAmount (moneyType ), state .getMoneyAmount (moneyType ). get () )
566
569
);
567
570
}
568
571
0 commit comments