35 lines
1.5 KiB
Go
35 lines
1.5 KiB
Go
package data
|
|
|
|
type Monster struct {
|
|
Id int `json:"id"` //索引(ID)
|
|
Level int `json:"level"` //等级
|
|
DeadAudioid int `json:"dead_audioID"` //死亡音效ID
|
|
Vibration bool `json:"vibration"` //受击震动
|
|
IsWeaknessHit bool `json:"isWeaknessHit"` //是否需要攻击弱点造成伤害
|
|
DeathDropItems []int `json:"DeathDropItems"` //死亡掉落
|
|
PassiveSkill []int `json:"passive_skill"` //被动技能
|
|
AutoSkills []int `json:"auto_skills"` //自动释放技能id
|
|
KillScore int `json:"kill_score"` //击杀积分
|
|
Type int `json:"type"` //怪物类型
|
|
WarnRange int `json:"warn_range"` //警戒范围(R)
|
|
Group int `json:"group"` //怪物阵营
|
|
AttrValue0 int `json:"attr_value0"` //移动速度
|
|
AttrValue1 float64 `json:"attr_value1"` //能量值(血量)
|
|
AttrValue2 int `json:"attr_value2"` //能量值回恢速度
|
|
AttrValue3 int `json:"attr_value3"` //加速能量
|
|
AttrValue4 int `json:"attr_value4"` //破坏力
|
|
AttrValue5 int `json:"attr_value5"` //对硬物破坏力
|
|
AttrValue6 int `json:"attr_value6"` //对怪物破坏力
|
|
AttrValue7 int `json:"attr_value7"` //暴击率
|
|
AttrValue8 int `json:"attr_value8"` //暴击伤害加成
|
|
AttrValue9 int `json:"attr_value9"` //攻击速度
|
|
}
|
|
|
|
func (data *Monster) id() int {
|
|
return data.Id
|
|
}
|
|
|
|
type MonsterTable struct {
|
|
table[int, *Monster]
|
|
}
|