Prod #7
@ -52,13 +52,13 @@ namespace Items
|
||||
|
||||
while (closedList.Contains(cell) || cell.Item != null)
|
||||
{
|
||||
cell = _openList[Random.Range(0, _openList.Count - 1)];
|
||||
return;
|
||||
}
|
||||
|
||||
var type = GetWeightedType();
|
||||
while (type == null)
|
||||
{
|
||||
type = GetWeightedType();
|
||||
return;
|
||||
}
|
||||
var info = _itemInfos[type.ToString().Replace("Items.", "")];
|
||||
var obj = (Item)Activator.CreateInstance(type, info);
|
||||
|
@ -1,3 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 32fec41995024d6f9b110df79b751c97
|
||||
timeCreated: 1641238734
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 110 KiB After Width: | Height: | Size: 131 B |
Loading…
x
Reference in New Issue
Block a user