Overhaul target line rendering:
- Targets are now defined by the activities - Queued activities are shown - Support custom attack colors
This commit is contained in:
@@ -34,8 +34,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
public void DeliverCash(Actor target)
|
||||
{
|
||||
var t = Target.FromActor(target);
|
||||
Self.SetTargetLine(t, Color.Yellow);
|
||||
Self.QueueActivity(new DonateCash(Self, t, info.Payload, info.PlayerExperience));
|
||||
Self.ShowTargetLines();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -66,8 +66,8 @@ namespace OpenRA.Mods.Common.Scripting
|
||||
var level = gainsExperience.Level;
|
||||
|
||||
var t = Target.FromActor(target);
|
||||
Self.SetTargetLine(t, Color.Yellow);
|
||||
Self.QueueActivity(new DonateExperience(Self, t, level, deliversExperience.PlayerExperience));
|
||||
Self.ShowTargetLines();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user