77 lines
1.5 KiB
Go
77 lines
1.5 KiB
Go
package ground_spawn
|
|
|
|
// Harvest type constants (preserved from C++ implementation)
|
|
const (
|
|
HarvestTypeNone int8 = 0
|
|
HarvestType1Item int8 = 1
|
|
HarvestType3Items int8 = 2
|
|
HarvestType5Items int8 = 3
|
|
HarvestTypeImbue int8 = 4
|
|
HarvestTypeRare int8 = 5
|
|
HarvestType10AndRare int8 = 6
|
|
)
|
|
|
|
// Harvest skill constants
|
|
const (
|
|
SkillGathering = "Gathering"
|
|
SkillCollecting = "Collecting"
|
|
SkillMining = "Mining"
|
|
SkillFishing = "Fishing"
|
|
SkillTrapping = "Trapping"
|
|
SkillForesting = "Foresting"
|
|
)
|
|
|
|
// Harvest skill spell types
|
|
const (
|
|
SpellTypeGather = "gather"
|
|
SpellTypeMine = "mine"
|
|
SpellTypeTrap = "trap"
|
|
SpellTypeChop = "chop"
|
|
SpellTypeFish = "fish"
|
|
)
|
|
|
|
// Harvest result constants
|
|
const (
|
|
HarvestResultSuccess = iota
|
|
HarvestResultFailed
|
|
HarvestResultNoSkill
|
|
HarvestResultDepleted
|
|
HarvestResultNoItems
|
|
)
|
|
|
|
// Item rarity flags (preserved from C++ implementation)
|
|
const (
|
|
ItemRarityNormal int8 = 0
|
|
ItemRarityRare int8 = 1
|
|
ItemRarityImbue int8 = 2
|
|
)
|
|
|
|
// Ground spawn state constants
|
|
const (
|
|
StateAvailable = iota
|
|
StateDepleted
|
|
StateRespawning
|
|
)
|
|
|
|
// Default spawn configuration
|
|
const (
|
|
DefaultDifficulty = 0
|
|
DefaultSpawnType = 2
|
|
DefaultState = 129
|
|
DefaultAttemptsPerHarvest = 1
|
|
DefaultNumberHarvests = 1
|
|
DefaultRandomizeHeading = true
|
|
)
|
|
|
|
// Harvest message channels (placeholder values)
|
|
const (
|
|
ChannelHarvesting = 15
|
|
ChannelColorRed = 13
|
|
)
|
|
|
|
// Statistical tracking
|
|
const (
|
|
StatPlayerItemsHarvested = 1
|
|
StatPlayerRaresHarvested = 2
|
|
)
|