Implement guild system with multi-guild, spells, and combat casting

- Guild data model: world/guilds/*.toml defines guilds with stat growth,
  resource type (mana/endurance), spell lists, level caps, and race
  restrictions. Spells are separate files in world/spells/*.toml.

- Player resources: mana and endurance pools added to PlayerStats with
  DB migration. Passive regen for mana/endurance when out of combat.

- Guild commands: guild list/info/join/leave with multi-guild support.
  spells/skills command shows available spells per guild level.

- Spell casting: cast command works in and out of combat. Offensive
  spells queue as CombatAction::Cast and resolve on tick. Heal/utility
  spells resolve immediately out of combat. Mana/endurance costs,
  cooldowns, and damage types all enforced.

- Chargen integration: classes reference a guild via TOML field. On
  character creation, player auto-joins the seeded guild at level 1.
  Class selection shows "→ joins <Guild>" hint.

- Look command: now accepts optional target argument to inspect NPCs
  (stats/attitude), objects, exits, players, or inventory items.

- 4 guilds (warriors/rogues/mages/clerics) and 16 spells created for
  the existing class archetypes.

Made-with: Cursor
This commit is contained in:
AI Agent
2026-03-14 16:13:10 -06:00
parent bdd1a85ea2
commit 598360ac95
33 changed files with 1082 additions and 48 deletions

View File

@@ -1,5 +1,6 @@
name = "Cleric"
description = "Devout healers and protectors, clerics channel divine power to mend and shield."
guild = "guild:clerics_guild"
[base_stats]
max_hp = 100

View File

@@ -1,5 +1,6 @@
name = "Mage"
description = "Wielders of arcane power, mages trade resilience for devastating force."
guild = "guild:mages_guild"
[base_stats]
max_hp = 70

View File

@@ -1,5 +1,6 @@
name = "Rogue"
description = "Quick and cunning, rogues strike from the shadows with lethal precision."
guild = "guild:rogues_guild"
[base_stats]
max_hp = 85

View File

@@ -1,5 +1,6 @@
name = "Warrior"
description = "Masters of arms and armor, warriors lead the charge and hold the line."
guild = "guild:warriors_guild"
[base_stats]
max_hp = 120