File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,14 +141,14 @@ public class TotalItemValue {
141
141
// For each player on the ORDER team, calculate the total cost of their items and add it to the totalOrderCost
142
142
for (Player player : orderPlayers) {
143
143
totalOrderCost += player. getItems(). stream()
144
- .mapToInt(item - > getItemGold(item. getItemID()))
144
+ .mapToInt(item - > Math . toIntExact( getItemGold(item. getItemID()) * item . getCount ()))
145
145
.sum();
146
146
}
147
147
148
148
// For each player on the CHAOS team, calculate the total cost of their items and add it to the totalChaosCost
149
149
for (Player player : chaosPlayers) {
150
150
totalChaosCost += player. getItems(). stream()
151
- .mapToInt(item - > getItemGold(item. getItemID()))
151
+ .mapToInt(item - > Math . toIntExact( getItemGold(item. getItemID()) * item . getCount ()))
152
152
.sum();
153
153
}
154
154
You can’t perform that action at this time.
0 commit comments