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="Activities\Harvest.cs" />
|
||||
<Compile Include="Harvester.cs" />
|
||||
<Compile Include="Husk.cs" />
|
||||
<Compile Include="LeavesHusk.cs" />
|
||||
<Compile Include="OreRefinery.cs" />
|
||||
<Compile Include="ChronoshiftPaletteEffect.cs" />
|
||||
|
||||
@@ -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:
|
||||
@@ -1,6 +1,6 @@
|
||||
Player:
|
||||
ProductionQueue:
|
||||
BuildSpeed: .4
|
||||
BuildSpeed: .04
|
||||
LowPowerSlowdown: 3
|
||||
PlaceBuilding:
|
||||
GpsPower:
|
||||
|
||||
@@ -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:
|
||||
Reference in New Issue
Block a user