Skip to content

Commit

Permalink
Fix lint warnings and spain missile limit problem
Browse files Browse the repository at this point in the history
  • Loading branch information
MustaphaTR committed Jul 13, 2018
1 parent 954d371 commit 729412e
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 43 deletions.
9 changes: 6 additions & 3 deletions mods/raclassic/rules/aircraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,6 @@ TRAN:
HELI:
Inherits: ^Helicopter
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 125
Buildable:
Queue: Aircraft
BuildAtProductionType: Helicopter
Expand All @@ -275,6 +272,12 @@ HELI:
Weapon: Hellfire
LocalOffset: 0,-213,-85, 0,213,-85
PauseOnCondition: !ammo
RequiresCondition: !spain
Armament@SPAIN:
Weapon: Hellfire.spain
LocalOffset: 0,-213,-85, 0,213,-85
PauseOnCondition: !ammo
RequiresCondition: spain
AttackHeli:
FacingTolerance: 20
Aircraft:
Expand Down
6 changes: 3 additions & 3 deletions mods/raclassic/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@
SpeedMultiplier@Ukraine:
RequiresCondition: ukraine
Modifier: 110
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 100
GrantConditionOnPrerequisite@England:
Condition: england
Prerequisites: player.england
Expand All @@ -65,9 +68,6 @@
GrantConditionOnPrerequisite@Spain:
Condition: spain
Prerequisites: player.spain
GrantConditionOnPrerequisite@Greece:
Condition: greece
Prerequisites: player.greece
GrantConditionOnPrerequisite@Ukraine:
Condition: ukraine
Prerequisites: player.ukraine
Expand Down
46 changes: 23 additions & 23 deletions mods/raclassic/rules/misc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -414,29 +414,29 @@ powerproxy.sonarpulse.crate:
EffectImage: moveflsh
EffectPalette: moveflash

powerproxy.abomb:
AlwaysVisible:
NukePower:
Cursor: nuke
Icon: abomb
ChargeInterval: 19500
Description: Atom Bomb
LongDesc: Launches a devastating atomic bomb\nat a target location.
OneShot: true
AllowMultiple: true
SelectTargetSpeechNotification: SelectTarget
IncomingSpeechNotification: AbombLaunchDetected
SkipAscent: true
MissileWeapon: atomic
DisplayBeacon: True
DisplayRadarPing: True
BeaconPoster: atomicon
FlashType: Nuke
CameraRange: 10c0
ArrowSequence: arrow
ClockSequence: clock
CircleSequence: circles
WithNukeLaunchAnimation:
# powerproxy.abomb:
# AlwaysVisible:
# NukePower:
# Cursor: nuke
# Icon: abomb
# ChargeInterval: 19500
# Description: Atom Bomb
# LongDesc: Launches a devastating atomic bomb\nat a target location.
# OneShot: true
# AllowMultiple: true
# SelectTargetSpeechNotification: SelectTarget
# IncomingSpeechNotification: AbombLaunchDetected
# SkipAscent: true
# MissileWeapon: atomic
# DisplayBeacon: True
# DisplayRadarPing: True
# BeaconPoster: atomicon
# FlashType: Nuke
# CameraRange: 10c0
# ArrowSequence: arrow
# ClockSequence: clock
# CircleSequence: circles
# WithNukeLaunchAnimation:

