rename GpsSatellite trait to GpsLaunchSite
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
|
||||
namespace OpenRa.Game.GameRules
|
||||
{
|
||||
public class SupportPowerInfo
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
<Compile Include="Traits\Explodes.cs" />
|
||||
<Compile Include="Traits\ChronoshiftDeploy.cs" />
|
||||
<Compile Include="Traits\Fake.cs" />
|
||||
<Compile Include="Traits\GpsSatellite.cs" />
|
||||
<Compile Include="Traits\GpsLaunchSite.cs" />
|
||||
<Compile Include="Traits\Harvester.cs" />
|
||||
<Compile Include="Traits\Helicopter.cs" />
|
||||
<Compile Include="Traits\InvisibleToOthers.cs" />
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using OpenRa.Game.GameRules;
|
||||
using OpenRa.Game.Traits;
|
||||
using OpenRa.Game.SupportPowers;
|
||||
|
||||
namespace OpenRa.Game
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using OpenRa.Game.Effects;
|
||||
using OpenRa.Game.Traits;
|
||||
|
||||
namespace OpenRa.Game.SupportPowers
|
||||
{
|
||||
@@ -13,7 +11,7 @@ namespace OpenRa.Game.SupportPowers
|
||||
public void Activate(SupportPower p)
|
||||
{
|
||||
var launchSite = Game.world.Actors
|
||||
.FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains<Traits.GpsSatellite>() );
|
||||
.FirstOrDefault( a => a.Owner == p.Owner && a.traits.Contains<GpsLaunchSite>() );
|
||||
|
||||
if (launchSite == null)
|
||||
return;
|
||||
|
||||
6
OpenRa.Game/Traits/GpsLaunchSite.cs
Normal file
6
OpenRa.Game/Traits/GpsLaunchSite.cs
Normal file
@@ -0,0 +1,6 @@
|
||||
using OpenRa.Game.Effects;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class GpsLaunchSite { public GpsLaunchSite(Actor self) { } }
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
using OpenRa.Game.Effects;
|
||||
|
||||
namespace OpenRa.Game.Traits
|
||||
{
|
||||
class GpsSatellite { public GpsSatellite(Actor self) { } }
|
||||
}
|
||||
@@ -348,7 +348,7 @@ MINV
|
||||
; `Produces` is a category of objects that this building can produce.
|
||||
[ATEK]
|
||||
Description=Allied Tech Center
|
||||
Traits=Building, RenderBuilding, IronCurtainable, GpsSatellite
|
||||
Traits=Building, RenderBuilding, IronCurtainable, GpsLaunchSite
|
||||
Dimensions=2,2
|
||||
Footprint=xx xx
|
||||
SelectionPriority=3
|
||||
|
||||
Reference in New Issue
Block a user