From 1291d1a53dbe7d8bbeca320009034d8bdfa6de5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=83=C2=A4nder?= Date: Thu, 9 Feb 2017 10:46:30 +0100 Subject: [PATCH] Add the custom rules sunrise effect and TW1 units. --- mods/ts/maps/sunstroke/map.yaml | 12 +++---- mods/ts/maps/sunstroke/rules.yaml | 47 +++++++++++++++++++++++++++ mods/ts/maps/sunstroke/sequences.yaml | 5 +++ mods/ts/maps/sunstroke/sunstroke.lua | 9 +++++ 4 files changed, 65 insertions(+), 8 deletions(-) create mode 100644 mods/ts/maps/sunstroke/rules.yaml create mode 100644 mods/ts/maps/sunstroke/sequences.yaml create mode 100644 mods/ts/maps/sunstroke/sunstroke.lua diff --git a/mods/ts/maps/sunstroke/map.yaml b/mods/ts/maps/sunstroke/map.yaml index 5036b899e7..377d2a5784 100644 --- a/mods/ts/maps/sunstroke/map.yaml +++ b/mods/ts/maps/sunstroke/map.yaml @@ -2,7 +2,7 @@ MapFormat: 11 RequiresMod: ts -Title: Sunstroke [2] +Title: Sunstroke Author: Aurora196 @@ -2539,10 +2539,6 @@ Actors: Location: 125,41 Owner: Neutral -Rules: - World: - GlobalLightingPaletteEffect: - Red: 1.6 - Blue: 0.9 - Green: 1.2 - Ambient: 0.3 +Rules: rules.yaml + +Sequences: sequences.yaml \ No newline at end of file diff --git a/mods/ts/maps/sunstroke/rules.yaml b/mods/ts/maps/sunstroke/rules.yaml new file mode 100644 index 0000000000..ec7803f93f --- /dev/null +++ b/mods/ts/maps/sunstroke/rules.yaml @@ -0,0 +1,47 @@ +World: + ElevatedBridgeLayer: + ElevatedBridgePlaceholder@1: + Location: 60, -26 + Height: 5 + Orientation: Y + Length: 8 + ElevatedBridgePlaceholder@2: + Location: 139, -10 + Height: 5 + Orientation: Y + Length: 19 + GlobalLightingPaletteEffect: + Red: 1.6 + Blue: 0.9 + Green: 1.2 + Ambient: 0.3 + LuaScript: + Scripts: sunstroke.lua + +GAOLDCC2: + Capturable: + ProvidesPrerequisite@BuildingName: + +GAOLDCC3: + Capturable: + ProvidesPrerequisite@BuildingName: + +4TNK: + Buildable: + Queue: Vehicle + BuildPaletteOrder: 70 + Prerequisites: ~gaoldcc3 + Description: Heavy tank\nwith double barreled gun. + +SLAV: + Tooltip: + Name: Black Hand Rifleman + Buildable: + Queue: Infantry + BuildPaletteOrder: 70 + Prerequisites: ~gaoldcc2 + Description: Religious loyalist\narmed with sniper rifle. + AttackFrontal: + Voice: Attack + Armament: + Weapon: Sniper \ No newline at end of file diff --git a/mods/ts/maps/sunstroke/sequences.yaml b/mods/ts/maps/sunstroke/sequences.yaml new file mode 100644 index 0000000000..f276e57e97 --- /dev/null +++ b/mods/ts/maps/sunstroke/sequences.yaml @@ -0,0 +1,5 @@ +slav: + icon: xxicon + +4tnk: + icon: xxicon \ No newline at end of file diff --git a/mods/ts/maps/sunstroke/sunstroke.lua b/mods/ts/maps/sunstroke/sunstroke.lua new file mode 100644 index 0000000000..29191c1ee8 --- /dev/null +++ b/mods/ts/maps/sunstroke/sunstroke.lua @@ -0,0 +1,9 @@ +Tick = function() + if (Lighting.Red > 1.5) then + Lighting.Red = Lighting.Red - 0.001 + end + + if (Lighting.Ambient < 0.5) then + Lighting.Ambient = Lighting.Ambient + 0.001 + end +end