data/spawn_categories/
A spawn category: a population class, such as ambient creatures, with caps on how many may live near each player and in each 64-block region. Spawn rules name their category. Loaded by the server only.
| Registry | manifold-ai:spawn-category |
| Files | data/spawn_categories/*.ron, *.update.ron, *.final.ron |
| Sides | server: only the server loads it |
| Reads | nothing |
| Contract | Population, data stage |
Entry
A record, written SpawnCategory(..); the name before the parentheses is optional.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
id | string | yes | The category’s key, <mod-id>:<name>. | |
per_player | u16 | no | 10 | The most creatures of the category in the regions around each player. |
per_region | u16 | no | 16 | The most creatures of the category in one interest region. |
counts_toward_hard_cap | bool | no | true | Whether its creatures count toward the space’s ambient cap. |
Example
From game/flagship-game/data/spawn_categories/creature.ron:
SpawnCategory(
id: "flagship-game:cat/creature",
per_player: 10,
per_region: 16,
counts_toward_hard_cap: true,
)