Skip to content

Commit

Permalink
Testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
PunkPun committed Mar 20, 2023
1 parent 673a638 commit b5903c6
Show file tree
Hide file tree
Showing 3 changed files with 134 additions and 0 deletions.
81 changes: 81 additions & 0 deletions mods/ra/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1331,6 +1331,87 @@ PROC:
PipCount: 17
FullSequence: pip-yellow

PROC2:
Inherits: ^Building
Buildable:
Queue: Building
BuildPaletteOrder: 60
Prerequisites: anypower, ~techlevel.infonly
Description: Refines Ore and Gems\ninto credits.
Valued:
Cost: 1400
Tooltip:
Name: Dank refinery
Building:
Footprint: x++++x ++++++ ++++++ ++++++ ++++++ x++++x
Dimensions: 6,6
Selectable:
Bounds: 5802, 2900, 0, 256
DecorationBounds: 6144, 4096
Targetable:
TargetTypes: GroundActor, Structure, C4, DetonateAttack, ThiefInfiltrate, SpyInfiltrate
Health:
HP: 90000
Armor:
Type: Wood
RevealsShroud:
MinRange: 4c0
Range: 5c0
RevealGeneratedShroud: False
RevealsShroud@GAPGEN:
Range: 4c0
Refinery:
DockHost@1:
Type: UnloadStealth
DockAngle: 256
DockOffset: 1, 1c1, 0
MaxQueueLength: 2
DockHost@2:
Type: UnloadStealth
DockAngle: 256
DockOffset: -1, -2c1, 0
MaxQueueLength: 2
DockHost@3:
Type: Unload
DockAngle: 256
DockOffset: 2c1, 1, 0
MaxQueueLength: 2
DockHost@4:
Type: Unload
DockAngle: 256
DockOffset: -2c1, -1, 0
MaxQueueLength: 2
StoresResources:
Capacity: 2000
CustomSellValue:
Value: 300
FreeActor@1:
Actor: HARV2
SpawnOffset: 0,0
Facing: 256
FreeActor@2:
Actor: HARV
SpawnOffset: 5,0
Facing: 256
FreeActor@3:
Actor: HARV
SpawnOffset: 0,5
Facing: 256
FreeActor@4:
Actor: HARV2
SpawnOffset: 5,5
Facing: 256
WithBuildingBib:
HasMinibib: true
Power:
Amount: -30
HitShape:
TargetableOffsets: 840,0,0, 598,-640,0, 598,640,0, -1060,0,0, -768,-640,0, -768,640,0
Type: Polygon
Points: -1536,-300, -640,-811, 640,-811, 1536,-300, 1536,555, 640,1110, -640,1110, -1536,555
RenderSprites:
Image: fix2

SILO:
Inherits: ^Building
Selectable:
Expand Down
14 changes: 14 additions & 0 deletions mods/ra/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,20 @@ HARV:
Ore: pip-yellow
Gems: pip-red

HARV2:
Inherits: HARV
Harvester:
Type: UnloadStealth
Cloak:
InitialDelay: 10
CloakDelay: 10
CloakSound: appear1.aud
UncloakSound: appear1.aud
IsPlayerPalette: true
UncloakOn: Attack, Unload, Heal, Dock
RenderSprites:
Image: harv

MCV:
Inherits: ^Vehicle
Inherits@selection: ^SelectableSupportUnit
Expand Down
39 changes: 39 additions & 0 deletions mods/ra/sequences/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,45 @@ fix:
fake-icon:
Filename: fixficon.shp

fix2:
Defaults:
Filename: fix.shp
Scale: 2
idle:
Offset: 0,1
ZOffset: -1c511
damaged-idle:
Start: 7
Offset: 0,1
ZOffset: -1c511
active:
Start: 1
Length: 6
Offset: 0,1
ZOffset: -1c511
damaged-active:
Start: 8
Length: 6
Offset: 0,1
ZOffset: -1c511
make:
Filename: fixmake.shp
Length: *
Offset: 0,1
bib:
TilesetFilenames:
SNOW: mbFIX.sno
INTERIOR: mbFIX.int
TEMPERAT: mbFIX.tem
DESERT: mbFIX.des
Length: *
ZOffset: -1c511
Offset: 0,-4
icon:
Filename: fixicon.shp
fake-icon:
Filename: fixficon.shp

gun:
Defaults:
Filename: gun.shp
Expand Down

0 comments on commit b5903c6

Please sign in to comment.