add missing files

This commit is contained in:
2026-10-24 00:54:13 +02:00
parent ec3e784683
commit ce564c10a3
237 changed files with 5733 additions and 0 deletions
@@ -0,0 +1,23 @@
namespace KernelPanic.Combat
{
/// <summary>
/// Shared explicit card-Shield resolution. Effects choose whether their base reward receives
/// source and magnitude bonuses; eligibility and explicit multipliers are applied here once.
/// </summary>
internal static class CardShieldExecutor
{
internal static int ScaleAmount(int baseAmount, CombatContext context) =>
UpgradeMath.ScaleShield(UpgradeMath.ApplySourceFlatBonus(baseAmount, context), context.Card);
internal static void Execute(CombatContext context, int amount, string label = "card")
{
if (!context.CombatManager.CanPlayerReceiveCardShield(context.Card))
{
context.CombatManager.ReportEffectResult($"shield blocked: {amount}");
return;
}
context.CombatManager.GrantPlayerShield(context.ScaleExplicitShield(amount), label);
}
}
}