skill

package
v0.0.0-...-cd5db6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Skill skill

Functions

This section is empty.

Types

type Conf

type Conf struct {
	CfgId         int     `json:"cfgId"`
	Name          string  `json:"name"`
	Trigger       int     `json:"trigger"` //发起类型
	Target        int     `json:"target"`  //目标类型
	Des           string  `json:"des"`
	Limit         int     `json:"limit"`          //可以被武将装备上限
	Duration      int     `json:"duration"`       //技能持续时间,0为瞬时
	Arms          []int   `json:"arms"`           //可以装备的兵种
	IncludeEffect []int   `json:"include_effect"` //技能包括的效果
	Levels        []level `json:"levels"`
}

func (*Conf) IsHitAfter

func (this *Conf) IsHitAfter() bool

func (*Conf) IsHitBefore

func (this *Conf) IsHitBefore() bool

type EffectType

type EffectType int
const (
	HurtRate EffectType = iota + 1 //伤害率
	Force
	Defense
	Strategy
	Speed
	Destroy
)

type TargetType

type TargetType int
const (
	MySelf         TargetType = iota + 1 //自己
	OurSingle                            //我军单体
	OurMostTwo                           //我军1-2个目标
	OurMostThree                         //我军1-3个目标
	OurAll                               //我军全体
	EnemySingle                          //敌军单体
	EnemyMostTwo                         //敌军1-2个目标
	EnemyMostThree                       //我军1-3个目标
	EnemyAll                             //敌军全体
)

type TriggerType

type TriggerType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL