82 lines
2.1 KiB
Go
82 lines
2.1 KiB
Go
package logic
|
||
|
||
const (
|
||
targetTypeSelf = 0 //自身
|
||
targetTypeTeammate = 1 //友方
|
||
targetTypeEnemy = 2 //敌方
|
||
targetTypeTeammateGender = 3 //友方特定性别
|
||
targetTypeEnemyGender = 4 //敌方特定性别
|
||
targetTypeTeammateCountry = 5 //友方特定国家
|
||
targetTypeEnemyCountry = 6 //敌方特定国家
|
||
)
|
||
|
||
const (
|
||
countryNone = 0 //无国家
|
||
countryWei = 1 //魏
|
||
countryShu = 2 //蜀
|
||
countryMouse = 3 //鼠辈
|
||
countryCrowd = 4 //群雄
|
||
)
|
||
|
||
const (
|
||
rangeTypeSingle = 0 //单个
|
||
rangeTypeMulti = 1 //多个
|
||
)
|
||
|
||
const (
|
||
conditionTypeBuffId = 1
|
||
conditionTypeBuff = 2
|
||
conditionTypeDeBuff = 3
|
||
conditionTypeTargetLess = 4
|
||
conditionTypeTargetGreater = 5
|
||
)
|
||
|
||
const (
|
||
priorityTypeNone = 0 //没有优先
|
||
priorityTypePosition = 1 //位置优先
|
||
priorityTypeHp = 2 //血量优先
|
||
priorityTypeGender = 3 //性别优先
|
||
priorityTypeRage = 4 //怒气优先
|
||
priorityTypeAttack = 5 //攻击力优先
|
||
)
|
||
|
||
const (
|
||
priorityArgFront = 0 //前排
|
||
priorityArgBack = 1 //后排
|
||
priorityArgColumn = 2 //纵排
|
||
priorityArgFemale = 0 //女性
|
||
priorityArgMale = 1 //男性
|
||
priorityArgMin = 0 //最低
|
||
priorityArgMax = 1 //最高
|
||
)
|
||
|
||
const (
|
||
buffTypeNone = 0
|
||
buffTypePhysicalDamage = 1 //物理伤害
|
||
buffTypeMagicDamage = 2 //法术伤害
|
||
buffTypeStatusAbnormal = 3 //异常状态(无法攻击,无法移动等)
|
||
buffTypeChangeAttr = 4 //改变属性
|
||
buffTypeRevive = 5 //复活
|
||
buffTypeDamageReturn = 6 //伤害反弹
|
||
buffTypeBisect = 7 //伤害平摊(分担)
|
||
buffTypeShield = 8 //护盾
|
||
buffTypeChangeHp = 9 //改变血量
|
||
buffTypeSteal = 10 //窃取属性
|
||
buffTypeAddRage = 11 //增加怒气
|
||
buffTypeImmune = 12 //免疫
|
||
buffTypeUndead = 13 //不死
|
||
buffTypeDamageShare = 14 //伤害共享(共享)
|
||
buffTypeEffectAbnormal = 15 //异常效果(DeBuff)
|
||
)
|
||
|
||
const (
|
||
skillTypeAttack = 1 //普击
|
||
skillTypeActive = 2 //主动
|
||
skillTypePassive = 3 //被动
|
||
)
|
||
|
||
const (
|
||
ratioIn float64 = 0.0001
|
||
ratioOut float64 = 10000
|
||
)
|