Beeg fixpack
This commit is contained in:
@@ -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
Reference in New Issue
Block a user