feat(config): 更新服务器配置字段注释并修复VIP标识逻辑 - 修改config.go中IsVip字段注释,明确其表示测试服状态 - 添加isdebug字段注释说明本地服标识 - 从.gitignore添加login-login-linux-amd64到忽略列表 - 移除已废弃的coolconfig.SetTest函数 fix(item_buy): 注释掉金币购买功能代码 - 将BuyGoldItem方法注释掉,暂时禁用金币购买商品功能 - 移除未使用的gconv导入包 fix(server): 修正调试模式判断条件 - 将server.go中的IsVip判断改为IsDebug,确保调试模式正确启用 refactor(item_service): 优化模型调用并添加VIP标识 - 修复ItemService.UPDATE方法中模型调用的一致性问题 - 添加is_vip字段到数据记录中用于区分服务器类型 feat(pet_service): 为宠物数据添加VIP标识 - 在宠物服务中为新捕捉的宠物添加IsVip字段设置 ```
40 lines
1.1 KiB
Go
40 lines
1.1 KiB
Go
package effect
|
||
|
||
import (
|
||
"blazing/logic/service/fight/info"
|
||
"blazing/logic/service/fight/input"
|
||
)
|
||
|
||
// NewSel112 受到物理时使自身的一种 battle_lv 提升1个等级,可提升n次;(a1: which blv, a2: max_blv_up_times)
|
||
// TODO: 实现受到物理时使自身的一种 battle_lv 提升1个等级,可提升n次;(a1: which blv, a2: max_blv_up_times)的核心逻辑
|
||
type NewSel112 struct {
|
||
NewSel0
|
||
count int
|
||
}
|
||
|
||
func (e *NewSel112) DamageDivEx(t *info.DamageZone) bool {
|
||
|
||
// fmt.Println(e.ID().GetCatchTime(), e.Ctx().Our.CurrentPet.Info.CatchTime)
|
||
if e.ID().GetCatchTime() != e.Ctx().Our.CurrentPet.Info.CatchTime {
|
||
return true
|
||
}
|
||
// 2. 技能为空或非物理攻击,不触发
|
||
skill := e.Ctx().SkillEntity
|
||
if skill == nil {
|
||
return true
|
||
}
|
||
if skill.Category() != info.Category.PHYSICAL {
|
||
return true
|
||
}
|
||
if e.count >= int(e.Args()[1].IntPart()) {
|
||
return true
|
||
}
|
||
|
||
e.Ctx().Our.SetProp(e.Ctx().Our, int8(e.Args()[0].IntPart()), 1, info.AbilityOpType.ADD)
|
||
e.count++
|
||
return true
|
||
}
|
||
func init() {
|
||
input.InitEffect(input.EffectType.NewSel, 112, &NewSel112{})
|
||
}
|