Added Moon Lord to SpawnBoss
This commit is contained in:
parent
e4722c8c2f
commit
1ab66128ab
2 changed files with 10 additions and 4 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue