Skip to content

Commit

Permalink
Room Name Bug Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiWorm0 committed Aug 24, 2022
1 parent 73f569c commit f3e82d9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions LevelImposter/Core/Builders/RoomBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@ namespace LevelImposter.Core
{
public class RoomBuilder : Builder
{
private int roomId = 1;
private byte roomId = 1;
private static Dictionary<Guid, SystemTypes> systemDB = new Dictionary<Guid, SystemTypes>();

public void Build(LIElement elem, GameObject obj)
{
if (elem.type != "util-room")
return;

SystemTypes systemType = (SystemTypes)roomId;
roomId++;
SystemTypes systemType;
do
{
systemType = (SystemTypes)roomId;
roomId++;
}
while (systemType == SystemTypes.LowerEngine || systemType == SystemTypes.UpperEngine);

PlainShipRoom shipRoom = obj.AddComponent<PlainShipRoom>();
shipRoom.RoomId = systemType;
Expand Down

0 comments on commit f3e82d9

Please sign in to comment.