1
This commit is contained in:
parent
839ecb8bd9
commit
fcdeb03d01
@ -149,6 +149,7 @@ type Player interface {
|
|||||||
SetSortIdx(int32)
|
SetSortIdx(int32)
|
||||||
IsBattling() bool
|
IsBattling() bool
|
||||||
SetBattling(bool)
|
SetBattling(bool)
|
||||||
|
HasLuckySymbol() int32
|
||||||
GenNextCopy() Player
|
GenNextCopy() Player
|
||||||
GetBattleItems() []*BattleItem
|
GetBattleItems() []*BattleItem
|
||||||
}
|
}
|
||||||
|
@ -188,6 +188,10 @@ func (this *player) SetSortIdx(sortIdx int32) {
|
|||||||
this.sortIdx = sortIdx
|
this.sortIdx = sortIdx
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *player) HasLuckySymbol() int32 {
|
||||||
|
return this.hasLuckySymbol
|
||||||
|
}
|
||||||
|
|
||||||
func (this *player) GenNextCopy() common.Player {
|
func (this *player) GenNextCopy() common.Player {
|
||||||
nextCopy := newPlayer()
|
nextCopy := newPlayer()
|
||||||
//nextCopy.socket
|
//nextCopy.socket
|
||||||
|
@ -385,6 +385,7 @@ func (this *team) genStartGameInfo() {
|
|||||||
HeroUniId string `json:"hero_uniid"`
|
HeroUniId string `json:"hero_uniid"`
|
||||||
IsAndroid int32 `json:"is_android"`
|
IsAndroid int32 `json:"is_android"`
|
||||||
RobotId int32 `json:"robot_id"`
|
RobotId int32 `json:"robot_id"`
|
||||||
|
HasLuckySymbol int32 `json:"has_lucky_symbol"`
|
||||||
BattleItems []*common.BattleItem `json:"battle_items"`
|
BattleItems []*common.BattleItem `json:"battle_items"`
|
||||||
} `json:"members"`
|
} `json:"members"`
|
||||||
} `json:"team_list"`
|
} `json:"team_list"`
|
||||||
@ -437,6 +438,7 @@ func (this *team) genStartGameInfo() {
|
|||||||
ele2.AccountId = m.GetAccountId()
|
ele2.AccountId = m.GetAccountId()
|
||||||
ele2.SpecSkill = m.GetSpecSkill()
|
ele2.SpecSkill = m.GetSpecSkill()
|
||||||
ele2.HeroUniId = m.GetHeroUniid()
|
ele2.HeroUniId = m.GetHeroUniid()
|
||||||
|
ele2.HasLuckySymbol = m.HasLuckySymbol()
|
||||||
ele2.BattleItems = m.GetBattleItems()
|
ele2.BattleItems = m.GetBattleItems()
|
||||||
GetHistoryMgr().AddBattle(m.GetAccountId(),
|
GetHistoryMgr().AddBattle(m.GetAccountId(),
|
||||||
this.mapInfo.MapId,
|
this.mapInfo.MapId,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user