husks should not be mobile

This commit is contained in:
Chris Forbes
2010-05-16 16:30:49 +12:00
parent 128f12e88e
commit 7e754a5590
5 changed files with 46 additions and 33 deletions

22
OpenRA.Mods.RA/Husk.cs Normal file
View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenRA.Traits;
namespace OpenRA.Mods.RA
{
class HuskInfo : ITraitInfo { public object Create(Actor self) { return new Husk(self); } }
class Husk : IOccupySpace
{
Actor self;
public Husk(Actor self)
{
this.self = self;
self.World.WorldActor.traits.Get<UnitInfluence>().Add(self, this);
}
public IEnumerable<int2> OccupiedCells() { yield return self.Location; }
}
}

View File

@@ -63,6 +63,7 @@
<Compile Include="Effects\NukeLaunch.cs" />
<Compile Include="Activities\Harvest.cs" />
<Compile Include="Harvester.cs" />
<Compile Include="Husk.cs" />
<Compile Include="LeavesHusk.cs" />
<Compile Include="OreRefinery.cs" />
<Compile Include="ChronoshiftPaletteEffect.cs" />

View File

@@ -87,3 +87,21 @@
Building:
Footprint: x
Dimensions: 1,1
^Husk:
Category: Vehicle
Unit:
ROT: 0
Speed: 0
HP: 140
Armor: Heavy
Husk:
Selectable:
Priority: -1
Repairable:
Chronoshiftable:
Passenger:
IronCurtainable:
HiddenUnderFog:
RevealsShroud:
Burns:

View File

@@ -1,6 +1,6 @@
Player:
ProductionQueue:
BuildSpeed: .4
BuildSpeed: .04
LowPowerSlowdown: 3
PlaceBuilding:
GpsPower:

View File

@@ -670,77 +670,49 @@ U2:
-Selectable:
1TNK.Husk:
Inherits: ^Vehicle
Inherits: ^Husk
Valued:
Description: Husk (Light Tank)
Unit:
HP: 140
Armor: heavy
ROT: 0
RenderUnit:
Image: 1tnk
Selectable:
Priority: -1
ThrowsParticle@turret:
Anim: turret
Spread: 3,3
Speed: 6
AnimKey: turret
Burns:
2TNK.Husk:
Inherits: ^Vehicle
Inherits: ^Husk
Valued:
Description: Husk (Medium Tank)
Unit:
HP: 140
Armor: heavy
ROT: 0
RenderUnit:
Image: 2tnk
Selectable:
Priority: -1
ThrowsParticle@turret:
Anim: turret
Spread: 3,3
Speed: 6
AnimKey: turret
Burns:
3TNK.Husk:
Inherits: ^Vehicle
Inherits: ^Husk
Valued:
Description: Husk (Heavy Tank)
Unit:
HP: 140
Armor: heavy
ROT: 0
RenderUnit:
Image: 3tnk
Selectable:
Priority: -1
ThrowsParticle@turret:
Anim: turret
Spread: 3,3
Speed: 6
AnimKey: turret
Burns:
4TNK.Husk:
Inherits: ^Vehicle
Inherits: ^Husk
Valued:
Description: Husk (Mammoth Tank)
Unit:
HP: 140
Armor: heavy
ROT: 0
RenderUnit:
Image: 4tnk
Selectable:
Priority: -1
ThrowsParticle@turret:
Anim: turret
Spread: 3,3
Speed: 6
AnimKey: turret
Burns: