-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CustomiseYourStorage: *) Version number increased to 1.0.0.3 *) Items added to the droppod locker will now be added to KnownTech as well, unlocking any recipes that depend on acquiring those items; simply pulling the items out of the container does not trigger this, and thus blueprints which should logically have been unlocked with those items previously were not. DWEquipmentBonanza *) Version increased to 0.13.0.5 *) (SN1 only) Databox added for Headlamp in Jellyshroom Caves *) Attempted fix for NullReferenceException in VehicleCharger.OnBeforeSerialize() (fix incomplete)
- Loading branch information
Showing
16 changed files
with
216 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
|
||
namespace DWEquipmentBonanza.MonoBehaviours | ||
{ | ||
#if SUBNAUTICA | ||
public class OverrideTransform : MonoBehaviour | ||
{ | ||
public IEnumerator Start() | ||
{ | ||
GameObject go = this.gameObject; | ||
yield return new WaitUntil(() => (go ??= this.gameObject) != null); | ||
yield return new WaitForEndOfFrame(); | ||
|
||
if (Main.saveCache.HeadlampDataboxPosition == Vector3.zero) | ||
{ | ||
//Common.Log.LogDebug($"Generating new headlamp databox position"); | ||
var rng = new System.Random(); | ||
// Generate a random position that is within +/- 1.8m of (-403, -232.4, -98.48), and a random rotation around that point | ||
Main.saveCache.HeadlampDataboxPosition = new Vector3((float)(-404.1f + rng.NextDouble() * 1.8f), -232.35f, (float)(-99.38f + rng.NextDouble() * 1.8f)); | ||
Main.saveCache.HeadlampDataboxRotation = new Vector3(0f, (float)(rng.NextDouble() * 360f), 0f); | ||
Main.saveCache.Save(); | ||
} | ||
|
||
go.transform.position = Main.saveCache.HeadlampDataboxPosition; | ||
go.transform.eulerAngles = Main.saveCache.HeadlampDataboxRotation; | ||
} | ||
} | ||
#endif | ||
} |
Oops, something went wrong.