From bcf755c959bc381d05f084e299f9e2e3f2a036b8 Mon Sep 17 00:00:00 2001 From: dingo Date: Sun, 18 Jan 2026 22:40:51 -0500 Subject: [PATCH] mob dmg debug --- Game/Dungeon/DungeonSimulation.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Game/Dungeon/DungeonSimulation.cs b/Game/Dungeon/DungeonSimulation.cs index 919e8a2..76906f4 100644 --- a/Game/Dungeon/DungeonSimulation.cs +++ b/Game/Dungeon/DungeonSimulation.cs @@ -468,10 +468,14 @@ public partial class DungeonSimulation { int damage = ability.BaseDamage; string damageTypeKey = ability.DamageTypeKey ?? "physical"; - + + Console.WriteLine($"[MobAttack] Mob {mob.Id} ({mob.Name}) attacking with {ability.Name}: BaseDamage={damage}, Stats.PhysicalDamage={mob.Stats.PhysicalDamage}, Stats.MagicDamage={mob.Stats.MagicDamage}"); + var result = CombatCalculator.CalculateMobToPlayerDamage( mob, target, damageTypeKey, damage, target.Resistances); - + + Console.WriteLine($"[MobAttack] After calculation: FinalDamage={result.FinalDamage}, Player Armor={target.Armor}, Player Endurance={target.Endurance}"); + ApplyDamageToPlayer(mob, target, result.FinalDamage, damageTypeKey, result.WasResisted, result.WasWeakness); // Cleave hits other nearby players