Beeg fixpack

This commit is contained in:
2026-02-16 03:30:45 -08:00
parent f09d6ac8e8
commit 366ed9f5e6
52 changed files with 2876 additions and 451 deletions

View File

@@ -622,21 +622,21 @@ public partial class Player : CharacterBody3D, IPlayer, IProvide<IPlayer>
var weapon = (Weapon)EquipmentComponent.EquippedWeapon.Value;
SfxDatabase.Instance.Play(weapon.SoundEffect);
WeaponAnimations.SetSpeedScale((float)weapon.AttackSpeed);
var potentialAnimName = weapon.Stats.Name?.Replace(" ", string.Empty);
var potentialAnimName = weapon.Stats.Name;
if (WeaponAnimations.HasAnimation(potentialAnimName))
WeaponAnimations.Play(potentialAnimName);
else if (weapon.WeaponElement == ElementType.Aeolic)
WeaponAnimations.Play("AirSlash");
WeaponAnimations.Play("Air Slash");
else if (weapon.WeaponElement == ElementType.Hydric)
WeaponAnimations.Play("WaterSlash");
WeaponAnimations.Play("Water Slash");
else if (weapon.WeaponElement == ElementType.Igneous)
WeaponAnimations.Play("FireSlash");
WeaponAnimations.Play("Fire Slash");
else if (weapon.WeaponElement == ElementType.Telluric)
WeaponAnimations.Play("EarthSlash");
WeaponAnimations.Play("Earth Slash");
else if (string.IsNullOrWhiteSpace(potentialAnimName))
WeaponAnimations.Play("Unarmed");
else
WeaponAnimations.Play("NormalSlash");
WeaponAnimations.Play("Normal Slash");
}
private void PlayerFXAnimations_AnimationFinished(StringName animName)

File diff suppressed because it is too large Load Diff