Fix potential count when giving up a Monolith run

This commit is contained in:
Melledy
2025-12-13 00:33:27 -08:00
parent ab1f84e8db
commit 31e56ae17f
2 changed files with 5 additions and 0 deletions

View File

@@ -215,6 +215,10 @@ public class StarTowerGame {
return this.getRarePotentialCount().get(charId);
}
public int getTotalPotentialCount() {
return this.getItems().values().intStream().reduce(0, Integer::sum);
}
/**
* Gets the team element, if the team has 2+ or more elements, then returns null
*/

View File

@@ -20,6 +20,7 @@ public class HandlerStarTowerGiveUpReq extends NetHandler {
// Build response
var rsp = StarTowerGiveUpResp.newInstance()
.setBuild(game.getBuild().toProto())
.setPotentialCnt(game.getTotalPotentialCount())
.setFloor(game.getFloorCount());
rsp.getMutableChange();