From d5cbf82889b0f2fca9a73e1043c160261fddcd4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Mon, 6 Apr 2015 14:12:38 +0200 Subject: [PATCH] add the Tiberian Sun crates --- mods/ts/rules/defaults.yaml | 17 +++++++++++++++ mods/ts/rules/misc.yaml | 43 +++++++++++++++++++++++++++++++++++++ mods/ts/rules/world.yaml | 6 ++++++ mods/ts/sequences/misc.yaml | 8 ++++++- 4 files changed, 73 insertions(+), 1 deletion(-) diff --git a/mods/ts/rules/defaults.yaml b/mods/ts/rules/defaults.yaml index cc47de8b8e..fb28cc3d17 100644 --- a/mods/ts/rules/defaults.yaml +++ b/mods/ts/rules/defaults.yaml @@ -97,6 +97,23 @@ EditorTilesetFilter: RequireTilesets: TEMPERAT +^Crate: + Tooltip: + Name: Crate + Crate: + Lifetime: 180 + TerrainTypes: Clear, Rough, Road, DirtRoad, Tiberium, BlueTiberium + RenderSprites: + Palette: terrain + WithCrateBody: + Images: crate + Selectable: + Selectable: false + Bounds: 25,25,-1,-1 + ProximityCaptor: + Types: Crate + BodyOrientation: + ^Wall: AppearsOnRadar: Building: diff --git a/mods/ts/rules/misc.yaml b/mods/ts/rules/misc.yaml index d7a4867496..a9dd3d0d0d 100644 --- a/mods/ts/rules/misc.yaml +++ b/mods/ts/rules/misc.yaml @@ -38,6 +38,49 @@ CAMERA: DetectCloaked: Range: 10 +CRATE: + Inherits: ^Crate + GiveCashCrateAction: + Amount: 1000 + SelectionShares: 50 + Effect: dollar + UseCashTick: true + LevelUpCrateAction: + SelectionShares: 40 + Effect: levelup + HideMapCrateAction: + SelectionShares: 5 + Effect: hide-map + HealUnitsCrateAction: + SelectionShares: 2 + Effect: heal + RevealMapCrateAction: + SelectionShares: 1 + Effect: reveal-map + GiveMcvCrateAction: + SelectionShares: 2 + NoBaseSelectionShares: 100 + Units: mcv + GrantUpgradeCrateAction@cloak: + SelectionShares: 5 + Effect: stealth + Upgrades: cloakgenerator + Notification: cloak5.aud + GrantUpgradeCrateAction@firepower: + SelectionShares: 5 + Effect: firepower + Upgrades: firepower + Notification: 00-i070.aud + GrantUpgradeCrateAction@armor: + SelectionShares: 5 + Effect: armor + Upgrades: damage + Notification: 00-i068.aud + GrantUpgradeCrateAction@speed: + SelectionShares: 5 + Upgrades: speed + Notification: 00-i080.aud + SROCK01: Inherits: ^Rock diff --git a/mods/ts/rules/world.yaml b/mods/ts/rules/world.yaml index 28c4ba49ab..c9abe6a0f7 100644 --- a/mods/ts/rules/world.yaml +++ b/mods/ts/rules/world.yaml @@ -218,6 +218,12 @@ World: OuterSupportRadius: 5 MPStartLocations: SpawnMPUnits: + CrateSpawner: + Minimum: 1 + Maximum: 6 + SpawnInterval: 120 + WaterChance: 0 + ValidGround: Clear, Rough, Road, DirtRoad, Tiberium, BlueTiberium PathFinder: ValidateOrder: DebugPauseState: diff --git a/mods/ts/sequences/misc.yaml b/mods/ts/sequences/misc.yaml index 0cfbb06d39..508cd4213d 100644 --- a/mods/ts/sequences/misc.yaml +++ b/mods/ts/sequences/misc.yaml @@ -37,13 +37,19 @@ beacon: Length: 12 BlendMode: Additive +crate: + idle: + ShadowStart: 1 + UseTilesetExtension: true + Offset: 0, -10 + crate-effects: Defaults: Length: * dollar: money reveal-map: reveal hide-map: shroudx - fpower: firepowr + firepower: firepowr armor: armor stealth: cloak heal: healall