Skip to content

Commit

Permalink
barracks
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickwieth committed Jan 25, 2025
1 parent 798eb80 commit 069b735
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
Binary file added mods/ca/bits/china/chinabarracks.shp
Binary file not shown.
17 changes: 7 additions & 10 deletions mods/ca/rules/china/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,12 @@ chpower2:

chbarracks:
Inherits: ^BuildingChina
Inherits@shape: ^3x2Shape
Inherits@PRIMARY: ^PrimaryBuilding
Inherits@InfantryProduction: ^InfantryProduction
Inherits@mines: ^MinefieldUpgrade
Inherits: ^2x2Building+Bib
Inherits: ^PrimaryBuilding
Inherits: ^InfantryProduction
Inherits: ^MinefieldUpgrade
RenderSprites:
PlayerPalette: overlayplayer
Valued:
Cost: 500
Tooltip:
Expand All @@ -229,19 +231,14 @@ chbarracks:
Prerequisites: anypower, ~structures.china
Queue: Building
Description: Trains infantry.
Building:
Footprint: xxx xxx ===
Dimensions: 3,3
LocalCenterOffset: 0,-512,0
Health:
HP: 60000
RevealsShroud:
MinRange: 4c0
Range: 5c0
RevealGeneratedShroud: False
RevealGeneratedShrou: False
RevealsShroud@GAPGEN:
Range: 4c0
WithBuildingBib:
LaysMinefield@minefield:
Locations: 0,-1, 1,-1, 2,-1, -1,0, -1,1, 3,0, 3,1, 0,2, 1,2, 2,2
Exit@1:
Expand Down
8 changes: 8 additions & 0 deletions mods/ca/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,14 @@
Selectable:
Bounds: 2048, 2048

^2x2Building+Bib:
Inherits: ^2x2Shape
Building:
Footprint: xx xx ==
Dimensions: 2,3
LocalCenterOffset: 0,-512,0
WithBuildingBib:

^3x2Shape:
HitShape:
UseTargetableCellsOffsets: true
Expand Down
10 changes: 3 additions & 7 deletions mods/ca/sequences/china.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,14 @@ chpower:

chbarracks:
Inherits: ^StructureOverlays
Inherits: ^LowResBuilding
idle:
damaged-idle:
Start: 1
dead:
idle: chinabarracks
make: chbuildingmakebig
Length: *
bib: bib2
bib: bib3
Length: *
UseTilesetExtension: true
TilesetOverrides:
INTERIOR: TEMPERAT
Length: *
icon: chbarracksicon

chsupply:
Expand Down

0 comments on commit 069b735

Please sign in to comment.