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 UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
using Logger = NewHorizons.Utility.Logger;
|
||||
namespace NewHorizons.Builder.Body
|
||||
{
|
||||
public static class AsteroidBeltBuilder
|
||||
@ -19,6 +20,8 @@ namespace NewHorizons.Builder.Body
|
||||
if (belt.amount >= 0) count = belt.amount;
|
||||
if (count > 200) count = 200;
|
||||
|
||||
Logger.Log($"Generating {count} asteroid belt around {bodyName}");
|
||||
|
||||
Random.InitState(belt.randomSeed);
|
||||
|
||||
for (int i = 0; i < count; i++)
|
||||
|
||||
@ -219,7 +219,8 @@ namespace NewHorizons.Handlers
|
||||
{
|
||||
try
|
||||
{
|
||||
GameObject planetObject = GenerateBody(body, defaultPrimaryToSun);
|
||||
Logger.Log($"Creating [{body.Config.name}]");
|
||||
var planetObject = GenerateBody(body, defaultPrimaryToSun);
|
||||
if (planetObject == null) return false;
|
||||
planetObject.SetActive(true);
|
||||
_dict.Add(planetObject.GetComponent<NHAstroObject>(), body);
|
||||
@ -361,6 +362,8 @@ namespace NewHorizons.Handlers
|
||||
ProxyBuilder.Make(go, body);
|
||||
});
|
||||
|
||||
Logger.LogVerbose($"Finished creating [{body.Config.name}]");
|
||||
|
||||
return go;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user