aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mundus/Data/SuperLayers/LI.cs2
-rw-r--r--Mundus/Data/SuperLayers/Mobs/LMI.cs1
-rw-r--r--Mundus/Data/SuperLayers/Underground.cs54
-rw-r--r--Mundus/Icons/Land/Ground/L_grass.png (renamed from Mundus/Icons/Land/Ground/grass.png)bin4339 -> 4339 bytes
-rw-r--r--Mundus/Icons/Land/Ground/L_hole.pngbin0 -> 4339 bytes
-rw-r--r--Mundus/Icons/Land/Ground/L_water.png (renamed from Mundus/Icons/Land/Ground/water.png)bin3297 -> 3297 bytes
-rw-r--r--Mundus/Icons/Land/Materials/L_rock.png (renamed from Mundus/Icons/Land/Materials/land_rock.png)bin4339 -> 4339 bytes
-rw-r--r--Mundus/Icons/Land/Materials/L_stick.png (renamed from Mundus/Icons/Land/Materials/stick.png)bin4339 -> 4339 bytes
-rw-r--r--Mundus/Icons/Land/Structures/L_boulder.png (renamed from Mundus/Icons/Land/Items/boulder.png)bin4339 -> 4339 bytes
-rw-r--r--Mundus/Icons/Land/Structures/L_tree.png (renamed from Mundus/Icons/Land/Items/tree.png)bin4339 -> 4339 bytes
-rw-r--r--Mundus/Icons/Project files/L_boulder.xcf (renamed from Mundus/Icons/Project files/boulder.xcf)bin5824 -> 5824 bytes
-rw-r--r--Mundus/Icons/Project files/L_grass.xcf (renamed from Mundus/Icons/Project files/grass.xcf)bin6410 -> 6403 bytes
-rw-r--r--Mundus/Icons/Project files/L_hole.xcfbin0 -> 4089 bytes
-rw-r--r--Mundus/Icons/Project files/L_rock.xcf (renamed from Mundus/Icons/Project files/land_rock.xcf)bin2952 -> 2952 bytes
-rw-r--r--Mundus/Icons/Project files/L_rock_try.xcf (renamed from Mundus/Icons/Project files/rock_try.xcf)bin4061 -> 4061 bytes
-rw-r--r--Mundus/Icons/Project files/L_stick.xcf (renamed from Mundus/Icons/Project files/stick.xcf)bin1887 -> 1887 bytes
-rw-r--r--Mundus/Icons/Project files/L_tree.xcf (renamed from Mundus/Icons/Project files/tree.xcf)bin6062 -> 6062 bytes
-rw-r--r--Mundus/Icons/Project files/L_water.xcf (renamed from Mundus/Icons/Project files/water.xcf)bin665 -> 665 bytes
-rw-r--r--Mundus/Icons/Project files/U_roche.xcfbin0 -> 10257 bytes
-rw-r--r--Mundus/Icons/Project files/U_rock.xcfbin0 -> 10242 bytes
-rw-r--r--Mundus/Icons/Underground/Ground/U_roche.pngbin0 -> 4339 bytes
-rw-r--r--Mundus/Icons/Underground/Structures/U_rock.pngbin0 -> 4339 bytes
-rw-r--r--Mundus/Mundus.csproj23
-rw-r--r--Mundus/Service/GameGenerator.cs4
-rw-r--r--Mundus/Service/Mobs/IMob.cs3
-rw-r--r--Mundus/Service/Mobs/LandMobs/Player.cs7
-rw-r--r--Mundus/Service/Mobs/MobMovement.cs14
-rw-r--r--Mundus/Service/Mobs/MobTerraforming.cs19
-rw-r--r--Mundus/Service/SuperLayers/Generators/LandSuperLayerGenerator.cs (renamed from Mundus/Service/SuperLayers/LandSuperLayerGenerator.cs)8
-rw-r--r--Mundus/Service/SuperLayers/Generators/UndergroundSuperLayerGenerator.cs54
-rw-r--r--Mundus/Service/SuperLayers/GroundPresets.cs8
-rw-r--r--Mundus/Service/SuperLayers/ImageController.cs17
-rw-r--r--Mundus/Service/SuperLayers/LandPresets.cs15
-rw-r--r--Mundus/Service/SuperLayers/StructurePresets.cs19
-rw-r--r--Mundus/Service/Tiles/GroundTile.cs2
-rw-r--r--Mundus/Service/Tiles/ItemPresets/MaterialPresets.cs4
-rw-r--r--Mundus/Service/Tiles/Items/Structure.cs8
-rw-r--r--Mundus/Views/Windows/SmallGameWindow.cs5
-rw-r--r--Mundus/gtk-gui/generated.cs76
-rw-r--r--Mundus/gtk-gui/gui.stetic40
40 files changed, 269 insertions, 114 deletions
diff --git a/Mundus/Data/SuperLayers/LI.cs b/Mundus/Data/SuperLayers/LI.cs
index 9f43ee3..7f3a063 100644
--- a/Mundus/Data/SuperLayers/LI.cs
+++ b/Mundus/Data/SuperLayers/LI.cs
@@ -2,9 +2,11 @@
public static class LI { //stands for Layer Instances
//add other layers
public static Land Land { get; private set; }
+ public static Underground Underground { get; private set;}
public static void CreateInstances() {
Land = new Land();
+ Underground = new Underground();
}
}
}
diff --git a/Mundus/Data/SuperLayers/Mobs/LMI.cs b/Mundus/Data/SuperLayers/Mobs/LMI.cs
index 4a173d9..ce4bb66 100644
--- a/Mundus/Data/SuperLayers/Mobs/LMI.cs
+++ b/Mundus/Data/SuperLayers/Mobs/LMI.cs
@@ -13,6 +13,7 @@ namespace Mundus.Data.Superlayers.Mobs {
Player.Inventory.SetNewSizes(screenInvSize);
Player.Inventory.AppendToHotbar(ToolPresets.GetAWoodenAxe());
Player.Inventory.AppendToHotbar(ToolPresets.GetAWoodenPickaxe());
+ Player.Inventory.AppendToHotbar(ToolPresets.GetAWoodenShovel());
}
}
}
diff --git a/Mundus/Data/SuperLayers/Underground.cs b/Mundus/Data/SuperLayers/Underground.cs
new file mode 100644
index 0000000..1d98c2d
--- /dev/null
+++ b/Mundus/Data/SuperLayers/Underground.cs
@@ -0,0 +1,54 @@
+using System;
+using Mundus.Service.Tiles;
+using Mundus.Service.Tiles.Items;
+
+namespace Mundus.Data.SuperLayers {
+ public class Underground : ISuperLayer {
+ private static MobTile[,] mobLayer;
+ private static Structure[,] structureLayer;
+ private static GroundTile[,] groundLayer;
+
+ public Underground()
+ { }
+
+ public MobTile GetMobLayerTile(int yPos, int xPos) {
+ return mobLayer[yPos, xPos];
+ }
+ public Structure GetStructureLayerTile(int yPos, int xPos) {
+ return structureLayer[yPos, xPos];
+ }
+ public GroundTile GetGroundLayerTile(int yPos, int xPos) {
+ return groundLayer[yPos, xPos];
+ }
+
+ public void SetMobLayer(MobTile[,] mobTiles) {
+ mobLayer = mobTiles;
+ }
+ public void SetMobAtPosition(MobTile tile, int yPos, int xPos) {
+ mobLayer[yPos, xPos] = tile;
+ }
+ public void RemoveMobFromPosition(int yPos, int xPos) {
+ mobLayer[yPos, xPos] = null;
+ }
+
+ public void SetStructureLayer(Structure[,] itemTiles) {
+ structureLayer = itemTiles;
+ }
+ public void SetStructureAtPosition(Structure tile, int yPos, int xPos) {
+ structureLayer[yPos, xPos] = tile;
+ }
+ public void RemoveStructureFromPosition(int yPos, int xPos) {
+ structureLayer[yPos, xPos] = null;
+ }
+
+ public void SetGroundLayer(GroundTile[,] groundTiles) {
+ groundLayer = groundTiles;
+ }
+ public void SetGroundAtPosition(GroundTile tile, int yPos, int xPos) {
+ groundLayer[yPos, xPos] = tile;
+ }
+ public void RemoveGroundFromPosition(int yPos, int xPos) {
+ groundLayer[yPos, xPos] = null;
+ }
+ }
+}
diff --git a/Mundus/Icons/Land/Ground/grass.png b/Mundus/Icons/Land/Ground/L_grass.png
index 06c38dd..06c38dd 100644
--- a/Mundus/Icons/Land/Ground/grass.png
+++ b/Mundus/Icons/Land/Ground/L_grass.png
Binary files differ
diff --git a/Mundus/Icons/Land/Ground/L_hole.png b/Mundus/Icons/Land/Ground/L_hole.png
new file mode 100644
index 0000000..f914050
--- /dev/null
+++ b/Mundus/Icons/Land/Ground/L_hole.png
Binary files differ
diff --git a/Mundus/Icons/Land/Ground/water.png b/Mundus/Icons/Land/Ground/L_water.png
index 08ede4a..08ede4a 100644
--- a/Mundus/Icons/Land/Ground/water.png
+++ b/Mundus/Icons/Land/Ground/L_water.png
Binary files differ
diff --git a/Mundus/Icons/Land/Materials/land_rock.png b/Mundus/Icons/Land/Materials/L_rock.png
index 835c242..835c242 100644
--- a/Mundus/Icons/Land/Materials/land_rock.png
+++ b/Mundus/Icons/Land/Materials/L_rock.png
Binary files differ
diff --git a/Mundus/Icons/Land/Materials/stick.png b/Mundus/Icons/Land/Materials/L_stick.png
index 288a5ce..288a5ce 100644
--- a/Mundus/Icons/Land/Materials/stick.png
+++ b/Mundus/Icons/Land/Materials/L_stick.png
Binary files differ
diff --git a/Mundus/Icons/Land/Items/boulder.png b/Mundus/Icons/Land/Structures/L_boulder.png
index a5db10a..a5db10a 100644
--- a/Mundus/Icons/Land/Items/boulder.png
+++ b/Mundus/Icons/Land/Structures/L_boulder.png
Binary files differ
diff --git a/Mundus/Icons/Land/Items/tree.png b/Mundus/Icons/Land/Structures/L_tree.png
index fcfcadd..fcfcadd 100644
--- a/Mundus/Icons/Land/Items/tree.png
+++ b/Mundus/Icons/Land/Structures/L_tree.png
Binary files differ
diff --git a/Mundus/Icons/Project files/boulder.xcf b/Mundus/Icons/Project files/L_boulder.xcf
index a53ac41..a53ac41 100644
--- a/Mundus/Icons/Project files/boulder.xcf
+++ b/Mundus/Icons/Project files/L_boulder.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/grass.xcf b/Mundus/Icons/Project files/L_grass.xcf
index 3070dfb..73db095 100644
--- a/Mundus/Icons/Project files/grass.xcf
+++ b/Mundus/Icons/Project files/L_grass.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/L_hole.xcf b/Mundus/Icons/Project files/L_hole.xcf
new file mode 100644
index 0000000..3661dda
--- /dev/null
+++ b/Mundus/Icons/Project files/L_hole.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/land_rock.xcf b/Mundus/Icons/Project files/L_rock.xcf
index 71f3815..71f3815 100644
--- a/Mundus/Icons/Project files/land_rock.xcf
+++ b/Mundus/Icons/Project files/L_rock.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/rock_try.xcf b/Mundus/Icons/Project files/L_rock_try.xcf
index aaa97ca..aaa97ca 100644
--- a/Mundus/Icons/Project files/rock_try.xcf
+++ b/Mundus/Icons/Project files/L_rock_try.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/stick.xcf b/Mundus/Icons/Project files/L_stick.xcf
index b4b56ff..b4b56ff 100644
--- a/Mundus/Icons/Project files/stick.xcf
+++ b/Mundus/Icons/Project files/L_stick.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/tree.xcf b/Mundus/Icons/Project files/L_tree.xcf
index 4afac9e..4afac9e 100644
--- a/Mundus/Icons/Project files/tree.xcf
+++ b/Mundus/Icons/Project files/L_tree.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/water.xcf b/Mundus/Icons/Project files/L_water.xcf
index bcbcad3..bcbcad3 100644
--- a/Mundus/Icons/Project files/water.xcf
+++ b/Mundus/Icons/Project files/L_water.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/U_roche.xcf b/Mundus/Icons/Project files/U_roche.xcf
new file mode 100644
index 0000000..0f97a9c
--- /dev/null
+++ b/Mundus/Icons/Project files/U_roche.xcf
Binary files differ
diff --git a/Mundus/Icons/Project files/U_rock.xcf b/Mundus/Icons/Project files/U_rock.xcf
new file mode 100644
index 0000000..35b7bf6
--- /dev/null
+++ b/Mundus/Icons/Project files/U_rock.xcf
Binary files differ
diff --git a/Mundus/Icons/Underground/Ground/U_roche.png b/Mundus/Icons/Underground/Ground/U_roche.png
new file mode 100644
index 0000000..aff1fdc
--- /dev/null
+++ b/Mundus/Icons/Underground/Ground/U_roche.png
Binary files differ
diff --git a/Mundus/Icons/Underground/Structures/U_rock.png b/Mundus/Icons/Underground/Structures/U_rock.png
new file mode 100644
index 0000000..da76bf8
--- /dev/null
+++ b/Mundus/Icons/Underground/Structures/U_rock.png
Binary files differ
diff --git a/Mundus/Mundus.csproj b/Mundus/Mundus.csproj
index fb024df..8a335fc 100644
--- a/Mundus/Mundus.csproj
+++ b/Mundus/Mundus.csproj
@@ -52,11 +52,7 @@
<EmbeddedResource Include="gtk-gui\gui.stetic">
<LogicalName>gui.stetic</LogicalName>
</EmbeddedResource>
- <EmbeddedResource Include="Icons\Land\Ground\grass.png" />
- <EmbeddedResource Include="Icons\Land\Items\boulder.png" />
<EmbeddedResource Include="Icons\player.png" />
- <EmbeddedResource Include="Icons\Land\Items\tree.png" />
- <EmbeddedResource Include="Icons\Land\Ground\water.png" />
<EmbeddedResource Include="Icons\UI\Blanks\blank.png" />
<EmbeddedResource Include="Icons\UI\Blanks\blank_hand.png" />
<EmbeddedResource Include="Icons\UI\Blanks\blank_gear.png" />
@@ -65,8 +61,6 @@
<EmbeddedResource Include="Icons\UI\Hearth\3-4.png" />
<EmbeddedResource Include="Icons\UI\Hearth\2-4.png" />
<EmbeddedResource Include="Icons\UI\Hearth\1-4.png" />
- <EmbeddedResource Include="Icons\Land\Materials\land_rock.png" />
- <EmbeddedResource Include="Icons\Land\Materials\stick.png" />
<EmbeddedResource Include="Icons\Land\Tools\stone_pickaxe.png" />
<EmbeddedResource Include="Icons\Land\Tools\stone_axe.png" />
<EmbeddedResource Include="Icons\UI\Blanks\blank_multiplication.png" />
@@ -74,6 +68,14 @@
<EmbeddedResource Include="Icons\Land\Tools\wooden_pickaxe.png" />
<EmbeddedResource Include="Icons\Land\Tools\wooden_shovel.png" />
<EmbeddedResource Include="Icons\Land\Tools\stone_shovel.png" />
+ <EmbeddedResource Include="Icons\Land\Ground\L_grass.png" />
+ <EmbeddedResource Include="Icons\Land\Structures\L_boulder.png" />
+ <EmbeddedResource Include="Icons\Land\Materials\L_rock.png" />
+ <EmbeddedResource Include="Icons\Land\Structures\L_tree.png" />
+ <EmbeddedResource Include="Icons\Land\Materials\L_stick.png" />
+ <EmbeddedResource Include="Icons\Underground\Structures\U_rock.png" />
+ <EmbeddedResource Include="Icons\Underground\Ground\U_roche.png" />
+ <EmbeddedResource Include="Icons\Land\Ground\L_hole.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="gtk-gui\generated.cs" />
@@ -108,7 +110,6 @@
<Compile Include="Views\Windows\IGameWindow.cs" />
<Compile Include="Service\Mobs\MobMovement.cs" />
<Compile Include="Data\MapSizes.cs" />
- <Compile Include="Service\SuperLayers\LandSuperLayerGenerator.cs" />
<Compile Include="Service\SwitchItems.cs" />
<Compile Include="Service\SuperLayers\ImageController.cs" />
<Compile Include="Service\Calculate.cs" />
@@ -128,7 +129,7 @@
<Compile Include="Service\Tiles\Items\Gear.cs" />
<Compile Include="Service\Mobs\MobFighting.cs" />
<Compile Include="Service\Mobs\MobTerraforming.cs" />
- <Compile Include="Service\SuperLayers\LandPresets.cs" />
+ <Compile Include="Service\SuperLayers\StructurePresets.cs" />
<Compile Include="Service\Mobs\MobStatsController.cs" />
<Compile Include="Service\Crafting\CraftingRecipe.cs" />
<Compile Include="Service\Crafting\CraftingController.cs" />
@@ -136,6 +137,9 @@
<Compile Include="Service\Tiles\ItemPresets\ToolPresets.cs" />
<Compile Include="Service\Tiles\ItemPresets\MaterialPresets.cs" />
<Compile Include="Service\SuperLayers\GroundPresets.cs" />
+ <Compile Include="Data\SuperLayers\Underground.cs" />
+ <Compile Include="Service\SuperLayers\Generators\LandSuperLayerGenerator.cs" />
+ <Compile Include="Service\SuperLayers\Generators\UndergroundSuperLayerGenerator.cs" />
</ItemGroup>
<ItemGroup>
<Folder Include="Service\" />
@@ -146,7 +150,6 @@
<Folder Include="Service\SuperLayers\" />
<Folder Include="Service\Tiles\" />
<Folder Include="Icons\Land\Ground\" />
- <Folder Include="Icons\Land\Items\" />
<Folder Include="Service\Mobs\" />
<Folder Include="Service\Mobs\LandMobs\" />
<Folder Include="Data\Windows\" />
@@ -158,6 +161,8 @@
<Folder Include="Service\Crafting\" />
<Folder Include="Data\Crafting\" />
<Folder Include="Service\Tiles\ItemPresets\" />
+ <Folder Include="Icons\Land\Materials\" />
+ <Folder Include="Service\SuperLayers\Generators\" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project> \ No newline at end of file
diff --git a/Mundus/Service/GameGenerator.cs b/Mundus/Service/GameGenerator.cs
index 3538a27..7e9313a 100644
--- a/Mundus/Service/GameGenerator.cs
+++ b/Mundus/Service/GameGenerator.cs
@@ -2,8 +2,7 @@
using Mundus.Data;
using Mundus.Data.Superlayers.Mobs;
using Mundus.Data.Windows;
-using Mundus.Service.SuperLayers;
-using Mundus.Views.Windows;
+using Mundus.Service.SuperLayers.Generators;
namespace Mundus.Service {
public static class GameGenerator {
@@ -17,6 +16,7 @@ namespace Mundus.Service {
//Add the other layers
LandSuperLayerGenerator.GenerateAllLayers( MapSizes.CurrSize );
+ UndergroundSuperLayerGenerator.GenerateAllLayers(MapSizes.CurrSize);
}
public static void GameWindowInventorySetup(string size) {
diff --git a/Mundus/Service/Mobs/IMob.cs b/Mundus/Service/Mobs/IMob.cs
index 9af9cb5..df60892 100644
--- a/Mundus/Service/Mobs/IMob.cs
+++ b/Mundus/Service/Mobs/IMob.cs
@@ -4,7 +4,8 @@ using Mundus.Service.Tiles;
namespace Mundus.Service.Mobs {
public interface IMob {
MobTile Tile { get; }
- ISuperLayer CurrSuperLayer { get; set; }
+ ISuperLayer CurrSuperLayer { get; set; }
+ ISuperLayer GetLayerUndearneathCurr();
int XPos { get; set; }
int YPos { get; set; }
int Health { get; set; }
diff --git a/Mundus/Service/Mobs/LandMobs/Player.cs b/Mundus/Service/Mobs/LandMobs/Player.cs
index 280a12f..57913a6 100644
--- a/Mundus/Service/Mobs/LandMobs/Player.cs
+++ b/Mundus/Service/Mobs/LandMobs/Player.cs
@@ -17,6 +17,13 @@ namespace Mundus.Service.Mobs.LandMobs {
this.Tile = tile;
this.Inventory = new Inventory(inventorySize);
this.Health = health;
+ }
+
+ public ISuperLayer GetLayerUndearneathCurr() {
+ if (CurrSuperLayer == LI.Land) {
+ return LI.Underground;
+ }
+ return null;
}
}
}
diff --git a/Mundus/Service/Mobs/MobMovement.cs b/Mundus/Service/Mobs/MobMovement.cs
index b043677..e97ead6 100644
--- a/Mundus/Service/Mobs/MobMovement.cs
+++ b/Mundus/Service/Mobs/MobMovement.cs
@@ -15,18 +15,20 @@ namespace Mundus.Service.Mobs {
public static void ChangePosition(IMob mob, int yPos, int xPos) {
if (Walkable(mob, yPos, xPos)) {
- mob.CurrSuperLayer.RemoveMobFromPosition( mob.YPos, mob.XPos );
+ mob.CurrSuperLayer.RemoveMobFromPosition(mob.YPos, mob.XPos);
+
+ if (mob.CurrSuperLayer.GetGroundLayerTile(yPos, xPos) == null) {
+ mob.CurrSuperLayer = mob.GetLayerUndearneathCurr();
+ }
+
mob.YPos = yPos;
mob.XPos = xPos;
- mob.CurrSuperLayer.SetMobAtPosition( mob.Tile, yPos, xPos );
+ mob.CurrSuperLayer.SetMobAtPosition(mob.Tile, yPos, xPos);
}
}
private static bool Walkable(IMob mob, int yPos, int xPos) {
- //Mobs can only walk on free ground (no structure on top) or walkable structures
- if (mob.CurrSuperLayer.GetGroundLayerTile(yPos, xPos) == null) {
- return false;
- }
+ //Mobs can only walk on free ground (no structure on top) or walkable structures
return (mob.CurrSuperLayer.GetStructureLayerTile(yPos, xPos) == null ||
mob.CurrSuperLayer.GetStructureLayerTile(yPos, xPos).IsWalkable) ||
mob.CurrSuperLayer.GetMobLayerTile(yPos, xPos) != null;
diff --git a/Mundus/Service/Mobs/MobTerraforming.cs b/Mundus/Service/Mobs/MobTerraforming.cs
index 485c047..9ddf087 100644
--- a/Mundus/Service/Mobs/MobTerraforming.cs
+++ b/Mundus/Service/Mobs/MobTerraforming.cs
@@ -19,7 +19,12 @@ namespace Mundus.Service.Mobs {
if (selGround.ReqShovelClass <= selTool.Class) {
LMI.Player.CurrSuperLayer.SetGroundAtPosition(null, mapYPos, mapXPos);
- if (LMI.Player.Inventory.Items.Contains(null)) {
+ ISuperLayer under = LMI.Player.GetLayerUndearneathCurr();
+ if (under != null) {
+ under.RemoveStructureFromPosition(mapYPos, mapXPos);
+ }
+
+ if (LMI.Player.Inventory.Items.Contains(null) && selGround.DroppedMaterial != null) {
LMI.Player.Inventory.AppendToItems(new Material(selGround.DroppedMaterial));
}
}
@@ -27,12 +32,16 @@ namespace Mundus.Service.Mobs {
else if (LMI.Player.CurrSuperLayer.GetStructureLayerTile(mapYPos, mapXPos) != null) {
var selStructure = LMI.Player.CurrSuperLayer.GetStructureLayerTile(mapYPos, mapXPos);
- if (selStructure.ReqToolType == selTool.Type && selStructure.ReqToolClass <= selTool.Class) {
- if (LMI.Player.Inventory.Items.Contains(null)) {
- LMI.Player.Inventory.AppendToItems(new Material(selStructure.DroppedMaterial));
+ if (selStructure.ReqToolType == selTool.Type && selStructure.ReqToolClass <= selTool.Class) {
+ int damagePoints = 1 + (selTool.Class - selStructure.ReqToolClass);
+
+ if (selStructure.DroppedMaterial != null) {
+ for (int i = 0; (i < damagePoints && i < selStructure.Health) && LMI.Player.Inventory.Items.Contains(null); i++) {
+ LMI.Player.Inventory.AppendToItems(new Material(selStructure.DroppedMaterial));
+ }
}
- if (!selStructure.Damage()) {
+ if (!selStructure.Damage(damagePoints)) {
LMI.Player.CurrSuperLayer.SetStructureAtPosition(null, mapYPos, mapXPos);
}
}
diff --git a/Mundus/Service/SuperLayers/LandSuperLayerGenerator.cs b/Mundus/Service/SuperLayers/Generators/LandSuperLayerGenerator.cs
index fca20af..b414f9b 100644
--- a/Mundus/Service/SuperLayers/LandSuperLayerGenerator.cs
+++ b/Mundus/Service/SuperLayers/Generators/LandSuperLayerGenerator.cs
@@ -5,7 +5,7 @@ using Mundus.Data.Tiles;
using Mundus.Service.Tiles;
using Mundus.Service.Tiles.Items;
-namespace Mundus.Service.SuperLayers {
+namespace Mundus.Service.SuperLayers.Generators {
public static class LandSuperLayerGenerator {
private static Random rnd;
@@ -37,7 +37,7 @@ namespace Mundus.Service.SuperLayers {
for(int col = 0; col < size; col++) {
for(int row = 0; row < size; row++) {
- tiles[col, row] = GroundPresets.GetAGrass();
+ tiles[col, row] = GroundPresets.GetALGrass();
}
}
return tiles;
@@ -49,10 +49,10 @@ namespace Mundus.Service.SuperLayers {
for (int col = 0; col < size; col++) {
for (int row = 0; row < size; row++) {
if (rnd.Next( 0, 50 ) == 1) {
- tiles[col, row] = LandPresets.GetABoulder();
+ tiles[col, row] = StructurePresets.GetALBoulder();
}
if (rnd.Next(0, 10) == 1) {
- tiles[col, row] = LandPresets.GetATree();
+ tiles[col, row] = StructurePresets.GetALTree();
}
}
}
diff --git a/Mundus/Service/SuperLayers/Generators/UndergroundSuperLayerGenerator.cs b/Mundus/Service/SuperLayers/Generators/UndergroundSuperLayerGenerator.cs
new file mode 100644
index 0000000..0e77336
--- /dev/null
+++ b/Mundus/Service/SuperLayers/Generators/UndergroundSuperLayerGenerator.cs
@@ -0,0 +1,54 @@
+using System;
+using Mundus.Data.Superlayers.Mobs;
+using Mundus.Data.SuperLayers;
+using Mundus.Service.Tiles;
+using Mundus.Service.Tiles.Items;
+
+namespace Mundus.Service.SuperLayers.Generators {
+ public static class UndergroundSuperLayerGenerator {
+ private static Random rnd;
+
+ public static void GenerateAllLayers(int size) {
+ LI.Underground.SetMobLayer(GenerateMobLayer(size));
+ LI.Underground.SetGroundLayer(GenerateGroundLayer(size));
+ LI.Underground.SetStructureLayer(GenerateStructureLayer(size));
+ }
+
+ private static MobTile[,] GenerateMobLayer(int size) {
+ MobTile[,] tiles = new MobTile[size, size];
+
+ for (int col = 0; col < size; col++) {
+ for (int row = 0; row < size; row++) {
+
+ }
+ }
+ return tiles;
+ }
+
+ private static GroundTile[,] GenerateGroundLayer(int size) {
+ rnd = new Random();
+ GroundTile[,] tiles = new GroundTile[size, size];
+
+ for (int col = 0; col < size; col++) {
+ for (int row = 0; row < size; row++) {
+ tiles[col, row] = GroundPresets.GetAURoche();
+ }
+ }
+ return tiles;
+ }
+
+ private static Structure[,] GenerateStructureLayer(int size) {
+ Structure[,] tiles = new Structure[size, size];
+
+ for (int col = 0; col < size; col++) {
+ for (int row = 0; row < size; row++) {
+ tiles[col, row] = StructurePresets.GetAURock();
+ if (rnd.Next(0, 10) == 1) {
+ tiles[col, row] = null;
+ }
+ }
+ }
+ return tiles;
+ }
+ }
+}
diff --git a/Mundus/Service/SuperLayers/GroundPresets.cs b/Mundus/Service/SuperLayers/GroundPresets.cs
index bfdcf51..6feb1c6 100644
--- a/Mundus/Service/SuperLayers/GroundPresets.cs
+++ b/Mundus/Service/SuperLayers/GroundPresets.cs
@@ -8,8 +8,12 @@ namespace Mundus.Service.SuperLayers {
/// Returns a new instance of the grass ground tile
/// </summary>
/// <returns>New instance of the grass ground tile</returns>
- public static GroundTile GetAGrass() {
- return new GroundTile("grass", 1, MaterialPresets.GetALandRock());
+ public static GroundTile GetALGrass() {
+ return new GroundTile("L_grass", 1);
+ }
+
+ public static GroundTile GetAURoche() {
+ return new GroundTile("U_roche", 10);
}
}
}
diff --git a/Mundus/Service/SuperLayers/ImageController.cs b/Mundus/Service/SuperLayers/ImageController.cs
index 022c61c..941affe 100644
--- a/Mundus/Service/SuperLayers/ImageController.cs
+++ b/Mundus/Service/SuperLayers/ImageController.cs
@@ -13,28 +13,23 @@ namespace Mundus.Service.SuperLayers {
//Layer 0 is GroundLayer, 1 is ItemLayer and 2 is Moblayer
if (layer == 0) {
- if (superLayer.GetGroundLayerTile( row, col ) == null) {
- img = new Image( "blank", IconSize.Dnd );
- }
- else {
- img = new Image( superLayer.GetGroundLayerTile( row, col ).stock_id, IconSize.Dnd );
- }
+ img = new Image(GetGroundImage(row, col).Stock, IconSize.Dnd);
}
else if (layer == 1 &&
superLayer.GetStructureLayerTile( row, col ) != null) {
- img = new Image( superLayer.GetStructureLayerTile( row, col ).stock_id, IconSize.Dnd );
+ img = new Image(GetStructureImage(row, col).Stock, IconSize.Dnd );
}
else if (layer == 2 &&
superLayer.GetMobLayerTile( row, col ) != null) {
- img = new Image( superLayer.GetMobLayerTile( row, col ).stock_id, IconSize.Dnd );
+ img = new Image(superLayer.GetMobLayerTile( row, col ).stock_id, IconSize.Dnd);
}
return img;
}
- //Return a tile if it exists, otherwise return the "blank" icon
+
public static Image GetGroundImage(int row, int col) {
ISuperLayer superLayer = LMI.Player.CurrSuperLayer;
- Image img = new Image("blank", IconSize.Dnd);
+ Image img = new Image("L_hole", IconSize.Dnd);
if (row >= 0 && col >= 0 && col < MapSizes.CurrSize && row < MapSizes.CurrSize &&
superLayer.GetGroundLayerTile( row, col ) != null) {
@@ -44,7 +39,7 @@ namespace Mundus.Service.SuperLayers {
}
//Return a tile if it exists, otherwise return the "blank" icon
- public static Image GetItemImage(int row, int col) {
+ public static Image GetStructureImage(int row, int col) {
ISuperLayer superLayer = LMI.Player.CurrSuperLayer;
Image img = new Image( "blank", IconSize.Dnd );
diff --git a/Mundus/Service/SuperLayers/LandPresets.cs b/Mundus/Service/SuperLayers/LandPresets.cs
deleted file mode 100644
index 2357711..0000000
--- a/Mundus/Service/SuperLayers/LandPresets.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-using Mundus.Data.Tiles;
-using Mundus.Service.Tiles.ItemPresets;
-using Mundus.Service.Tiles.Items;
-
-namespace Mundus.Service.SuperLayers {
- public static class LandPresets {
- public static Structure GetABoulder() {
- return new Structure("boulder", 10, ToolTypes.Pickaxe, 1, false, MaterialPresets.GetALandRock());
- }
-
- public static Structure GetATree() {
- return new Structure("tree", 5, ToolTypes.Axe, 1, false, MaterialPresets.GetAStick());
- }
- }
-}
diff --git a/Mundus/Service/SuperLayers/StructurePresets.cs b/Mundus/Service/SuperLayers/StructurePresets.cs
new file mode 100644
index 0000000..a1219d4
--- /dev/null
+++ b/Mundus/Service/SuperLayers/StructurePresets.cs
@@ -0,0 +1,19 @@
+using Mundus.Data.Tiles;
+using Mundus.Service.Tiles.ItemPresets;
+using Mundus.Service.Tiles.Items;
+
+namespace Mundus.Service.SuperLayers {
+ public static class StructurePresets {
+ public static Structure GetALBoulder() {
+ return new Structure("L_boulder", 7, ToolTypes.Pickaxe, 1, false, MaterialPresets.GetALandRock());
+ }
+
+ public static Structure GetALTree() {
+ return new Structure("L_tree", 5, ToolTypes.Axe, 1, false, MaterialPresets.GetAStick());
+ }
+
+ public static Structure GetAURock() {
+ return new Structure("U_rock", 10, ToolTypes.Pickaxe, 2);
+ }
+ }
+}
diff --git a/Mundus/Service/Tiles/GroundTile.cs b/Mundus/Service/Tiles/GroundTile.cs
index 6e89781..20f484e 100644
--- a/Mundus/Service/Tiles/GroundTile.cs
+++ b/Mundus/Service/Tiles/GroundTile.cs
@@ -8,7 +8,7 @@ namespace Mundus.Service.Tiles {
public int ReqShovelClass { get; private set; }
public Material DroppedMaterial { get; private set; }
- public GroundTile(string stock_id, int reqShovelClass, Material droppedMaterial) {
+ public GroundTile(string stock_id, int reqShovelClass, Material droppedMaterial = null) {
this.stock_id = stock_id;
this.ReqShovelClass = reqShovelClass;
this.DroppedMaterial = droppedMaterial;
diff --git a/Mundus/Service/Tiles/ItemPresets/MaterialPresets.cs b/Mundus/Service/Tiles/ItemPresets/MaterialPresets.cs
index 655ba8c..6211e98 100644
--- a/Mundus/Service/Tiles/ItemPresets/MaterialPresets.cs
+++ b/Mundus/Service/Tiles/ItemPresets/MaterialPresets.cs
@@ -4,11 +4,11 @@ using Mundus.Service.Tiles.Items;
namespace Mundus.Service.Tiles.ItemPresets {
public static class MaterialPresets {
public static Material GetALandRock() {
- return new Material("land_rock");
+ return new Material("L_rock");
}
public static Material GetAStick() {
- return new Material("stick");
+ return new Material("L_stick");
}
}
}
diff --git a/Mundus/Service/Tiles/Items/Structure.cs b/Mundus/Service/Tiles/Items/Structure.cs
index 75ed3c8..e6e784c 100644
--- a/Mundus/Service/Tiles/Items/Structure.cs
+++ b/Mundus/Service/Tiles/Items/Structure.cs
@@ -3,7 +3,7 @@
public int ReqToolType { get; private set; }
public int ReqToolClass { get; private set; }
public Material DroppedMaterial { get; private set; }
- public byte Health { get; private set; }
+ public int Health { get; private set; }
public bool IsWalkable { get; private set; }
@@ -12,7 +12,7 @@
new Material(structure.DroppedMaterial.stock_id)) {
}
- public Structure(string stock_id, byte health, int reqToolType, int reqToolClass, bool isWalkable = false, Material droppedMaterial = null) : base(stock_id) {
+ public Structure(string stock_id, int health, int reqToolType, int reqToolClass, bool isWalkable = false, Material droppedMaterial = null) : base(stock_id) {
this.Health = health;
this.ReqToolType = reqToolType;
this.ReqToolClass = reqToolClass;
@@ -24,8 +24,8 @@
/// Removes 1 health from structure
/// </summary>
/// <returns>If the structure can still be damaged</returns>
- public bool Damage() {
- this.Health--;
+ public bool Damage(int damagePoints) {
+ this.Health -= damagePoints;
return this.Health > 0;
}
diff --git a/Mundus/Views/Windows/SmallGameWindow.cs b/Mundus/Views/Windows/SmallGameWindow.cs
index 1afe00f..230bffb 100644
--- a/Mundus/Views/Windows/SmallGameWindow.cs
+++ b/Mundus/Views/Windows/SmallGameWindow.cs
@@ -237,6 +237,9 @@ namespace Mundus.Views.Windows {
}
}
+ /// <summary>
+ /// Prints the lung capacity, health, hotbar items and event log
+ /// </summary>
public void PrintMainMenu() {
//Print lungs
@@ -308,7 +311,7 @@ namespace Mundus.Views.Windows {
//Prints the "Item layer" in map menu
for (int row = Calculate.CalculateStartY(Size), maxY = Calculate.CalculateMaxY(Size), img = 1; row <= maxY; row++) {
for (int col = Calculate.CalculateStartX(Size), maxX = Calculate.CalculateMaxX(Size); col <= maxX; col++, img++) {
- string sName = ImageController.GetItemImage(row, col).Stock;
+ string sName = ImageController.GetStructureImage(row, col).Stock;
switch (img) {
case 1: imgI1.SetFromStock( sName, IconSize.Dnd ); break;
diff --git a/Mundus/gtk-gui/generated.cs b/Mundus/gtk-gui/generated.cs
index 886588a..11c091f 100644
--- a/Mundus/gtk-gui/generated.cs
+++ b/Mundus/gtk-gui/generated.cs
@@ -12,10 +12,10 @@ namespace Stetic
{
Stetic.Gui.initialized = true;
global::Gtk.IconFactory w1 = new global::Gtk.IconFactory();
- global::Gtk.IconSet w2 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Ground.grass.png"));
- w1.Add("grass", w2);
- global::Gtk.IconSet w3 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Items.boulder.png"));
- w1.Add("boulder", w3);
+ global::Gtk.IconSet w2 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Ground.L_grass.png"));
+ w1.Add("L_grass", w2);
+ global::Gtk.IconSet w3 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Structures.L_boulder.png"));
+ w1.Add("L_boulder", w3);
global::Gtk.IconSet w4 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.player.png"));
w1.Add("player", w4);
global::Gtk.IconSet w5 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.blank.png"));
@@ -24,38 +24,42 @@ namespace Stetic
w1.Add("blank_hand", w6);
global::Gtk.IconSet w7 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.blank_gear.png"));
w1.Add("blank_gear", w7);
- global::Gtk.IconSet w8 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Materials.land_rock.png"));
- w1.Add("land_rock", w8);
- global::Gtk.IconSet w9 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Items.tree.png"));
- w1.Add("tree", w9);
- global::Gtk.IconSet w10 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Ground.water.png"));
- w1.Add("water", w10);
- global::Gtk.IconSet w11 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.empty.png"));
- w1.Add("empty", w11);
- global::Gtk.IconSet w12 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.4-4.png"));
- w1.Add("hearth_4-4", w12);
- global::Gtk.IconSet w13 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.3-4.png"));
- w1.Add("hearth_3-4", w13);
- global::Gtk.IconSet w14 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.2-4.png"));
- w1.Add("hearth_2-4", w14);
- global::Gtk.IconSet w15 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.1-4.png"));
- w1.Add("hearth_1-4", w15);
- global::Gtk.IconSet w16 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Materials.stick.png"));
- w1.Add("stick", w16);
- global::Gtk.IconSet w17 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_pickaxe.png"));
- w1.Add("stone_pickaxe", w17);
- global::Gtk.IconSet w18 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_axe.png"));
- w1.Add("stone_axe", w18);
- global::Gtk.IconSet w19 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.blank_multiplication.png"));
- w1.Add("blank_multiplication", w19);
- global::Gtk.IconSet w20 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_axe.png"));
- w1.Add("wooden_axe", w20);
- global::Gtk.IconSet w21 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_pickaxe.png"));
- w1.Add("wooden_pickaxe", w21);
- global::Gtk.IconSet w22 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_shovel.png"));
- w1.Add("wooden_shovel", w22);
- global::Gtk.IconSet w23 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_shovel.png"));
- w1.Add("stone_shovel", w23);
+ global::Gtk.IconSet w8 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Materials.L_rock.png"));
+ w1.Add("L_rock", w8);
+ global::Gtk.IconSet w9 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Structures.L_tree.png"));
+ w1.Add("L_tree", w9);
+ global::Gtk.IconSet w10 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.empty.png"));
+ w1.Add("empty", w10);
+ global::Gtk.IconSet w11 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.4-4.png"));
+ w1.Add("hearth_4-4", w11);
+ global::Gtk.IconSet w12 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.3-4.png"));
+ w1.Add("hearth_3-4", w12);
+ global::Gtk.IconSet w13 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.2-4.png"));
+ w1.Add("hearth_2-4", w13);
+ global::Gtk.IconSet w14 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Hearth.1-4.png"));
+ w1.Add("hearth_1-4", w14);
+ global::Gtk.IconSet w15 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Materials.L_stick.png"));
+ w1.Add("L_stick", w15);
+ global::Gtk.IconSet w16 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_pickaxe.png"));
+ w1.Add("stone_pickaxe", w16);
+ global::Gtk.IconSet w17 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_axe.png"));
+ w1.Add("stone_axe", w17);
+ global::Gtk.IconSet w18 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.UI.Blanks.blank_multiplication.png"));
+ w1.Add("blank_multiplication", w18);
+ global::Gtk.IconSet w19 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_axe.png"));
+ w1.Add("wooden_axe", w19);
+ global::Gtk.IconSet w20 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_pickaxe.png"));
+ w1.Add("wooden_pickaxe", w20);
+ global::Gtk.IconSet w21 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.wooden_shovel.png"));
+ w1.Add("wooden_shovel", w21);
+ global::Gtk.IconSet w22 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Tools.stone_shovel.png"));
+ w1.Add("stone_shovel", w22);
+ global::Gtk.IconSet w23 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Underground.Structures.U_rock.png"));
+ w1.Add("U_rock", w23);
+ global::Gtk.IconSet w24 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Underground.Ground.U_roche.png"));
+ w1.Add("U_roche", w24);
+ global::Gtk.IconSet w25 = new global::Gtk.IconSet(global::Gdk.Pixbuf.LoadFromResource("Mundus.Icons.Land.Ground.L_hole.png"));
+ w1.Add("L_hole", w25);
w1.AddDefault();
}
}
diff --git a/Mundus/gtk-gui/gui.stetic b/Mundus/gtk-gui/gui.stetic
index 5a185ab..6675c89 100644
--- a/Mundus/gtk-gui/gui.stetic
+++ b/Mundus/gtk-gui/gui.stetic
@@ -7,14 +7,14 @@
<widget-library name="../bin/Debug/Mundus.exe" internal="true" />
</import>
<icon-factory>
- <icon-set id="grass">
+ <icon-set id="L_grass">
<source>
- <property name="Image">resource:Mundus.Icons.Land.Ground.grass.png</property>
+ <property name="Image">resource:Mundus.Icons.Land.Ground.L_grass.png</property>
</source>
</icon-set>
- <icon-set id="boulder">
+ <icon-set id="L_boulder">
<source>
- <property name="Image">resource:Mundus.Icons.Land.Items.boulder.png</property>
+ <property name="Image">resource:Mundus.Icons.Land.Structures.L_boulder.png</property>
</source>
</icon-set>
<icon-set id="player">
@@ -37,19 +37,14 @@
<property name="Image">resource:Mundus.Icons.UI.Blanks.blank_gear.png</property>
</source>
</icon-set>
- <icon-set id="land_rock">
+ <icon-set id="L_rock">
<source>
- <property name="Image">resource:Mundus.Icons.Land.Materials.land_rock.png</property>
+ <property name="Image">resource:Mundus.Icons.Land.Materials.L_rock.png</property>
</source>
</icon-set>
- <icon-set id="tree">
+ <icon-set id="L_tree">
<source>
- <property name="Image">resource:Mundus.Icons.Land.Items.tree.png</property>
- </source>
- </icon-set>
- <icon-set id="water">
- <source>
- <property name="Image">resource:Mundus.Icons.Land.Ground.water.png</property>
+ <property name="Image">resource:Mundus.Icons.Land.Structures.L_tree.png</property>
</source>
</icon-set>
<icon-set id="empty">
@@ -77,9 +72,9 @@
<property name="Image">resource:Mundus.Icons.UI.Hearth.1-4.png</property>
</source>
</icon-set>
- <icon-set id="stick">
+ <icon-set id="L_stick">
<source>
- <property name="Image">resource:Mundus.Icons.Land.Materials.stick.png</property>
+ <property name="Image">resource:Mundus.Icons.Land.Materials.L_stick.png</property>
</source>
</icon-set>
<icon-set id="stone_pickaxe">
@@ -117,6 +112,21 @@
<property name="Image">resource:Mundus.Icons.Land.Tools.stone_shovel.png</property>
</source>
</icon-set>
+ <icon-set id="U_rock">
+ <source>
+ <property name="Image">resource:Mundus.Icons.Underground.Structures.U_rock.png</property>
+ </source>
+ </icon-set>
+ <icon-set id="U_roche">
+ <source>
+ <property name="Image">resource:Mundus.Icons.Underground.Ground.U_roche.png</property>
+ </source>
+ </icon-set>
+ <icon-set id="L_hole">
+ <source>
+ <property name="Image">resource:Mundus.Icons.Land.Ground.L_hole.png</property>
+ </source>
+ </icon-set>
</icon-factory>
<widget class="Gtk.Window" id="Mundus.Views.Windows.NewGameWindow" design-size="581 275">
<property name="MemberName" />