Added Gates

FIXUP: account for full gate footprint when updating neighbours.

FIXUP: gate-wall connection adjacency yaml.
This commit is contained in:
teees
2015-11-16 14:33:05 +01:00
parent 3d597c7880
commit 65e1e301f4
12 changed files with 464 additions and 4 deletions

View File

@@ -750,3 +750,52 @@
Inherits: ^TerrainOverlay
CustomSelectionSize:
CustomBounds: 220,220
^Gate:
Inherits: ^Building
Valued:
Cost: 250
Health:
HP: 350
Armor:
Type: Heavy
LineBuildNode:
Types: wall, gate
-Building:
-Capturable:
-GivesBuildableArea:
-MustBeDestroyed:
-WithSpriteBody:
WithGateSpriteBody:
Power:
CanPowerDown:
IndicatorPalette: mouse
Tooltip:
Description: Automated barrier that opens for allied units.
Gate:
Adjacent: 4
BuildSounds: place2.aud
OpeningSound: gateup1.aud
ClosingSound: gatedwn1.aud
TerrainTypes: Clear, Rough, Road, DirtRoad, Green, Sand, Pavement
BlocksProjectilesHeight: 640
^Gate_A:
Inherits: ^Gate
Gate:
Dimensions: 3,1
Footprint: xxx
WithGateSpriteBody:
WallConnections: -1,0, 3,0
LineBuildNode:
Connections: -1,0, 1,0
^Gate_B:
Inherits: ^Gate
Gate:
Dimensions: 1,3
Footprint: x x x
WithGateSpriteBody:
WallConnections: 0,-1, 0,3
LineBuildNode:
Connections: 0,-1, 0,1