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
33 lines
465 B
TOML
33 lines
465 B
TOML
name = "Halfling"
|
|
description = "Small and nimble, halflings slip through danger with uncanny luck."
|
|
default_class = "class:peasant"
|
|
|
|
[stats]
|
|
strength = -2
|
|
dexterity = 3
|
|
constitution = 0
|
|
intelligence = 0
|
|
wisdom = 1
|
|
perception = 1
|
|
charisma = 1
|
|
|
|
[body]
|
|
size = "tiny"
|
|
weight = 60
|
|
|
|
traits = ["lucky", "stealthy", "brave"]
|
|
|
|
[resistances]
|
|
fear = 0.3
|
|
|
|
[regen]
|
|
hp = 1.0
|
|
mana = 1.0
|
|
endurance = 1.1
|
|
|
|
[misc]
|
|
lifespan = 150
|
|
diet = "omnivore"
|
|
xp_rate = 0.95
|
|
vision = ["normal"]
|