mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Log stuff
This commit is contained in:
parent
2e47d170f9
commit
01b42f1ace
@ -5,6 +5,7 @@ using NewHorizons.Utility;
|
|||||||
using OWML.Common;
|
using OWML.Common;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Random = UnityEngine.Random;
|
using Random = UnityEngine.Random;
|
||||||
|
using Logger = NewHorizons.Utility.Logger;
|
||||||
namespace NewHorizons.Builder.Body
|
namespace NewHorizons.Builder.Body
|
||||||
{
|
{
|
||||||
public static class AsteroidBeltBuilder
|
public static class AsteroidBeltBuilder
|
||||||
@ -19,6 +20,8 @@ namespace NewHorizons.Builder.Body
|
|||||||
if (belt.amount >= 0) count = belt.amount;
|
if (belt.amount >= 0) count = belt.amount;
|
||||||
if (count > 200) count = 200;
|
if (count > 200) count = 200;
|
||||||
|
|
||||||
|
Logger.Log($"Generating {count} asteroid belt around {bodyName}");
|
||||||
|
|
||||||
Random.InitState(belt.randomSeed);
|
Random.InitState(belt.randomSeed);
|
||||||
|
|
||||||
for (int i = 0; i < count; i++)
|
for (int i = 0; i < count; i++)
|
||||||
|
|||||||
@ -219,7 +219,8 @@ namespace NewHorizons.Handlers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
GameObject planetObject = GenerateBody(body, defaultPrimaryToSun);
|
Logger.Log($"Creating [{body.Config.name}]");
|
||||||
|
var planetObject = GenerateBody(body, defaultPrimaryToSun);
|
||||||
if (planetObject == null) return false;
|
if (planetObject == null) return false;
|
||||||
planetObject.SetActive(true);
|
planetObject.SetActive(true);
|
||||||
_dict.Add(planetObject.GetComponent<NHAstroObject>(), body);
|
_dict.Add(planetObject.GetComponent<NHAstroObject>(), body);
|
||||||
@ -361,6 +362,8 @@ namespace NewHorizons.Handlers
|
|||||||
ProxyBuilder.Make(go, body);
|
ProxyBuilder.Make(go, body);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Logger.LogVerbose($"Finished creating [{body.Config.name}]");
|
||||||
|
|
||||||
return go;
|
return go;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user