Merge remote-tracking branch 'space-station-14/master' into ed-02-06-2024-upstream
This commit is contained in:
@@ -504,7 +504,7 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
|
||||
var modifiedDamage = DamageSpecifier.ApplyModifierSets(damage + hitEvent.BonusDamage + attackedEvent.BonusDamage, hitEvent.ModifiersList);
|
||||
var damageResult = Damageable.TryChangeDamage(target, modifiedDamage, origin:user);
|
||||
|
||||
if (damageResult != null && damageResult.Any())
|
||||
if (damageResult is {Empty: false})
|
||||
{
|
||||
// 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))
|
||||
@@ -756,7 +756,7 @@ public abstract class SharedMeleeWeaponSystem : EntitySystem
|
||||
return;
|
||||
|
||||
var invMatrix = TransformSystem.GetInvWorldMatrix(userXform);
|
||||
var localPos = invMatrix.Transform(coordinates.Position);
|
||||
var localPos = Vector2.Transform(coordinates.Position, invMatrix);
|
||||
|
||||
if (localPos.LengthSquared() <= 0f)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user