powerproxy.paratroopers:
AlwaysVisible:
Expand Down
9 changes: 6 additions & 3 deletions mods/raclassic/rules/ships.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ SS:
MSUB:
Inherits: ^Ship
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 107
Buildable:
Queue: Ship
BuildAtProductionType: Submarine
Expand Down Expand Up @@ -115,6 +112,12 @@ MSUB:
Weapon: SubSCUD
LocalOffset: 0,-171,0, 0,171,0
FireDelay: 2
RequiresCondition: !spain
Armament@SPAIN:
Weapon: SubSCUD.spain
LocalOffset: 0,-171,0, 0,171,0
FireDelay: 2
RequiresCondition: spain
AttackFrontal:
SelectionDecorations:
AutoTarget:
Expand Down
9 changes: 6 additions & 3 deletions mods/raclassic/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,6 @@ SAM:
Type: Rectangle
TopLeft: -768,-512
BottomRight: 768,512
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 113
Buildable:
Queue: Building
BuildDuration: 750
Expand Down Expand Up @@ -734,6 +731,12 @@ SAM:
Weapon: Nike
LocalOffset: 0,0,320
MuzzleSequence: muzzle
RequiresCondition: !spain
Armament@SPAIN:
Weapon: Nike.spain
LocalOffset: 0,0,320
MuzzleSequence: muzzle
RequiresCondition: spain
AttackTurreted:
WithMuzzleOverlay:
RenderRangeCircle:
Expand Down
23 changes: 17 additions & 6 deletions mods/raclassic/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,6 @@ CTNK:
Inherits@TRACK: ^TrackedVehicle
Inherits@CRUSH: ^CrusherVehicle
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 114
Buildable:
Queue: Vehicle
BuildDuration: 2400
Expand All @@ -753,10 +750,22 @@ CTNK:
Weapon: APTusk
LocalOffset: -160,-276,232
LocalYaw: 60
RequiresCondition: !spain
Armament@SECONDARY:
Weapon: APTusk
LocalOffset: -160,276,232
LocalYaw: -60
RequiresCondition: !spain
Armament@PRIMARY_SPAIN:
Weapon: APTusk.spain
LocalOffset: -160,-276,232
LocalYaw: 60
RequiresCondition: spain
Armament@SECONDARY_SPAIN:
Weapon: APTusk.spain
LocalOffset: -160,276,232
LocalYaw: -60
RequiresCondition: spain
AttackFrontal:
PortableChrono:
ChargeDelay: 300
Expand Down Expand Up @@ -811,9 +820,6 @@ STNK:
Inherits@TRACK: ^TrackedVehicle
Inherits@CRUSH: ^CrusherVehicle
Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove
RangeMultiplier@Spain:
RequiresCondition: spain
Modifier: 114
Buildable:
Queue: Vehicle
BuildDuration: 800
Expand Down Expand Up @@ -844,6 +850,11 @@ STNK:
Armament:
Weapon: APTusk
LocalOffset: 192,0,176
RequiresCondition: !spain
Armament@SPAIN:
Weapon: APTusk.spain
LocalOffset: 192,0,176
RequiresCondition: spain
Turreted:
TurnSpeed: 5
AttackTurreted:
Expand Down
42 changes: 40 additions & 2 deletions mods/raclassic/weapons/missiles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ Dragon:

Dragon.spain:
Inherits: Dragon
Projectile: Missile
RangeLimit: 7c0
Range: 6c0

Hellfire:
Expand All @@ -88,6 +90,12 @@ Hellfire:
Light: 75
Concrete: 50

Hellfire.spain:
Inherits: Hellfire
Projectile: Missile
RangeLimit: 6c512
Range: 5c0

MammothTusk:
Inherits: ^AntiGroundMissile
ReloadDelay: 80
Expand Down Expand Up @@ -119,6 +127,8 @@ MammothTusk:

MammothTusk.spain:
Inherits: MammothTusk
Projectile: Missile
RangeLimit: 10c614
Range: 6c0

Nike:
Expand All @@ -145,13 +155,19 @@ Nike:
Explosions: med_explosion_air
ImpactSounds: kaboom25.aud

Nike.spain:
Inherits: Nike
Projectile: Missile
RangeLimit: 10c0
Range: 8c512

RedEye:
Inherits: Nike
ReloadDelay: 50

RedEye.spain:
Inherits: RedEye
Range: 8c512
Inherits: Nike.spain
ReloadDelay: 50

Stinger:
Inherits: ^AntiGroundMissile
Expand All @@ -177,6 +193,8 @@ Stinger:

Stinger.spain:
Inherits: Stinger
Projectile: Missile
RangeLimit: 10c512
Range: 10c0

StingerAA:
Expand All @@ -191,6 +209,8 @@ StingerAA:

StingerAA.spain:
Inherits: StingerAA
Projectile: Missile
RangeLimit: 10c512
Range: 10c0

APTusk:
Expand All @@ -211,6 +231,12 @@ APTusk:
Warhead@3Eff: CreateEffect
Explosions: building

APTusk.spain:
Inherits: APTusk
Projectile: Missile
RangeLimit: 8c204
Range: 6c0

TorpTube:
ReloadDelay: 60
Range: 9c0
Expand Down Expand Up @@ -247,6 +273,12 @@ TorpTube:
ValidTargets: Water
InvalidTargets: Ship, Structure, Underwater, Bridge

TorpTube.spain:
Inherits: TorpTube
Projectile: Missile
RangeLimit: 11c819
Range: 10c0

SubSCUD:
Inherits: ^AntiGroundMissile
ReloadDelay: 120
Expand Down Expand Up @@ -279,6 +311,12 @@ SubSCUD:
Explosions: large_splash
ImpactSounds: splash9.aud

SubSCUD.spain:
Inherits: SubSCUD
Projectile: Missile
RangeLimit: 16c0
Range: 15c0

SCUD:
Inherits: ^AntiGroundMissile
ReloadDelay: 0
Expand Down

0 comments on commit 729412e

Please sign in to comment.