多轮审查和修复

This commit is contained in:
2026-05-12 15:34:08 +08:00
parent f55d2a57c3
commit ebbbb7332e
805 changed files with 838724 additions and 1905 deletions

View File

@@ -0,0 +1,36 @@
using System;
namespace BaseGames.Equipment
{
/// <summary>
/// 法术资源类型。
/// </summary>
public enum SpellType
{
SoulAttack,
HealingWave
}
/// <summary>
/// 灵魂法术强化护符效果(架构 09_ProgressionModule §5
/// 装备时减少灵力消耗卸下时还原。SpellManager 消耗时查询 PlayerStats.SoulCostReduction。
/// </summary>
[Serializable]
public class SoulSpellEffect : ICharmEffect
{
public SpellType spellType;
public int soulCostReduction; // 减少消耗的灵力点数
public void OnEquip(EquipmentContext ctx)
{
ctx.Stats?.AddSoulCostReduction(soulCostReduction);
}
public void OnUnequip(EquipmentContext ctx)
{
ctx.Stats?.RemoveSoulCostReduction(soulCostReduction);
}
public string GetEffectDescription() => $"{spellType} 消耗减少 {soulCostReduction} 灵力";
}
}