Implemented loot GUI
This commit is contained in:
parent
1e95378bb1
commit
f2f6e8620a
43 changed files with 2135 additions and 20 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// See https://aka.ms/new-console-template for more information
|
||||
|
||||
using DungeonMapGenerator;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
|
||||
class Program
|
||||
{
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
using Random = System.Random;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DiceProbabilities;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
{
|
||||
|
|
@ -132,6 +133,7 @@ namespace DungeonMapGenerator
|
|||
if (extraLockCounter < maxExtraMonsterRoomLocks)
|
||||
{
|
||||
monsterRoom.ExtraLocks.Add(new Lock(adjacentRoom.Lock.GetLock()));
|
||||
monsterRoom.AddBlockingRoom(adjacentRoom);
|
||||
extraLockCounter++;
|
||||
}
|
||||
}
|
||||
|
|
@ -150,6 +152,7 @@ namespace DungeonMapGenerator
|
|||
if (extraLockCounter < maxExtraBossRooms)
|
||||
{
|
||||
bossRoom.ExtraLocks.Add(new Lock(adjacentRoom.Lock.GetLock()));
|
||||
bossRoom.AddBlockingRoom(adjacentRoom);
|
||||
extraLockCounter++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
{
|
||||
|
|
@ -39,7 +40,7 @@ namespace DungeonMapGenerator
|
|||
|
||||
for (int i = 0; i < BOSS_ROOM_DAMAGE; i++)
|
||||
{
|
||||
room.AddLoot(LootType.Diamond);
|
||||
room.AddLoot(LootType.Damage);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
using DungeonMapGenerator.Rooms;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
{
|
||||
public class EntranceRoom : Room
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using DungeonMapGenerator.Rooms;
|
||||
using Random = System.Random;
|
||||
|
||||
namespace DungeonMapGenerator
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace DungeonMapGenerator.Rooms
|
||||
{
|
||||
|
|
@ -12,5 +13,26 @@ namespace DungeonMapGenerator.Rooms
|
|||
}
|
||||
|
||||
public List<Lock> ExtraLocks = new List<Lock>();
|
||||
|
||||
[JsonProperty("BlockingRoomIds")]
|
||||
private List<int> _blockingRoomIds = new List<int>();
|
||||
private List<Room> _blockingRooms = new List<Room>();
|
||||
|
||||
public void AddBlockingRoom(Room room)
|
||||
{
|
||||
_blockingRooms.Add(room);
|
||||
_blockingRoomIds.Add(room.Id);
|
||||
}
|
||||
|
||||
public List<int> GetBlockingRoomIds()
|
||||
{
|
||||
return _blockingRoomIds;
|
||||
}
|
||||
|
||||
public List<Room> GetBlockingRooms()
|
||||
{
|
||||
return _blockingRooms;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue