Files
mudserver/world/races/orc.toml
AI Agent 7b6829b1e8 Give every NPC a race and class, resolved at spawn time
NPCs can now optionally specify race and class in their TOML. When
omitted, race is randomly selected from non-hidden races and class is
determined by the race's default_class or picked randomly from
compatible non-hidden classes. Race/class are re-rolled on each
respawn for NPCs without fixed values, so killing the barkeep may
bring back a different race next time.

New hidden content (excluded from character creation):
- Beast race: for animals (rats, etc.) with feral stats and no
  equipment slots
- Peasant class: weak default for humanoid NPCs
- Creature class: default for beasts/animals

Existing races gain default_class fields (humanoids → peasant,
beast → creature, dragon → random compatible). Look and examine
commands now display NPC race and class.

Made-with: Cursor
2026-03-14 16:32:27 -06:00

37 lines
545 B
TOML

name = "Orc"
description = "Powerful and fierce, orcs channel raw fury into everything they do."
default_class = "class:peasant"
[stats]
strength = 3
dexterity = 0
constitution = 1
intelligence = -2
wisdom = -1
perception = 0
charisma = -1
[body]
size = "large"
weight = 250
[natural]
armor = 1
traits = ["berserker_rage", "intimidating"]
disadvantages = ["light_sensitivity"]
[resistances]
physical = 0.9
[regen]
hp = 1.3
mana = 0.6
endurance = 1.2
[misc]
lifespan = 60
diet = "carnivore"
xp_rate = 1.05
vision = ["normal", "low_light"]