Add the custom rules

sunrise effect and TW1 units.
This commit is contained in:
Matthias Mailänder
2017-02-09 10:46:30 +01:00
committed by abcdefg30
parent 49d26fd238
commit 1291d1a53d
4 changed files with 65 additions and 8 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -0,0 +1,5 @@
slav:
icon: xxicon
4tnk:
icon: xxicon

View File

@@ -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