Skip to content

Commit

Permalink
Replace RA cloak and submerged palettes with sprite alpha.
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Nov 16, 2023
1 parent 08f5c97 commit d6e20da
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 21 deletions.
2 changes: 1 addition & 1 deletion mods/ra/maps/fort-lonestar/rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@ SNIPER:
CloakDelay: 120
CloakSound:
UncloakSound:
CloakStyle: Alpha
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
Expand Down
5 changes: 0 additions & 5 deletions mods/ra/rules/campaign-palettes.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
^Palettes:
-PlayerColorPalette:
-PlayerColorPalette@NOSHADOW:
-PaletteFromPlayerPaletteWithAlpha@cloak:
IndexedPlayerPalette:
BasePalette: player
BaseName: player
Expand Down Expand Up @@ -40,7 +39,3 @@
Creeps: 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143
GoodGuy: 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175
BadGuy: 229, 230, 231, 232, 233, 234, 235, 8, 236, 237, 238, 239, 221, 222, 223, 223
PaletteFromPlayerPaletteWithAlpha@Cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55
4 changes: 2 additions & 2 deletions mods/ra/rules/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -559,10 +559,10 @@
DetectionTypes: Underwater
InitialDelay: 0
CloakDelay: 50
CloakStyle: Color
CloakSound: subshow1.aud
UncloakSound: subshow1.aud
CloakedCondition: underwater
Palette: submerged
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
Expand Down Expand Up @@ -1230,7 +1230,7 @@
Cloak:
CloakSound:
UncloakSound:
Palette:
CloakStyle: None
DetectionTypes: Mine
InitialDelay: 0
Tooltip:
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/rules/infantry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,9 @@ THF:
Cloak:
InitialDelay: 250
CloakDelay: 120
CloakStyle: Alpha
UncloakOn: Attack, Unload, Infiltrate, Demolish, Move
DetectionTypes: Cloak
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
Expand Down
10 changes: 0 additions & 10 deletions mods/ra/rules/palettes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@
G: 0
B: 0
A: 140
PaletteFromRGBA@submerged:
Name: submerged
R: 0
G: 0
B: 0
A: 140
PaletteFromRGBA@moveflash:
Name: moveflash
R: 255
Expand All @@ -80,10 +74,6 @@
BaseName: player-noshadow
BasePalette: player-noshadow
RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
PaletteFromPlayerPaletteWithAlpha@cloak:
BaseName: cloak
BasePalette: player
Alpha: 0.55
MenuPostProcessEffect:
RotationPaletteEffect@defaultwater:
Palettes: terrain
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/rules/structures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ HBOX:
Cloak:
InitialDelay: 125
CloakDelay: 60
IsPlayerPalette: true
CloakStyle: Alpha
PauseOnCondition: cloak-force-disabled
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
Expand Down
2 changes: 1 addition & 1 deletion mods/ra/rules/vehicles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,8 @@ STNK:
CloakDelay: 175
CloakSound: appear1.aud
UncloakSound: appear1.aud
IsPlayerPalette: true
PauseOnCondition: cloak-force-disabled
CloakStyle: Alpha
UncloakOn: Attack, Load, Unload, Heal, Dock
GrantConditionOnDamageState@UNCLOAK:
Condition: cloak-force-disabled
Expand Down

0 comments on commit d6e20da

Please sign in to comment.