-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOTE: CommonResources is now marked as an incompatible mod. ## Minor features - Added `solarSystemVolume` and `creditsVolume` to the `Volumes` module. Lets you change star system without setting up a black hole, and allows going straight to the fast, final, or kazoo credits scenes. ## Improvements - Ghost matter from detail props and from HazardVolumes now should be deactivated when going underwater. - Improved support for Discord Rich Presence - Water, sand, and lava will appear on title screen planets ## Bug fixes - Fixed funnels not working when the planet had no primary
- Loading branch information
Showing
18 changed files
with
380 additions
and
36 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
18 changes: 18 additions & 0 deletions
18
NewHorizons/Builder/Volumes/ChangeStarSystemVolumeBuilder.cs
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,18 @@ | ||
using NewHorizons.Components.Volumes; | ||
using NewHorizons.External.Modules; | ||
using UnityEngine; | ||
|
||
namespace NewHorizons.Builder.Volumes | ||
{ | ||
internal static class ChangeStarSystemVolumeBuilder | ||
{ | ||
public static WarpVolume Make(GameObject planetGO, Sector sector, VolumesModule.ChangeStarSystemVolumeInfo info) | ||
{ | ||
var volume = VolumeBuilder.Make<WarpVolume>(planetGO, sector, info); | ||
|
||
volume.TargetSolarSystem = info.targetStarSystem; | ||
|
||
return volume; | ||
} | ||
} | ||
} |
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,18 @@ | ||
using NewHorizons.Components.Volumes; | ||
using NewHorizons.External.Modules; | ||
using UnityEngine; | ||
|
||
namespace NewHorizons.Builder.Volumes | ||
{ | ||
internal static class CreditsVolumeBuilder | ||
{ | ||
public static LoadCreditsVolume Make(GameObject planetGO, Sector sector, VolumesModule.LoadCreditsVolumeInfo info) | ||
{ | ||
var volume = VolumeBuilder.Make<LoadCreditsVolume>(planetGO, sector, info); | ||
|
||
volume.creditsType = info.creditsType; | ||
|
||
return volume; | ||
} | ||
} | ||
} |
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
4 changes: 2 additions & 2 deletions
4
...ponents/Volumes/ChangeStarSystemVolume.cs → ...Components/Volumes/BlackHoleWarpVolume.cs
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 NewHorizons.External.Modules; | ||
using UnityEngine; | ||
|
||
namespace NewHorizons.Components.Volumes | ||
{ | ||
internal class LoadCreditsVolume : BaseVolume | ||
{ | ||
public VolumesModule.LoadCreditsVolumeInfo.CreditsType creditsType = VolumesModule.LoadCreditsVolumeInfo.CreditsType.Fast; | ||
|
||
public override void OnTriggerVolumeEntry(GameObject hitObj) | ||
{ | ||
if (hitObj.CompareTag("PlayerDetector")) | ||
{ | ||
switch(creditsType) | ||
{ | ||
case VolumesModule.LoadCreditsVolumeInfo.CreditsType.Fast: | ||
LoadManager.LoadScene(OWScene.Credits_Fast, LoadManager.FadeType.ToBlack); | ||
break; | ||
case VolumesModule.LoadCreditsVolumeInfo.CreditsType.Final: | ||
LoadManager.LoadScene(OWScene.Credits_Final, LoadManager.FadeType.ToBlack); | ||
break; | ||
case VolumesModule.LoadCreditsVolumeInfo.CreditsType.Kazoo: | ||
TimelineObliterationController.s_hasRealityEnded = true; | ||
LoadManager.LoadScene(OWScene.Credits_Fast, LoadManager.FadeType.ToBlack); | ||
break; | ||
} | ||
} | ||
} | ||
|
||
public override void OnTriggerVolumeExit(GameObject hitObj) | ||
{ | ||
|
||
} | ||
} | ||
} |
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,31 @@ | ||
using NewHorizons.External.Modules; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using UnityEngine; | ||
|
||
namespace NewHorizons.Components.Volumes | ||
{ | ||
internal class WarpVolume : BaseVolume | ||
{ | ||
public string TargetSolarSystem; | ||
|
||
public override void OnTriggerVolumeEntry(GameObject hitObj) | ||
{ | ||
if (hitObj.CompareTag("PlayerDetector")) | ||
{ | ||
if (Main.Instance.CurrentStarSystem != TargetSolarSystem) // Otherwise it really breaks idk why | ||
{ | ||
Main.Instance.ChangeCurrentStarSystem(TargetSolarSystem, PlayerState.AtFlightConsole()); | ||
} | ||
} | ||
} | ||
|
||
public override void OnTriggerVolumeExit(GameObject hitObj) | ||
{ | ||
|
||
} | ||
} | ||
} |
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
Oops, something went wrong.