Add stamina logs (#12921)

This commit is contained in:
Chief-Engineer
2022-12-11 22:21:15 -06:00
committed by GitHub
parent 3b3963083b
commit 388d186fc7
5 changed files with 28 additions and 7 deletions

View File

@@ -424,7 +424,7 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
// If the target has stamina and is taking blunt damage, they should also take stamina damage based on their blunt to stamina factor
if (damageResult.DamageDict.TryGetValue("Blunt", out var bluntDamage))
{
_stamina.TakeStaminaDamage(ev.Target.Value, (bluntDamage * component.BluntStaminaDamageFactor).Float());
_stamina.TakeStaminaDamage(ev.Target.Value, (bluntDamage * component.BluntStaminaDamageFactor).Float(), source:user, with:(component.Owner == user ? null : component.Owner));
}
if (component.Owner == user)