Skip to content

Commit

Permalink
Fix weapon sounds not playing when multiple weapons in a pub file hav…
Browse files Browse the repository at this point in the history
…e the same graphic
  • Loading branch information
ethanmoffat committed Sep 14, 2022
1 parent a33c682 commit 3f54196
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ private void PlayWeaponSound(EOLib.Domain.Character.Character character, int not
return;
}

_pubFileProvider.EIFFile.SingleOrNone(x => x.Type == ItemType.Weapon && x.DollGraphic == character.RenderProperties.WeaponGraphic)
_pubFileProvider.EIFFile.FirstOrNone(x => x.Type == ItemType.Weapon && x.DollGraphic == character.RenderProperties.WeaponGraphic)
.MatchSome(x =>
{
var instrumentIndex = Constants.InstrumentIDs.ToList().FindIndex(y => y == x.ID);
Expand Down

0 comments on commit 3f54196

Please sign in to comment.