removed SquishByTank
This commit is contained in:
@@ -241,7 +241,6 @@
|
||||
<Compile Include="Traits\Repairable.cs" />
|
||||
<Compile Include="Traits\Reservable.cs" />
|
||||
<Compile Include="Traits\Selectable.cs" />
|
||||
<Compile Include="Traits\SquishByTank.cs" />
|
||||
<Compile Include="Traits\Plane.cs" />
|
||||
<Compile Include="Traits\Player\ProductionQueue.cs" />
|
||||
<Compile Include="Traits\ProductionSurround.cs" />
|
||||
|
||||
@@ -22,8 +22,8 @@ using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using OpenRA.FileFormats;
|
||||
using OpenRA.Graphics;
|
||||
using OpenRA.GameRules;
|
||||
using OpenRA.Graphics;
|
||||
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
#region Copyright & License Information
|
||||
/*
|
||||
* Copyright 2007,2009,2010 Chris Forbes, Robert Pepperell, Matthew Bowra-Dean, Paul Chote, Alli Witheford.
|
||||
* This file is part of OpenRA.
|
||||
*
|
||||
* OpenRA is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* OpenRA is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with OpenRA. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#endregion
|
||||
|
||||
using OpenRA.GameRules;
|
||||
namespace OpenRA.Traits
|
||||
{
|
||||
class SquishByTankInfo : ITraitInfo
|
||||
{
|
||||
public object Create(Actor self) { return new SquishByTank(self); }
|
||||
}
|
||||
|
||||
class SquishByTank : ICrushable
|
||||
{
|
||||
readonly Actor self;
|
||||
public SquishByTank(Actor self)
|
||||
{
|
||||
this.self = self;
|
||||
}
|
||||
|
||||
public void OnCrush(Actor crusher)
|
||||
{
|
||||
// ... this wasnt working ANYWAY ...
|
||||
// self.InflictDamage(crusher, self.Health, Rules.WarheadInfo["Crush"]);
|
||||
}
|
||||
|
||||
public bool IsPathableCrush(UnitMovementType umt, Player player)
|
||||
{
|
||||
return IsCrushableBy(umt, player);
|
||||
}
|
||||
|
||||
public bool IsCrushableBy(UnitMovementType umt, Player player)
|
||||
{
|
||||
if (player == self.Owner) return false;
|
||||
switch (umt)
|
||||
{
|
||||
case UnitMovementType.Track: return true;
|
||||
default: return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -137,7 +137,6 @@ SHOK:
|
||||
AttackBase:
|
||||
PrimaryWeapon: PortaTesla
|
||||
TakeCover:
|
||||
-SquishByTank:
|
||||
|
||||
MECH:
|
||||
Inherits: ^Infantry
|
||||
@@ -178,7 +177,6 @@ ANT1:
|
||||
PrimaryWeapon: Mandible
|
||||
RenderInfantry:
|
||||
Image: ANT1
|
||||
-SquishByTank:
|
||||
-Passenger:
|
||||
|
||||
ANT2:
|
||||
@@ -198,7 +196,6 @@ ANT2:
|
||||
PrimaryWeapon: FireballLauncher
|
||||
RenderInfantry:
|
||||
Image: ANT2
|
||||
-SquishByTank:
|
||||
-Passenger:
|
||||
|
||||
ANT3:
|
||||
@@ -218,5 +215,4 @@ ANT3:
|
||||
PrimaryWeapon: TeslaZap
|
||||
RenderInfantry:
|
||||
Image: ANT3
|
||||
-SquishByTank:
|
||||
-Passenger:
|
||||
@@ -22,7 +22,6 @@
|
||||
MovementType: Foot
|
||||
Selectable:
|
||||
RenderInfantry:
|
||||
SquishByTank:
|
||||
AutoTarget:
|
||||
Passenger:
|
||||
HiddenUnderFog:
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
MovementType: Foot
|
||||
Selectable:
|
||||
RenderInfantry:
|
||||
SquishByTank:
|
||||
AutoTarget:
|
||||
Passenger:
|
||||
HiddenUnderFog:
|
||||
|
||||
Reference in New Issue
Block a user