fix(cw): award Rank SSS at 100 HP, map role damage and equipment in settlement, and fix overworld black screen

This commit is contained in:
CAtlas0784 committed 2026-10-31 21:55:50 +07:00
1 parent 0995055296
commit 276cb14299
3 files changed
+82 -33

No files matched your search

+5 -2
View File
@@ -82,7 +82,10 @@ func currencyWarsTerminalSettlement(catalog *common.CurrencyWarsCatalog, data *p
if isWon && player.PPKKHHNEOHB > 0 && player.GridFightLineupHp > 0 {
hpPercent := float64(player.GridFightLineupHp) / float64(player.PPKKHHNEOHB) * 100.0
if hpPercent >= 100.0 || player.GridFightLineupHp >= player.PPKKHHNEOHB {
rankType = 4 // Rank SS (flawless / 100% HP)
rankType = 5 // Rank SSS (flawless / 100% HP)
divisionUp = 3
} else if hpPercent >= 90.0 {
rankType = 4 // Rank SS
divisionUp = 3
} else if hpPercent >= 70.0 {
rankType = 3 // Rank S
@@ -95,7 +98,7 @@ func currencyWarsTerminalSettlement(catalog *common.CurrencyWarsCatalog, data *p
divisionUp = 1
}
} else {
rankType = 0
rankType = 0 // Rank C (defeat / 0 HP)
divisionUp = 0
}