More background sprites (+ some sprites swing slightly, sprites are less likely to be placed in unreachable places)
This commit is contained in:
@@ -16,6 +16,8 @@ namespace Barotrauma
|
||||
|
||||
public readonly Vector2 RandomRotation;
|
||||
|
||||
public readonly float SwingAmount;
|
||||
|
||||
public readonly int Commonness;
|
||||
|
||||
public BackgroundSpritePrefab(XElement element)
|
||||
@@ -35,6 +37,8 @@ namespace Barotrauma
|
||||
RandomRotation.X = MathHelper.ToRadians(RandomRotation.X);
|
||||
RandomRotation.Y = MathHelper.ToRadians(RandomRotation.Y);
|
||||
|
||||
SwingAmount = MathHelper.ToRadians(ToolBox.GetAttributeFloat(element, "swingamount", 0.0f));
|
||||
|
||||
foreach (XElement subElement in element.Elements())
|
||||
{
|
||||
if (subElement.Name.ToString().ToLowerInvariant() != "sprite") continue;
|
||||
|
||||
Reference in New Issue
Block a user