husks should not be mobile
This commit is contained in:
22
OpenRA.Mods.RA/Husk.cs
Normal file
22
OpenRA.Mods.RA/Husk.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -63,6 +63,7 @@
|
|||||||
<Compile Include="Effects\NukeLaunch.cs" />
|
<Compile Include="Effects\NukeLaunch.cs" />
|
||||||
<Compile Include="Activities\Harvest.cs" />
|
<Compile Include="Activities\Harvest.cs" />
|
||||||
<Compile Include="Harvester.cs" />
|
<Compile Include="Harvester.cs" />
|
||||||
|
<Compile Include="Husk.cs" />
|
||||||
<Compile Include="LeavesHusk.cs" />
|
<Compile Include="LeavesHusk.cs" />
|
||||||
<Compile Include="OreRefinery.cs" />
|
<Compile Include="OreRefinery.cs" />
|
||||||
<Compile Include="ChronoshiftPaletteEffect.cs" />
|
<Compile Include="ChronoshiftPaletteEffect.cs" />
|
||||||
|
|||||||
@@ -87,3 +87,21 @@
|
|||||||
Building:
|
Building:
|
||||||
Footprint: x
|
Footprint: x
|
||||||
Dimensions: 1,1
|
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:
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
Player:
|
Player:
|
||||||
ProductionQueue:
|
ProductionQueue:
|
||||||
BuildSpeed: .4
|
BuildSpeed: .04
|
||||||
LowPowerSlowdown: 3
|
LowPowerSlowdown: 3
|
||||||
PlaceBuilding:
|
PlaceBuilding:
|
||||||
GpsPower:
|
GpsPower:
|
||||||
|
|||||||
@@ -670,77 +670,49 @@ U2:
|
|||||||
-Selectable:
|
-Selectable:
|
||||||
|
|
||||||
1TNK.Husk:
|
1TNK.Husk:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Husk
|
||||||
Valued:
|
Valued:
|
||||||
Description: Husk (Light Tank)
|
Description: Husk (Light Tank)
|
||||||
Unit:
|
|
||||||
HP: 140
|
|
||||||
Armor: heavy
|
|
||||||
ROT: 0
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Image: 1tnk
|
Image: 1tnk
|
||||||
Selectable:
|
|
||||||
Priority: -1
|
|
||||||
ThrowsParticle@turret:
|
ThrowsParticle@turret:
|
||||||
Anim: turret
|
Anim: turret
|
||||||
Spread: 3,3
|
Spread: 3,3
|
||||||
Speed: 6
|
Speed: 6
|
||||||
AnimKey: turret
|
AnimKey: turret
|
||||||
Burns:
|
|
||||||
|
|
||||||
2TNK.Husk:
|
2TNK.Husk:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Husk
|
||||||
Valued:
|
Valued:
|
||||||
Description: Husk (Medium Tank)
|
Description: Husk (Medium Tank)
|
||||||
Unit:
|
|
||||||
HP: 140
|
|
||||||
Armor: heavy
|
|
||||||
ROT: 0
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Image: 2tnk
|
Image: 2tnk
|
||||||
Selectable:
|
|
||||||
Priority: -1
|
|
||||||
ThrowsParticle@turret:
|
ThrowsParticle@turret:
|
||||||
Anim: turret
|
Anim: turret
|
||||||
Spread: 3,3
|
Spread: 3,3
|
||||||
Speed: 6
|
Speed: 6
|
||||||
AnimKey: turret
|
AnimKey: turret
|
||||||
Burns:
|
|
||||||
|
|
||||||
3TNK.Husk:
|
3TNK.Husk:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Husk
|
||||||
Valued:
|
Valued:
|
||||||
Description: Husk (Heavy Tank)
|
Description: Husk (Heavy Tank)
|
||||||
Unit:
|
|
||||||
HP: 140
|
|
||||||
Armor: heavy
|
|
||||||
ROT: 0
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Image: 3tnk
|
Image: 3tnk
|
||||||
Selectable:
|
|
||||||
Priority: -1
|
|
||||||
ThrowsParticle@turret:
|
ThrowsParticle@turret:
|
||||||
Anim: turret
|
Anim: turret
|
||||||
Spread: 3,3
|
Spread: 3,3
|
||||||
Speed: 6
|
Speed: 6
|
||||||
AnimKey: turret
|
AnimKey: turret
|
||||||
Burns:
|
|
||||||
|
|
||||||
4TNK.Husk:
|
4TNK.Husk:
|
||||||
Inherits: ^Vehicle
|
Inherits: ^Husk
|
||||||
Valued:
|
Valued:
|
||||||
Description: Husk (Mammoth Tank)
|
Description: Husk (Mammoth Tank)
|
||||||
Unit:
|
|
||||||
HP: 140
|
|
||||||
Armor: heavy
|
|
||||||
ROT: 0
|
|
||||||
RenderUnit:
|
RenderUnit:
|
||||||
Image: 4tnk
|
Image: 4tnk
|
||||||
Selectable:
|
|
||||||
Priority: -1
|
|
||||||
ThrowsParticle@turret:
|
ThrowsParticle@turret:
|
||||||
Anim: turret
|
Anim: turret
|
||||||
Spread: 3,3
|
Spread: 3,3
|
||||||
Speed: 6
|
Speed: 6
|
||||||
AnimKey: turret
|
AnimKey: turret
|
||||||
Burns:
|
|
||||||
Reference in New Issue
Block a user