aboutsummaryrefslogtreecommitdiff
path: root/internal/action
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-11 04:46:27 -0400
committerhistoria <[not public]>2026-06-11 08:58:37 +0000
commit1b9e2da3b3c438d8dc53d3489725dd5ba0022777 (patch)
tree62264f24420bf4cfaa734942c65cc8dd45ba3d3b /internal/action
parent06c02a697e5daf8832a462de5970dd4c0e13a02c (diff)
downloadthehouseoficarus-1b9e2da3b3c438d8dc53d3489725dd5ba0022777.tar.gz
feat: web client, get/drop updates and fixes
Diffstat (limited to 'internal/action')
-rw-r--r--internal/action/action.go2
-rw-r--r--internal/action/behavior.go21
2 files changed, 15 insertions, 8 deletions
diff --git a/internal/action/action.go b/internal/action/action.go
index 9cd4c0f..44f27f8 100644
--- a/internal/action/action.go
+++ b/internal/action/action.go
@@ -24,6 +24,8 @@ type DropEntry struct {
Quantity int `yaml:"quantity"`
Depletes bool `yaml:"depletes"`
Message string `yaml:"message"`
+ Level int `yaml:"level"`
+ XP int `yaml:"xp"`
}
type DropTableDef struct {
diff --git a/internal/action/behavior.go b/internal/action/behavior.go
index d8eb909..a3c8802 100644
--- a/internal/action/behavior.go
+++ b/internal/action/behavior.go
@@ -3,8 +3,10 @@ package action
type GatherConfig struct {
Skill string `yaml:"skill"`
Level int `yaml:"level"`
+ XP int `yaml:"xp"`
BaseWait int `yaml:"base_wait"`
- Tool string `yaml:"tool"`
+ Tools []string `yaml:"tools"`
+ Bait string `yaml:"bait"`
Success SuccessFormula `yaml:"success"`
GatherMsg string `yaml:"gather_message"`
FailMsg string `yaml:"fail_message"`
@@ -12,6 +14,8 @@ type GatherConfig struct {
DepleteDelay int `yaml:"deplete_delay"`
RespawnMsg string `yaml:"respawn_message"`
RespawnBroadcast string `yaml:"respawn_broadcast"`
+ SharedDeplete int `yaml:"shared_deplete"`
+ NestChance int `yaml:"nest_chance"`
}
type SuccessFormula struct {
@@ -57,14 +61,15 @@ type Condition struct {
}
type UseConfig struct {
- Message string `yaml:"message"`
- Wait int `yaml:"wait"`
- Consume map[string]int `yaml:"consume"`
- Reward DropEntry `yaml:"reward"`
- FailMsg string `yaml:"fail_message"`
+ Message string `yaml:"message"`
+ Wait int `yaml:"wait"`
+ Consume map[string]int `yaml:"consume"`
+ Reward DropEntry `yaml:"reward"`
+ FailMsg string `yaml:"fail_message"`
Success *SuccessFormula `yaml:"success"`
- Skill string `yaml:"skill"`
- Level int `yaml:"level"`
+ Skill string `yaml:"skill"`
+ Level int `yaml:"level"`
+ XP int `yaml:"xp"`
}
type ToggleConfig struct {