This commit is contained in:
aozhiwei 2024-10-15 17:43:13 +08:00
parent 839ecb8bd9
commit fcdeb03d01
3 changed files with 7 additions and 0 deletions

View File

@ -149,6 +149,7 @@ type Player interface {
SetSortIdx(int32)
IsBattling() bool
SetBattling(bool)
HasLuckySymbol() int32
GenNextCopy() Player
GetBattleItems() []*BattleItem
}

View File

@ -188,6 +188,10 @@ func (this *player) SetSortIdx(sortIdx int32) {
this.sortIdx = sortIdx
}
func (this *player) HasLuckySymbol() int32 {
return this.hasLuckySymbol
}
func (this *player) GenNextCopy() common.Player {
nextCopy := newPlayer()
//nextCopy.socket

View File

@ -385,6 +385,7 @@ func (this *team) genStartGameInfo() {
HeroUniId string `json:"hero_uniid"`
IsAndroid int32 `json:"is_android"`
RobotId int32 `json:"robot_id"`
HasLuckySymbol int32 `json:"has_lucky_symbol"`
BattleItems []*common.BattleItem `json:"battle_items"`
} `json:"members"`
} `json:"team_list"`
@ -437,6 +438,7 @@ func (this *team) genStartGameInfo() {
ele2.AccountId = m.GetAccountId()
ele2.SpecSkill = m.GetSpecSkill()
ele2.HeroUniId = m.GetHeroUniid()
ele2.HasLuckySymbol = m.HasLuckySymbol()
ele2.BattleItems = m.GetBattleItems()
GetHistoryMgr().AddBattle(m.GetAccountId(),
this.mapInfo.MapId,