Fix WithHarvesterOffset.LocalOffset name.
This commit is contained in:
@@ -22,7 +22,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
[SequenceReference] public readonly string Sequence = "harvest";
|
||||
|
||||
[Desc("Position relative to body")]
|
||||
public readonly WVec Offset = WVec.Zero;
|
||||
public readonly WVec LocalOffset = WVec.Zero;
|
||||
|
||||
[PaletteReference] public readonly string Palette = "effect";
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace OpenRA.Mods.Common.Traits.Render
|
||||
anim.IsDecoration = true;
|
||||
anim.Play(info.Sequence);
|
||||
rs.Add(new AnimationWithOffset(anim,
|
||||
() => body.LocalToWorld(info.Offset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
|
||||
() => body.LocalToWorld(info.LocalOffset.Rotate(body.QuantizeOrientation(self, self.Orientation))),
|
||||
() => !visible,
|
||||
p => ZOffsetFromCenter(self, p, 0)), info.Palette);
|
||||
}
|
||||
|
||||
@@ -635,6 +635,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
}
|
||||
}
|
||||
|
||||
if (engineVersion < 20170507)
|
||||
if (node.Key == "Offset" && parent.Key.StartsWith("WithHarvestOverlay", StringComparison.Ordinal))
|
||||
RenameNodeKey(node, "LocalOffset");
|
||||
|
||||
UpgradeActorRules(modData, engineVersion, ref node.Value.Nodes, node, depth + 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ HARV:
|
||||
Explodes:
|
||||
Weapon: TiberiumExplosion
|
||||
WithHarvestOverlay:
|
||||
Offset: 384,0,0
|
||||
LocalOffset: 384,0,0
|
||||
Palette: effect
|
||||
SelectionDecorations:
|
||||
VisualBounds: 36,36
|
||||
|
||||
Reference in New Issue
Block a user