Implement monolith enhancement machines

This commit is contained in:
Melledy
2025-12-03 19:36:47 -08:00
parent 7ef7490c37
commit ef8846445c
13 changed files with 280 additions and 41 deletions

View File

@@ -5,6 +5,7 @@ import emu.nebula.net.NetMsgId;
import emu.nebula.proto.StarTowerApply.StarTowerApplyReq;
import emu.nebula.proto.StarTowerApply.StarTowerApplyResp;
import emu.nebula.net.HandlerId;
import emu.nebula.GameConstants;
import emu.nebula.game.tower.StarTowerGame;
import emu.nebula.net.GameSession;
@@ -29,6 +30,7 @@ public class HandlerStarTowerApplyReq extends NetHandler {
// Create response
var rsp = StarTowerApplyResp.newInstance()
.setLastId(req.getId())
.setCoinQty(game.getResCount(GameConstants.STAR_TOWER_COIN_ITEM_ID))
.setInfo(game.toProto())
.setChange(change.toProto());