优化
This commit is contained in:
parent
a311e6ca03
commit
21e1c63d0d
@ -337,6 +337,7 @@ func (c *ChargeMod) GetWish() ([]*item.Item, error) {
|
|||||||
if c.WishList.ItemId == 0 {
|
if c.WishList.ItemId == 0 {
|
||||||
return nil, fmt.Errorf("AddWishCount itemid not exist")
|
return nil, fmt.Errorf("AddWishCount itemid not exist")
|
||||||
}
|
}
|
||||||
|
// TODO 需要修改成chargeCfg
|
||||||
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
|
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
|
||||||
if c.WishList.Count < Max {
|
if c.WishList.Count < Max {
|
||||||
return nil, fmt.Errorf("AddWishCount count max")
|
return nil, fmt.Errorf("AddWishCount count max")
|
||||||
@ -360,6 +361,7 @@ func (c *ChargeMod) AddWishCount() {
|
|||||||
if c.WishList.ItemId == 0 {
|
if c.WishList.ItemId == 0 {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// TODO 需要修改成chargeCfg
|
||||||
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
|
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
|
||||||
if c.WishList.Count >= Max {
|
if c.WishList.Count >= Max {
|
||||||
return
|
return
|
||||||
|
|||||||
@ -46,6 +46,7 @@ func (r *RaceMod) Login(Id int) int {
|
|||||||
return OldId
|
return OldId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO 剩余AI逻辑未开发
|
||||||
func (r *RaceMod) ZeroUpdate(Id int) {
|
func (r *RaceMod) ZeroUpdate(Id int) {
|
||||||
r.Login(Id)
|
r.Login(Id)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user