From 16303423d27f4b84da6004735c9a4889c3c1064c Mon Sep 17 00:00:00 2001 From: CAtlas0784 Date: Sat, 17 Oct 2026 01:16:00 +0700 Subject: [PATCH] feat: set default battle starting energy to 50% for all avatars --- internal/common/models.go | 2 +- internal/common/proto_convert.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/common/models.go b/internal/common/models.go index 00aec87..19a3130 100644 --- a/internal/common/models.go +++ b/internal/common/models.go @@ -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 { diff --git a/internal/common/proto_convert.go b/internal/common/proto_convert.go index fa6bb06..5c22d94 100644 --- a/internal/common/proto_convert.go +++ b/internal/common/proto_convert.go @@ -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)), }) }