Remove MuzzleSplitFacings and expose MuzzleSequence to testing.

This commit is contained in:
Matthias Mailänder
2020-08-08 16:04:12 +02:00
committed by abcdefg30
parent b03ab1212f
commit c48eb572e3
9 changed files with 93 additions and 52 deletions

View File

@@ -173,10 +173,6 @@ namespace OpenRA.Mods.Common.Traits
// Muzzle facing is fixed once the firing starts
var muzzleAnim = new Animation(self.World, paxRender[a.Actor].GetImage(a.Actor), () => targetYaw);
var sequence = a.Info.MuzzleSequence;
if (a.Info.MuzzleSplitFacings > 0)
sequence += Util.IndexFacing(targetYaw, a.Info.MuzzleSplitFacings).ToString();
var muzzleFlash = new AnimationWithOffset(muzzleAnim,
() => PortOffset(self, port),
() => false,