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:
16
world/guilds/clerics_guild.toml
Normal file
16
world/guilds/clerics_guild.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
name = "Clerics Guild"
|
||||
description = "Channels of divine power, the Clerics Guild teaches the sacred arts of healing, protection, and righteous combat. A balance of support and resilience."
|
||||
max_level = 50
|
||||
resource = "mana"
|
||||
base_mana = 40
|
||||
base_endurance = 20
|
||||
spells = ["spell:heal", "spell:smite", "spell:divine_shield", "spell:purify"]
|
||||
min_player_level = 0
|
||||
race_restricted = []
|
||||
|
||||
[growth]
|
||||
hp_per_level = 6
|
||||
mana_per_level = 5
|
||||
endurance_per_level = 2
|
||||
attack_per_level = 1
|
||||
defense_per_level = 2
|
||||
16
world/guilds/mages_guild.toml
Normal file
16
world/guilds/mages_guild.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
name = "Mages Guild"
|
||||
description = "Wielders of arcane forces, the Mages Guild unlocks the mysteries of magical power. Members sacrifice physical resilience for devastating magical attacks."
|
||||
max_level = 50
|
||||
resource = "mana"
|
||||
base_mana = 60
|
||||
base_endurance = 0
|
||||
spells = ["spell:magic_missile", "spell:fireball", "spell:frost_shield", "spell:arcane_blast"]
|
||||
min_player_level = 0
|
||||
race_restricted = []
|
||||
|
||||
[growth]
|
||||
hp_per_level = 3
|
||||
mana_per_level = 8
|
||||
endurance_per_level = 0
|
||||
attack_per_level = 1
|
||||
defense_per_level = 0
|
||||
16
world/guilds/rogues_guild.toml
Normal file
16
world/guilds/rogues_guild.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
name = "Rogues Guild"
|
||||
description = "Silent and deadly, the Rogues Guild teaches the arts of stealth, subterfuge, and precision strikes. Members trade raw power for cunning and speed."
|
||||
max_level = 50
|
||||
resource = "endurance"
|
||||
base_mana = 0
|
||||
base_endurance = 40
|
||||
spells = ["spell:backstab", "spell:poison_blade", "spell:evasion", "spell:shadow_step"]
|
||||
min_player_level = 0
|
||||
race_restricted = []
|
||||
|
||||
[growth]
|
||||
hp_per_level = 5
|
||||
mana_per_level = 0
|
||||
endurance_per_level = 6
|
||||
attack_per_level = 3
|
||||
defense_per_level = 0
|
||||
16
world/guilds/warriors_guild.toml
Normal file
16
world/guilds/warriors_guild.toml
Normal file
@@ -0,0 +1,16 @@
|
||||
name = "Warriors Guild"
|
||||
description = "Masters of martial combat, the Warriors Guild trains its members in the art of physical warfare. Emphasizes strength, endurance, and weapon mastery."
|
||||
max_level = 50
|
||||
resource = "endurance"
|
||||
base_mana = 0
|
||||
base_endurance = 50
|
||||
spells = ["spell:power_strike", "spell:battle_cry", "spell:shield_wall", "spell:whirlwind"]
|
||||
min_player_level = 0
|
||||
race_restricted = []
|
||||
|
||||
[growth]
|
||||
hp_per_level = 8
|
||||
mana_per_level = 0
|
||||
endurance_per_level = 5
|
||||
attack_per_level = 2
|
||||
defense_per_level = 1
|
||||
Reference in New Issue
Block a user