From fe2c0b3b0808b1ab18073711ca7a891062ed59c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matija=20Husti=C4=87?= Date: Fri, 3 Jul 2015 02:14:09 +0100 Subject: [PATCH] RA Upgrade YAMLs. --- mods/ra/rules/aircraft.yaml | 8 ++++++++ mods/ra/rules/infantry.yaml | 14 ++++++++++++++ mods/ra/rules/misc.yaml | 12 ++++++++++++ mods/ra/rules/structures.yaml | 20 ++++++++++++++++++++ mods/ra/rules/vehicles.yaml | 24 ++++++++++++++++++++++++ 5 files changed, 78 insertions(+) diff --git a/mods/ra/rules/aircraft.yaml b/mods/ra/rules/aircraft.yaml index 574e4bd83e..792c1c43f7 100644 --- a/mods/ra/rules/aircraft.yaml +++ b/mods/ra/rules/aircraft.yaml @@ -121,6 +121,8 @@ MIG: SmokeTrailWhenDamaged: Offset: -853,0,171 Interval: 2 + ProduceableWithLevel: + Prerequisites: aircraft.upgraded YAK: Inherits: ^Plane @@ -176,6 +178,8 @@ YAK: SmokeTrailWhenDamaged: Offset: -853,0,0 Interval: 2 + ProduceableWithLevel: + Prerequisites: aircraft.upgraded TRAN: Inherits: ^Helicopter @@ -261,6 +265,8 @@ HELI: HuskActor: HELI.Husk SmokeTrailWhenDamaged: Offset: -427,0,0 + ProduceableWithLevel: + Prerequisites: aircraft.upgraded HIND: Inherits: ^Helicopter @@ -312,6 +318,8 @@ HIND: HuskActor: HIND.Husk SmokeTrailWhenDamaged: Offset: -427,0,0 + ProduceableWithLevel: + Prerequisites: aircraft.upgraded U2: Inherits: ^Plane diff --git a/mods/ra/rules/infantry.yaml b/mods/ra/rules/infantry.yaml index 88f2796956..30c8209a5f 100644 --- a/mods/ra/rules/infantry.yaml +++ b/mods/ra/rules/infantry.yaml @@ -67,6 +67,8 @@ E1: AttackFrontal: WithInfantryBody: AttackSequence: shoot + ProduceableWithLevel: + Prerequisites: barracks.upgraded E2: Inherits: ^Soldier @@ -98,6 +100,8 @@ E2: Explodes: Weapon: UnitExplodeSmall Chance: 50 + ProduceableWithLevel: + Prerequisites: barracks.upgraded E3: Inherits: ^Soldier @@ -125,6 +129,8 @@ E3: AttackFrontal: WithInfantryBody: AttackSequence: shoot + ProduceableWithLevel: + Prerequisites: barracks.upgraded E4: Inherits: ^Soldier @@ -150,6 +156,8 @@ E4: AttackFrontal: WithInfantryBody: AttackSequence: shoot + ProduceableWithLevel: + Prerequisites: barracks.upgraded E6: Inherits: ^Soldier @@ -275,6 +283,8 @@ E7: AnnounceOnKill: Voiced: VoiceSet: TanyaVoice + ProduceableWithLevel: + Prerequisites: barracks.upgraded MEDI: Inherits: ^Soldier @@ -475,6 +485,8 @@ SHOK: AttackSequence: shoot Voiced: VoiceSet: ShokVoice + ProduceableWithLevel: + Prerequisites: barracks.upgraded SNIPER: Inherits: ^Soldier @@ -514,6 +526,8 @@ SNIPER: DetectCloaked: Range: 6 -MustBeDestroyed: + ProduceableWithLevel: + Prerequisites: barracks.upgraded Zombie: Inherits: ^Soldier diff --git a/mods/ra/rules/misc.yaml b/mods/ra/rules/misc.yaml index fda155b240..d819bd251f 100644 --- a/mods/ra/rules/misc.yaml +++ b/mods/ra/rules/misc.yaml @@ -355,6 +355,18 @@ powerproxy.paratroopers: DisplayBeacon: true BeaconPoster: pinficon +barracks.upgraded: + AlwaysVisible: + ProvidesPrerequisite: + +vehicles.upgraded: + AlwaysVisible: + ProvidesPrerequisite: + +aircraft.upgraded: + AlwaysVisible: + ProvidesPrerequisite: + mpspawn: AlwaysVisible: Immobile: diff --git a/mods/ra/rules/structures.yaml b/mods/ra/rules/structures.yaml index bd4f760f69..ca16968f52 100644 --- a/mods/ra/rules/structures.yaml +++ b/mods/ra/rules/structures.yaml @@ -854,6 +854,10 @@ WEAP: Power: Amount: -30 ProvidesPrerequisite@buildingname: + TargetableBuilding: + TargetTypes: Ground, C4, DetonateAttack, Structure, SpyInfiltrate + InfiltrateForSupportPower: + Proxy: vehicles.upgraded FACT: Inherits: ^Building @@ -1079,6 +1083,10 @@ HPAD: RequiresPrerequisites: structures.germany Prerequisite: aircraft.germany ProvidesPrerequisite@buildingname: + TargetableBuilding: + TargetTypes: Ground, C4, DetonateAttack, Structure, SpyInfiltrate + InfiltrateForSupportPower: + Proxy: aircraft.upgraded AFLD: Inherits: ^Building @@ -1184,6 +1192,10 @@ AFLD: Power: Amount: -20 ProvidesPrerequisite@buildingname: + TargetableBuilding: + TargetTypes: Ground, C4, DetonateAttack, Structure, SpyInfiltrate + InfiltrateForSupportPower: + Proxy: aircraft.upgraded POWR: Inherits: ^Building @@ -1351,6 +1363,10 @@ BARR: Power: Amount: -20 ProvidesPrerequisite@buildingname: + InfiltrateForSupportPower: + Proxy: barracks.upgraded + TargetableBuilding: + TargetTypes: Ground, C4, DetonateAttack, Structure, SpyInfiltrate KENN: Inherits: ^Building @@ -1454,6 +1470,10 @@ TENT: Power: Amount: -20 ProvidesPrerequisite@buildingname: + InfiltrateForSupportPower: + Proxy: barracks.upgraded + TargetableBuilding: + TargetTypes: Ground, C4, DetonateAttack, Structure, SpyInfiltrate FIX: Inherits: ^Building diff --git a/mods/ra/rules/vehicles.yaml b/mods/ra/rules/vehicles.yaml index e2f193502e..8c018e3bc3 100644 --- a/mods/ra/rules/vehicles.yaml +++ b/mods/ra/rules/vehicles.yaml @@ -29,6 +29,8 @@ V2RL: WithAttackAnimation: AimSequence: aim ReloadPrefix: empty- + ProduceableWithLevel: + Prerequisites: vehicles.upgraded 1TNK: Inherits: ^Tank @@ -67,6 +69,8 @@ V2RL: EmptyWeapon: UnitExplodeSmall LeavesHusk: HuskActor: 1TNK.Husk + ProduceableWithLevel: + Prerequisites: vehicles.upgraded 2TNK: Inherits: ^Tank @@ -107,6 +111,8 @@ V2RL: HuskActor: 2TNK.Husk SelectionDecorations: VisualBounds: 28,28 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded 3TNK: Inherits: ^Tank @@ -147,6 +153,8 @@ V2RL: HuskActor: 3TNK.Husk SelectionDecorations: VisualBounds: 28,28 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded 4TNK: Inherits: ^Tank @@ -201,6 +209,8 @@ V2RL: DamageCooldown: 150 SelectionDecorations: VisualBounds: 44,38,0,-4 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded ARTY: Inherits: ^Tank @@ -232,6 +242,8 @@ ARTY: Weapon: UnitExplode Chance: 75 AutoTarget: + ProduceableWithLevel: + Prerequisites: vehicles.upgraded HARV: Inherits: ^Vehicle @@ -356,6 +368,8 @@ JEEP: Types: Infantry MaxWeight: 1 PipCount: 1 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded APC: Inherits: ^Tank @@ -388,6 +402,8 @@ APC: Types: Infantry MaxWeight: 5 PipCount: 5 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded MNLY.AP: Inherits: ^Tank @@ -571,6 +587,8 @@ TTNK: SelectionDecorations: VisualBounds: 30,30 AutoTarget: + ProduceableWithLevel: + Prerequisites: vehicles.upgraded FTRK: Inherits: ^Vehicle @@ -606,6 +624,8 @@ FTRK: AutoTarget: SelectionDecorations: VisualBounds: 28,28 + ProduceableWithLevel: + Prerequisites: vehicles.upgraded DTRK: Inherits: ^Vehicle @@ -670,6 +690,8 @@ CTNK: LocalYaw: -100 AttackFrontal: PortableChrono: + ProduceableWithLevel: + Prerequisites: vehicles.upgraded QTNK: Inherits: ^Tank @@ -739,4 +761,6 @@ STNK: DetectCloaked: Range: 6 -MustBeDestroyed: + ProduceableWithLevel: + Prerequisites: vehicles.upgraded