boss属性丢失,全部被限制属性不能超越,应该给ai和玩家施加不同的getinfo方法
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
道具扣除判断,因为判断扣完大于0,所以导致只剩一个的时候,道具成功使用但是不会扣除数量
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
package player
|
||||
|
||||
import "blazing/modules/player/model"
|
||||
|
||||
type AI_player struct {
|
||||
baseplayer
|
||||
|
||||
CanCapture int
|
||||
BossScript string
|
||||
}
|
||||
|
||||
func (p *AI_player) GetPetInfo(_ uint32) []model.PetInfo {
|
||||
ret := make([]model.PetInfo, 0, len(p.Info.PetList))
|
||||
ret = append(ret, p.Info.PetList...)
|
||||
return ret
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user