aboutsummaryrefslogtreecommitdiff
path: root/internal/object
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-10 01:48:28 -0400
committerhistoria <[not public]>2026-06-10 01:48:28 -0400
commita226d72e51eecb768b13600303f73483118d9104 (patch)
tree458d15ef049732c15dacc591a830d3beddbedfde /internal/object
parent6a0f3d7a252de4b1741cfe5e1c561412c602becc (diff)
downloadthehouseoficarus-a226d72e51eecb768b13600303f73483118d9104.tar.gz
feat: implemented janky object interaction model
Diffstat (limited to 'internal/object')
-rw-r--r--internal/object/item.go8
-rw-r--r--internal/object/object.go8
2 files changed, 9 insertions, 7 deletions
diff --git a/internal/object/item.go b/internal/object/item.go
index 84e43b1..170e07f 100644
--- a/internal/object/item.go
+++ b/internal/object/item.go
@@ -31,13 +31,15 @@ type ItemDef struct {
Name string `yaml:"name"`
Aliases []string `yaml:"aliases"`
Description string `yaml:"description"`
- Value int `yaml:"value"` // credits
+ Value int `yaml:"value"`
Stackable bool `yaml:"stackable"`
EquipSlot EquipSlot `yaml:"equip_slot"`
WeaponType WeaponType `yaml:"weapon_type"`
Stats ItemStats `yaml:"stats"`
- Speed int `yaml:"speed"` // ticks between attacks
- Toolbelt bool `yaml:"toolbelt"` // can go on toolbelt
+ Speed int `yaml:"speed"`
+ Toolbelt bool `yaml:"toolbelt"`
+ ToolType string `yaml:"tool_type"`
+ ToolSpeed int `yaml:"tool_speed"`
}
type ItemStats struct {
diff --git a/internal/object/object.go b/internal/object/object.go
index 3b8741a..edee3ab 100644
--- a/internal/object/object.go
+++ b/internal/object/object.go
@@ -1,8 +1,8 @@
package object
type ObjectDef struct {
- ID string `yaml:"id"`
- Name string `yaml:"name"`
- Behavior string `yaml:"behavior"`
- Props map[string]any `yaml:"props"`
+ ID string `yaml:"id"`
+ Name string `yaml:"name"`
+ BehaviorID string `yaml:"behavior"`
+ Props map[string]any `yaml:"props"`
}