Extended ThingTemplate with optional container fields (capacity, closed, locked). When a template includes capacity, spawn_thing now creates a Container instead of a regular Thing. Added two example container templates: - chest.toml: non-portable, capacity 5, starts closed - sack.toml: portable, capacity 3, starts open
7 lines
149 B
TOML
7 lines
149 B
TOML
name = "chest"
|
|
description = "a sturdy wooden chest with iron bindings"
|
|
portable = false
|
|
capacity = 5
|
|
closed = true
|
|
locked = false
|
|
aliases = ["box"]
|