feat: 实现每日签到功能并优化战斗和道具逻辑
This commit is contained in:
@@ -388,7 +388,7 @@ func (pet *PetInfo) RnadEffect() {
|
||||
func (pet *PetInfo) GetEffect(ptype int) (int, *PetEffectInfo, bool) {
|
||||
|
||||
return utils.FindWithIndex(pet.EffectInfo, func(item PetEffectInfo) bool {
|
||||
return item.Status == 1
|
||||
return int(item.Status) == ptype
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user