Convert yaml-exposed facings to WAngle.

This commit is contained in:
Paul Chote
2020-07-09 22:08:38 +01:00
committed by reaperrr
parent 6d12301f88
commit ac975f4139
80 changed files with 477 additions and 370 deletions

View File

@@ -52,7 +52,7 @@ namespace OpenRA.Mods.Cnc.Traits
public readonly string OriginalActor = "mcv";
[Desc("Facing of the returned actor.")]
public readonly int Facing = 96;
public readonly WAngle Facing = new WAngle(384);
public readonly string ChronoshiftSound = "chrono2.aud";
@@ -175,7 +175,7 @@ namespace OpenRA.Mods.Cnc.Traits
{
new LocationInit(destination.Value),
new OwnerInit(self.Owner),
new FacingInit(WAngle.FromFacing(info.Facing)),
new FacingInit(info.Facing),
new FactionInit(faction),
new HealthInit((int)(health.HP * 100L / health.MaxHP))
};