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