mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-04 15:46:51 -05:00
d2enum lint (#700)
* fixing some lint errors in d2enum * fixed lint errors in d2enum
This commit is contained in:
parent
acc4c7a13e
commit
33f66badfc
@ -3,6 +3,7 @@ package d2enum
|
||||
// AnimationFrameDirection enumerates animation frame directions used in d2datadict.MonsterSequenceFrame
|
||||
type AnimationFrameDirection int
|
||||
|
||||
// Animation frame directions
|
||||
const (
|
||||
SouthWest AnimationFrameDirection = iota
|
||||
NorthWest
|
||||
|
@ -3,6 +3,7 @@ package d2enum
|
||||
// AnimationFrameEvent enumerates events used in d2datadict.MonsterSequenceFrame
|
||||
type AnimationFrameEvent int
|
||||
|
||||
// Animation frame events
|
||||
const (
|
||||
NoEvent AnimationFrameEvent = iota
|
||||
MeleeAttack
|
||||
|
@ -1,8 +1,9 @@
|
||||
package d2enum
|
||||
|
||||
//ItemQuality is used for enumerating item quality values
|
||||
// ItemQuality is used for enumerating item quality values
|
||||
type ItemQuality int
|
||||
|
||||
// Item qualities
|
||||
const (
|
||||
LowQuality ItemQuality = iota + 1
|
||||
Normal
|
||||
|
@ -3,56 +3,37 @@ package d2enum
|
||||
// MonUModConstIndex is used as an index into d2datadict.MonsterUniqueModifierConstants
|
||||
type MonUModConstIndex int
|
||||
|
||||
// Unique monster modifier constants
|
||||
const (
|
||||
//Champion chance
|
||||
ChampionChance MonUModConstIndex = iota
|
||||
|
||||
//MinionHPBonus is the HP bonus received by minions
|
||||
MinionHPBonus
|
||||
MinionHPBonusNightmare
|
||||
MinionHPBonusHell
|
||||
|
||||
//ChampionHPBonus is the HP bonus received by champions
|
||||
ChampionHPBonus
|
||||
ChampionHPBonusNightmare
|
||||
ChampionHPBonusHell
|
||||
|
||||
//UniqueHPBonus is the HP bonus received by random uniques
|
||||
UniqueHPBonus
|
||||
UniqueHPBonusNightmare
|
||||
UniqueHPBonusHell
|
||||
|
||||
//Attack rating and damage bonus of champions
|
||||
ChampionAttackRatingBonus
|
||||
ChampionDamageBonus
|
||||
|
||||
//Attack rating and damage bonus of strong minions
|
||||
StrongMinionAttackRatingBonus
|
||||
StrongMinionDamageBonus
|
||||
|
||||
//Minion elemental damage bonus
|
||||
MinionElementalDamageMinBonus
|
||||
MinionElementalDamageMinBonusNightmare
|
||||
MinionElementalDamageMinBonusHell
|
||||
|
||||
MinionElementalDamageMaxBonus
|
||||
MinionElementalDamageMaxBonusNightmare
|
||||
MinionElementalDamageMaxBonusHell
|
||||
|
||||
//Minion elemental damage bonus
|
||||
ChampionElementalDamageMinBonus
|
||||
ChampionElementalDamageMinBonusNightmare
|
||||
ChampionElementalDamageMinBonusHell
|
||||
|
||||
ChampionElementalDamageMaxBonus
|
||||
ChampionElementalDamageMaxBonusNightmare
|
||||
ChampionElementalDamageMaxBonusHell
|
||||
|
||||
//Unique elemental damage bonus
|
||||
UniqueElementalDamageMinBonus
|
||||
UniqueElementalDamageMinBonusNightmare
|
||||
UniqueElementalDamageMinBonusHell
|
||||
|
||||
UniqueElementalDamageMaxBonus
|
||||
UniqueElementalDamageMaxBonusNightmare
|
||||
UniqueElementalDamageMaxBonusHell
|
||||
|
@ -4,10 +4,10 @@ package d2enum
|
||||
type PetIconType int
|
||||
|
||||
// Pet icon types
|
||||
//The information has been gathered from [https://d2mods.info/forum/kb/viewarticle?a=355]
|
||||
// The information has been gathered from [https:// d2mods.info/forum/kb/viewarticle?a=355]
|
||||
const (
|
||||
NoIcon PetIconType = iota
|
||||
ShowIconOnly
|
||||
ShowIconAndQuantity //Quantity, such as the number of skeletons
|
||||
ShowIconAndQuantity // Quantity, such as the number of skeletons
|
||||
ShowIconOnly2
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user