Reveal-map crate
This commit is contained in:
@@ -170,6 +170,16 @@ namespace OpenRA.Traits
|
|||||||
|
|
||||||
Dirty();
|
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
|
public void ResetExploration() // for `hide map` crate
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -15,10 +15,8 @@ using OpenRA.Traits;
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Crates left to implement:
|
* Crates left to implement:
|
||||||
Cloak=0,STEALTH2 ; enable cloaking on nearby objects
|
|
||||||
HealBase=1,INVUN ; all buildings to full strength
|
HealBase=1,INVUN ; all buildings to full strength
|
||||||
ICBM=1,MISSILE2 ; nuke missile one time shot
|
ICBM=1,MISSILE2 ; nuke missile one time shot
|
||||||
Reveal=1,EARTH ; reveal entire radar map
|
|
||||||
Sonar=3,SONARBOX ; one time sonar pulse
|
Sonar=3,SONARBOX ; one time sonar pulse
|
||||||
Squad=20,NONE ; squad of random infantry
|
Squad=20,NONE ; squad of random infantry
|
||||||
Unit=20,NONE ; vehicle
|
Unit=20,NONE ; vehicle
|
||||||
|
|||||||
@@ -233,6 +233,7 @@
|
|||||||
<Compile Include="ActorLostNotification.cs" />
|
<Compile Include="ActorLostNotification.cs" />
|
||||||
<Compile Include="AppearsOnRadar.cs" />
|
<Compile Include="AppearsOnRadar.cs" />
|
||||||
<Compile Include="ColorPickerPaletteModifier.cs" />
|
<Compile Include="ColorPickerPaletteModifier.cs" />
|
||||||
|
<Compile Include="Crates\RevealMapCrateAction.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
<ProjectReference Include="..\OpenRA.FileFormats\OpenRA.FileFormats.csproj">
|
||||||
|
|||||||
@@ -154,6 +154,9 @@ CRATE:
|
|||||||
Amount: 1000
|
Amount: 1000
|
||||||
SelectionShares: 50
|
SelectionShares: 50
|
||||||
Effect: dollar
|
Effect: dollar
|
||||||
|
RevealMapCrateAction:
|
||||||
|
SelectionShares: 1
|
||||||
|
Effect: reveal-map
|
||||||
HideMapCrateAction:
|
HideMapCrateAction:
|
||||||
SelectionShares: 5
|
SelectionShares: 5
|
||||||
Effect: hide-map
|
Effect: hide-map
|
||||||
|
|||||||
@@ -224,6 +224,9 @@ CRATE:
|
|||||||
HideMapCrateAction:
|
HideMapCrateAction:
|
||||||
SelectionShares: 5
|
SelectionShares: 5
|
||||||
Effect: hide-map
|
Effect: hide-map
|
||||||
|
RevealMapCrateAction:
|
||||||
|
SelectionShares: 1
|
||||||
|
Effect: reveal-map
|
||||||
SupportPowerCrateAction@parabombs:
|
SupportPowerCrateAction@parabombs:
|
||||||
Power: AirstrikePower
|
Power: AirstrikePower
|
||||||
SelectionShares: 5
|
SelectionShares: 5
|
||||||
|
|||||||
Reference in New Issue
Block a user