Artifacts are spread out better throughout the levels

This commit is contained in:
Regalis
2016-08-28 20:28:24 +03:00
parent 2c5d272acd
commit 503883a885
3 changed files with 12 additions and 8 deletions
+2 -1
View File
@@ -31,7 +31,8 @@ namespace Barotrauma
protected override void Start()
{
Vector2 position = Level.Loaded.GetRandomItemPos(Level.PositionType.Cave, 30.0f);
Vector2 position = Level.Loaded.GetRandomItemPos(
Level.PositionType.Cave | Level.PositionType.MainPath | Level.PositionType.Ruin, 500.0f, 30.0f);
item = new Item(itemPrefab, position, null);
item.MoveWithLevel = true;
@@ -49,7 +49,7 @@ namespace Barotrauma
public override void Start(Level level)
{
Vector2 position = Level.Loaded.GetRandomItemPos(spawnPositionType, 30.0f);
Vector2 position = Level.Loaded.GetRandomItemPos(spawnPositionType, 100.0f, 30.0f);
item = new Item(itemPrefab, position, null);
item.MoveWithLevel = true;