feat: set default battle starting energy to 50% for all avatars

This commit is contained in:
CAtlas0784 committed 2026-10-17 01:16:00 +07:00
1 parent 83fa8c7d44
commit 16303423d2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ func (a *AvatarJson) SPCur() uint32 {
if a.SPValue != nil {
return *a.SPValue
}
return 10000
return a.SPMaxVal() / 2
}
func (a *AvatarJson) SPMaxVal() uint32 {
+1 -1
View File
@@ -297,7 +297,7 @@ func ToLineupInfo(lineups map[uint32]uint32) *goproto.LineupInfo {
Hp: 10000,
Satiety: 100,
AvatarType: goproto.AvatarType_AVATAR_FORMAL_TYPE,
SpBar: &goproto.SpBarInfo{CurSp: 10000, MaxSp: 10000},
SpBar: &goproto.SpBarInfo{CurSp: 5000, MaxSp: 10000},
Slot: uint32(len(lineup.AvatarList)),
})
}