Skip to main content

Module spawn

Module spawn 

Source
Expand description

Spawn tables — weighted creature/item spawn selection.

Provides tiered, depth-scaled spawn tables used by dungeon floors. Each spawn table entry has:

  • A weight (higher = more common)
  • A minimum depth (won’t appear before this floor)
  • An optional maximum depth (won’t appear after this floor)
  • An optional group tag for filtering by category

Structs§

SpawnEntry
One entry in a spawn table.
SpawnResult
Result of a spawn roll.
SpawnTable
A weighted spawn table.

Enums§

SpawnTier
Rarity tier of a spawn entry.

Functions§

chaos_rpg_creatures
Build the default creature spawn table for chaos-rpg.
chaos_rpg_items
Build the default item spawn table.