diff --git a/mods/ra/rules/defaults.yaml b/mods/ra/rules/defaults.yaml index 571880f1d9..bb801d2b8a 100644 --- a/mods/ra/rules/defaults.yaml +++ b/mods/ra/rules/defaults.yaml @@ -544,6 +544,28 @@ WithFacingSpriteBody: HitShape: +^Submarine: + Inherits: ^Ship + Targetable: + TargetTypes: WaterActor, Ship, Submarine, Repair + RequiresCondition: !underwater + Targetable@UNDERWATER: + TargetTypes: Underwater, Submarine + RequiresCondition: underwater + Cloak: + DetectionTypes: Underwater + InitialDelay: 0 + CloakDelay: 50 + CloakSound: subshow1.aud + UncloakSound: subshow1.aud + CloakedCondition: underwater + Palette: submerged + PauseOnCondition: cloak-force-disabled + GrantConditionOnDamageState@UNCLOAK: + Condition: cloak-force-disabled + ValidDamageStates: Critical + -MustBeDestroyed: + ^NeutralPlane: Inherits@1: ^ExistsInWorld Inherits@4: ^SpriteActor diff --git a/mods/ra/rules/ships.yaml b/mods/ra/rules/ships.yaml index 0d4cb45f2f..7b0b81ea0a 100644 --- a/mods/ra/rules/ships.yaml +++ b/mods/ra/rules/ships.yaml @@ -1,5 +1,5 @@ SS: - Inherits: ^Ship + Inherits: ^Submarine Inherits@AUTOTARGET: ^AutoTargetGroundAssaultMove Buildable: Queue: Ship @@ -26,24 +26,6 @@ SS: RevealGeneratedShroud: False RevealsShroud@GAPGEN: Range: 5c0 - Targetable: - TargetTypes: WaterActor, Ship, Submarine, Repair - RequiresCondition: !underwater - Targetable@UNDERWATER: - TargetTypes: Underwater, Submarine - RequiresCondition: underwater - Cloak: - DetectionTypes: Underwater - InitialDelay: 0 - CloakDelay: 50 - CloakSound: subshow1.aud - UncloakSound: subshow1.aud - CloakedCondition: underwater - Palette: submerged - PauseOnCondition: cloak-force-disabled - GrantConditionOnDamageState@UNCLOAK: - Condition: cloak-force-disabled - ValidDamageStates: Critical Armament: Weapon: TorpTube LocalOffset: 0,-171,0, 0,171,0 @@ -62,12 +44,11 @@ SS: Explodes: Weapon: UnitExplodeSubmarine EmptyWeapon: UnitExplodeSubmarine - -MustBeDestroyed: Selectable: DecorationBounds: 1621, 1621 MSUB: - Inherits: ^Ship + Inherits: ^Submarine Inherits@AUTOTARGET: ^AutoTargetAllAssaultMove Buildable: Queue: Ship @@ -94,24 +75,8 @@ MSUB: RevealGeneratedShroud: False RevealsShroud@GAPGEN: Range: 5c0 - Targetable: - TargetTypes: WaterActor, Ship, Submarine, Repair - RequiresCondition: !underwater - Targetable@UNDERWATER: - TargetTypes: Underwater, Submarine - RequiresCondition: underwater Cloak: - DetectionTypes: Underwater - InitialDelay: 0 CloakDelay: 100 - CloakSound: subshow1.aud - UncloakSound: subshow1.aud - CloakedCondition: underwater - Palette: submerged - PauseOnCondition: cloak-force-disabled - GrantConditionOnDamageState@UNCLOAK: - Condition: cloak-force-disabled - ValidDamageStates: Critical Armament@PRIMARY: Weapon: SubMissile LocalOffset: 0,-171,0, 0,171,0 @@ -134,7 +99,6 @@ MSUB: Explodes: Weapon: UnitExplodeSubmarine EmptyWeapon: UnitExplodeSubmarine - -MustBeDestroyed: Selectable: DecorationBounds: 1877, 1877