Require IntoActor everywhere.

This commit is contained in:
Matthias Mailänder
2017-09-12 20:52:45 +02:00
committed by ltem
parent e3e710bb27
commit cf944ae9f1
3 changed files with 8 additions and 1 deletions

View File

@@ -16,9 +16,10 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[Desc("Replaces the captured actor with a new one.")]
public class TransformOnCaptureInfo : ITraitInfo
{
[ActorReference] public readonly string IntoActor = null;
[ActorReference, FieldLoader.Require] public readonly string IntoActor = null;
public readonly int ForceHealthPercentage = 0;
public readonly bool SkipMakeAnims = true;

View File

@@ -184,6 +184,8 @@ PBOX:
HP: 200000
RenderSprites:
Image: 4TNK
-Capturable:
-TransformOnCapture:
DOME.NoInfiltrate:
Inherits: DOME

View File

@@ -110,6 +110,8 @@ TRAN.Husk1:
Name: Husk (Chinook)
RenderSprites:
Image: tran1husk
-Capturable:
-TransformOnCapture:
TRAN.Husk2:
Inherits: ^Husk
@@ -117,6 +119,8 @@ TRAN.Husk2:
Name: Husk (Chinook)
RenderSprites:
Image: tran2husk
-Capturable:
-TransformOnCapture:
BADR.Husk:
Inherits: ^PlaneHusk