Skip to content
Snippets Groups Projects
Commit cb6ca43a authored by Robin Ruud Kristensen's avatar Robin Ruud Kristensen
Browse files

changed how chest array works

parent 857cc8ed
No related branches found
No related tags found
1 merge request!79Ruud1
......@@ -90,7 +90,7 @@ namespace Bigsock
if (enemies.Length == 0)
{
chests[roomNr + (7*(levels - 1))].SetActive(true);
chests[roomNr].SetActive(true);
if(roomNr + 1 < NeighbourMapGenerator.GetRoomListCount() - 1)
{
roomNr++;
......@@ -98,7 +98,7 @@ namespace Bigsock
}
if(boss.Length == 0)
{
chests[1 + roomNr + (7 * (levels - 1))].SetActive(true);
chests[1 + roomNr].SetActive(true);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment