From 1a3d3cd31ec9485aee1b59220487c4b0c641a47e Mon Sep 17 00:00:00 2001 From: dnqbob Date: Wed, 1 May 2024 16:00:48 +0800 Subject: [PATCH] Add Firestrom generator (incomplete) --- mods/ts/languages/rules/en.ftl | 4 ++ mods/ts/rules/gdi-structures.yaml | 56 ++++++++++++++++++++++++++ mods/ts/sequences/structures.yaml | 67 +++++++++++++++++++++++++++++++ 3 files changed, 127 insertions(+) diff --git a/mods/ts/languages/rules/en.ftl b/mods/ts/languages/rules/en.ftl index 0258900deb..70891ae04b 100644 --- a/mods/ts/languages/rules/en.ftl +++ b/mods/ts/languages/rules/en.ftl @@ -351,6 +351,10 @@ actor-gaplug = .produceactorpower-name = Hunter Seeker .produceactorpower-description = Releases a drone that will acquire and destroy an enemy target. +actor-gafire = + .name = Firestrom Generator + .description = Building that grants access to Firestrom device. + actor-gaplug-socket-ioncannon-name = GDI Upgrade Center socket actor-gaplug-socket-hunterseeker-name = GDI Upgrade Center socket diff --git a/mods/ts/rules/gdi-structures.yaml b/mods/ts/rules/gdi-structures.yaml index 1bb9cd1d86..e97975d8a7 100644 --- a/mods/ts/rules/gdi-structures.yaml +++ b/mods/ts/rules/gdi-structures.yaml @@ -760,3 +760,59 @@ GAPLUG4: Type: plug.droppod Power: Amount: -20 + +GAFIRE: + Inherits: ^Building + Inherits@IDISABLE: ^DisableOnLowPowerOrPowerDown + Inherits@SHAPE: ^3x2Shape + Buildable: + BuildPaletteOrder: 190 + Prerequisites: proc, gatech, ~structures.gdi, ~techlevel.superweapons + Queue: Building + Description: actor-gafire.description + Valued: + Cost: 1500 + Tooltip: + Name: actor-gafire.name + Building: + Footprint: xxx xxx + Dimensions: 3,2 + RevealsShroud: + Range: 6c0 + MaxHeightDelta: 3 + Health: + HP: 100000 + WithIdleOverlay@lights: + RequiresCondition: !build-incomplete + Sequence: idle-lights + Palette: player-nobright + IsPlayerPalette: true + WithIdleOverlay@lights-bright: + RequiresCondition: !build-incomplete && !empdisable && !disabled + Sequence: idle-lights-bright + Palette: bright + WithSwitchableOverlay@active-nobright: + RequiresCondition: !build-incomplete + EnabledSequence: active + SwitchingSequence: switching + DisabledSequence: disabled + PauseOnCondition: empdisable || disabled + Palette: player-nobright + IsPlayerPalette: true + SwitchingLevel: 20 + SwitchingLevelOnSpawn: 20 + WithSwitchableOverlay@active-bright: + RequiresCondition: !build-incomplete + EnabledSequence: active-bright + PauseOnCondition: empdisable || disabled + Palette: bright + IsDecoration: true + SwitchingLevel: 20 + SwitchingLevelOnSpawn: 20 + Power: + Amount: -100 + ProvidesPrerequisite@buildingname: + RequiresBuildableArea: + AreaTypes: building + MustBeDestroyed: + RequiredForShortGame: false diff --git a/mods/ts/sequences/structures.yaml b/mods/ts/sequences/structures.yaml index 02e74ade65..65e3dcc391 100644 --- a/mods/ts/sequences/structures.yaml +++ b/mods/ts/sequences/structures.yaml @@ -3149,3 +3149,70 @@ gaplug4: Tick: 120 icon: Filename: rad1icon.shp + +gafire: + Defaults: + TilesetFilenames: + TEMPERATE: gtfire.shp + SNOW: gafire.shp + Offset: -12, -30, 30 + idle: + ShadowStart: 3 + damaged-idle: + Start: 1 + ShadowStart: 4 + dead: + Start: 2 + ShadowStart: 5 + Tick: 400 + active-bright: + TilesetFilenames: + TEMPERATE: gtfire_b.shp + SNOW: gafire_b.shp + Length: 16 + IgnoreWorldTint: True + active: + TilesetFilenames: + TEMPERATE: gtfire_a.shp + SNOW: gafire_a.shp + Start: 19 + disabled: + TilesetFilenames: + TEMPERATE: gtfire_a.shp + SNOW: gafire_a.shp + Start: 0 + switching: + TilesetFilenames: + TEMPERATE: gtfire_a.shp + SNOW: gafire_a.shp + Length: 20 + idle-lights: + TilesetFilenames: + TEMPERATE: gtfire_c.shp + SNOW: gafire_c.shp + Length: 6 + Tick: 200 + idle-lights-bright: + TilesetFilenames: + TEMPERATE: gtfire_c.shp + SNOW: gafire_c.shp + Length: 6 + Tick: 240 + IgnoreWorldTint: True + make: + TilesetFilenames: + TEMPERATE: gtfiremk.shp + SNOW: gafiremk.shp + Length: 15 + ShadowStart: 17 + emp-overlay: + Filename: emp_fx01.shp + TilesetFilenames: + Length: * + Offset: 0, 0 + ZOffset: 512 + IgnoreWorldTint: True + icon: + Filename: fsdicon.shp + TilesetFilenames: + Offset: 0, 0