- Expand race TOML schema: 7 stats, body shape (size/weight/custom slots), natural armor and attacks with damage types, resistances, traits/disadvantages, regen multipliers, vision types, XP rate, guild compatibility - Replace equipped_weapon/equipped_armor with slot-based HashMap<String, Object> - Each race defines available equipment slots; default humanoid slots as fallback - Combat uses natural weapons/armor from race when no gear equipped - DB migration from old weapon/armor columns to equipped_json - Add Dragon race: huge body, custom slots (forelegs/wings/tail), fire breath, natural armor 8, fire immune, slow XP rate for balance - Update all existing races with expanded fields (traits, resistances, vision, regen) - Objects gain optional slot field; kind=weapon/armor still works as fallback - Update chargen to display race traits, size, natural attacks, vision - Update stats display to show equipment and natural bonuses separately - Update TESTING.md and AGENTS.md with race/slot system documentation Made-with: Cursor
33 lines
480 B
TOML
33 lines
480 B
TOML
name = "Dwarf"
|
|
description = "Stout and unyielding, dwarves are born of stone and stubbornness."
|
|
|
|
[stats]
|
|
strength = 1
|
|
dexterity = -1
|
|
constitution = 2
|
|
intelligence = 0
|
|
wisdom = 0
|
|
perception = 0
|
|
charisma = -1
|
|
|
|
[body]
|
|
size = "small"
|
|
weight = 150
|
|
|
|
traits = ["darkvision", "poison_resistance", "stonecunning"]
|
|
|
|
[resistances]
|
|
poison = 0.5
|
|
earth = 0.7
|
|
|
|
[regen]
|
|
hp = 1.2
|
|
mana = 0.8
|
|
endurance = 1.1
|
|
|
|
[misc]
|
|
lifespan = 350
|
|
diet = "omnivore"
|
|
xp_rate = 1.0
|
|
vision = ["normal", "darkvision"]
|