CONTENT CONTRACT · VERSION 1
loot
Items a defeated actor or a razed camp leaves behind besides its inventory.
Signature
{ entries: {LootEntry}, id: ContentId, kind: "loot" }Fields
| Name | Type | Meaning |
|---|---|---|
entries | {LootEntry} | Every entry drops a count between min and max from the host's deterministic random stream. Items: 1…64; Unique entries |
id | ContentId | Package-qualified identity; unique within its declaring namespace. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$ |
kind | "loot" | Discriminant |
Validated example
{
"entries": [
{
"item": "core:apple",
"max": 3,
"min": 1
}
],
"id": "core:apple_harvest",
"kind": "loot"
}