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
150 B
TOML
7 lines
150 B
TOML
name = "sack"
|
|
description = "a rough cloth sack with drawstring closure"
|
|
portable = true
|
|
capacity = 3
|
|
closed = false
|
|
locked = false
|
|
aliases = ["bag"]
|