Added Moon Lord to SpawnBoss

This commit is contained in:
White 2015-07-16 20:06:54 +09:30
parent e4722c8c2f
commit 1ab66128ab
2 changed files with 10 additions and 4 deletions

View file

@ -243,6 +243,9 @@ namespace TShockAPI
return found;
}
//Random should not be generated in a method
Random r = new Random();
/// <summary>
/// Gets a random clear tile in range
/// </summary>
@ -264,7 +267,6 @@ namespace TShockAPI
tileY = startTileY;
break;
}
Random r = new Random();
tileX = startTileX + r.Next(tileXRange*-1, tileXRange);
tileY = startTileY + r.Next(tileYRange*-1, tileYRange);
j++;