Skip to content

Commit

Permalink
Reveal-map crate
Browse files Browse the repository at this point in the history
  • Loading branch information
pchote committed Aug 14, 2010
1 parent 839043e commit ddd56e6
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions OpenRA.Game/Traits/World/Shroud.cs
Expand Up @@ -170,6 +170,16 @@ public void Explore(World world, int2 center, int range)

Dirty();
}

public void ExploreAll(World world)
{
for (int i = map.TopLeft.X; i < map.BottomRight.X; i++)
for (int j = map.TopLeft.Y; j < map.BottomRight.Y; j++)
exploredCells[i, j] = true;
exploredBounds = new Rectangle(world.Map.TopLeft.X,world.Map.TopLeft.Y,world.Map.Width,world.Map.Height);

Dirty();
}

public void ResetExploration() // for `hide map` crate
{
Expand Down
2 changes: 0 additions & 2 deletions OpenRA.Mods.RA/Crate.cs
Expand Up @@ -15,10 +15,8 @@

/*
* Crates left to implement:
Cloak=0,STEALTH2 ; enable cloaking on nearby objects
HealBase=1,INVUN ; all buildings to full strength
ICBM=1,MISSILE2 ; nuke missile one time shot
Reveal=1,EARTH ; reveal entire radar map
Sonar=3,SONARBOX ; one time sonar pulse
Squad=20,NONE ; squad of random infantry
Unit=20,NONE ; vehicle
Expand Down
1 change: 1 addition & 0 deletions OpenRA.Mods.RA/OpenRA.Mods.RA.csproj
Expand Up @@ -233,6 +233,7 @@
<Compile Include="ActorLostNotification.cs" />
<Compile Include="AppearsOnRadar.cs" />
<Compile Include="ColorPickerPaletteModifier.cs" />
<Compile Include="Crates\RevealMapCrateAction.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
Expand Down
3 changes: 3 additions & 0 deletions mods/cnc/system.yaml
Expand Up @@ -154,6 +154,9 @@ CRATE:
Amount: 1000
SelectionShares: 50
Effect: dollar
RevealMapCrateAction:
SelectionShares: 1
Effect: reveal-map
HideMapCrateAction:
SelectionShares: 5
Effect: hide-map
Expand Down
3 changes: 3 additions & 0 deletions mods/ra/system.yaml
Expand Up @@ -224,6 +224,9 @@ CRATE:
HideMapCrateAction:
SelectionShares: 5
Effect: hide-map
RevealMapCrateAction:
SelectionShares: 1
Effect: reveal-map
SupportPowerCrateAction@parabombs:
Power: AirstrikePower
SelectionShares: 5
Expand Down

0 comments on commit ddd56e6

Please sign in to comment.