This commit is contained in:
hahwu 2025-04-01 17:53:48 +08:00
parent a311e6ca03
commit 21e1c63d0d
2 changed files with 3 additions and 0 deletions

View File

@ -337,6 +337,7 @@ func (c *ChargeMod) GetWish() ([]*item.Item, error) {
if c.WishList.ItemId == 0 {
return nil, fmt.Errorf("AddWishCount itemid not exist")
}
// TODO 需要修改成chargeCfg
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
if c.WishList.Count < Max {
return nil, fmt.Errorf("AddWishCount count max")
@ -360,6 +361,7 @@ func (c *ChargeMod) AddWishCount() {
if c.WishList.ItemId == 0 {
return
}
// TODO 需要修改成chargeCfg
Max := playroomCfg.GetShopWish(c.WishList.ItemId)
if c.WishList.Count >= Max {
return

View File

@ -46,6 +46,7 @@ func (r *RaceMod) Login(Id int) int {
return OldId
}
// TODO 剩余AI逻辑未开发
func (r *RaceMod) ZeroUpdate(Id int) {
r.Login(Id)
}