aboutsummaryrefslogtreecommitdiff
path: root/internal/world
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-25 04:46:40 -0400
committerhistoria <[not public]>2026-06-25 04:46:40 -0400
commit2725e2927a1595c7b100d942d1f14146252adeb7 (patch)
treee8bc2292634a2d686c751981ddb3097517cccc6a /internal/world
parent94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (diff)
downloadthehouseoficarus-2725e2927a1595c7b100d942d1f14146252adeb7.tar.gz
feat: who, global chat, removed redundant YAML IDs
Diffstat (limited to 'internal/world')
-rw-r--r--internal/world/hazard.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/world/hazard.go b/internal/world/hazard.go
index 396343b..1361cff 100644
--- a/internal/world/hazard.go
+++ b/internal/world/hazard.go
@@ -21,7 +21,6 @@ import (
// Tech protection (Kinetic Barrier / Projectile Screen / Neural Firewall) keys
// off AttackType automatically.
type HazardDef struct {
- ID string `yaml:"id"`
Name string `yaml:"name"`
Description string `yaml:"description"`
AttackType string `yaml:"attack_type"` // stab/slash/crush/ranged/science
@@ -59,7 +58,6 @@ func (w *World) LoadHazard(id string) (*HazardDef, error) {
if err := yaml.Unmarshal(data, &def); err != nil {
return nil, fmt.Errorf("parse hazard %s: %w", id, err)
}
- def.ID = id
w.hazardMu.Lock()
w.hazardDefs[id] = &def