feat(currency_wars): complete systems, settlement Rank SS, damage report, camera and recovery fixes

This commit is contained in:
CAtlas0784 committed 2026-10-31 20:47:36 +07:00
1 parent c008243f11
commit 0995055296
78 files changed
+33840 -9525

No files matched your search

+8 -4
View File
@@ -9,7 +9,11 @@ import (
// Source reference resolves SpecialAvatarID and serializes the special ID with
// AVATAR_TRIAL_TYPE. Current native rows supply all levels/equipment identities.
func cwTrialBattleAvatar(c *common.CurrencyWarsCatalog, role common.CurrencyWarsRoleVariant, index uint32) (*pb.BattleAvatar, error) {
row, e := c.TrialAvatar(role.Config.SpecialAvatarID, role.Config.AvatarID, playerWorldLevel)
wl := playerWorldLevel
if wl == 0 {
wl = 6
}
row, e := c.TrialAvatar(role.Config.SpecialAvatarID, role.Config.AvatarID, wl)
if e != nil {
return nil, e
}
@@ -19,9 +23,9 @@ func cwTrialBattleAvatar(c *common.CurrencyWarsCatalog, role common.CurrencyWars
equipment = &common.Lightcone{ItemID: row.EquipmentID, Level: row.EquipmentLevel, Promotion: row.EquipmentPromotion, Rank: row.EquipmentRank}
}
result, _ := avatar.ToBattleAvatarProto(index, equipment, nil)
result.Id = row.SpecialAvatarID
result.AvatarType = pb.AvatarType_AvatarType_AvatarTrialType
result.WorldLevel = playerWorldLevel
result.Id = row.AvatarID
result.AvatarType = pb.AvatarType_AvatarType_AvatarGridFightType
result.WorldLevel = wl
result.EnhancedId = row.EnhancedID
result.IGDEHGIKFJA = append([]uint32(nil), row.ExRankIDList...)
return result, nil