mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Merge branch 'dev' into triplanar-heightmap
This commit is contained in:
commit
27a97d824b
@ -5,6 +5,11 @@ namespace NewHorizons.External.Modules.WarpPad
|
|||||||
[JsonObject]
|
[JsonObject]
|
||||||
public abstract class NomaiWarpPadInfo : GeneralPropInfo
|
public abstract class NomaiWarpPadInfo : GeneralPropInfo
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// This can be anything. To have a warp pad transmitter send you to a receiver you must give them the same frequency.
|
||||||
|
/// Try to make it something unique so it does not overlap with other warp pad pairs.
|
||||||
|
/// Futhermore, multiple transmitters can send you to the same receiver if they all have the same frequency.
|
||||||
|
/// </summary>
|
||||||
public string frequency;
|
public string frequency;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,6 +145,7 @@ namespace NewHorizons.Handlers
|
|||||||
|
|
||||||
var hasParentBody = !string.IsNullOrEmpty(system.Config.Vessel?.vesselSpawn?.parentBody);
|
var hasParentBody = !string.IsNullOrEmpty(system.Config.Vessel?.vesselSpawn?.parentBody);
|
||||||
var hasPhysics = system.Config.Vessel?.hasPhysics ?? !hasParentBody;
|
var hasPhysics = system.Config.Vessel?.hasPhysics ?? !hasParentBody;
|
||||||
|
var planetGO = hasParentBody ? vesselObject.transform.parent.gameObject : null;
|
||||||
|
|
||||||
if (hasPhysics)
|
if (hasPhysics)
|
||||||
{
|
{
|
||||||
@ -167,8 +168,6 @@ namespace NewHorizons.Handlers
|
|||||||
var attachWarpExitToVessel = system.Config.Vessel?.warpExit?.attachToVessel ?? false;
|
var attachWarpExitToVessel = system.Config.Vessel?.warpExit?.attachToVessel ?? false;
|
||||||
var warpExitParent = vesselWarpController._targetWarpPlatform.transform.parent;
|
var warpExitParent = vesselWarpController._targetWarpPlatform.transform.parent;
|
||||||
|
|
||||||
var planetGO = hasPhysics ? vesselObject.transform.parent.gameObject : null;
|
|
||||||
|
|
||||||
var warpExit = GeneralPropBuilder.MakeFromExisting(vesselWarpController._targetWarpPlatform.gameObject, planetGO, null, system.Config.Vessel?.warpExit, parentOverride: attachWarpExitToVessel ? warpExitParent : null);
|
var warpExit = GeneralPropBuilder.MakeFromExisting(vesselWarpController._targetWarpPlatform.gameObject, planetGO, null, system.Config.Vessel?.warpExit, parentOverride: attachWarpExitToVessel ? warpExitParent : null);
|
||||||
if (attachWarpExitToVessel)
|
if (attachWarpExitToVessel)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -206,11 +206,11 @@ namespace NewHorizons
|
|||||||
radius = radius,
|
radius = radius,
|
||||||
range = range,
|
range = range,
|
||||||
xmlFile = xmlFile,
|
xmlFile = xmlFile,
|
||||||
remoteTrigger = new RemoteTriggerInfo()
|
remoteTrigger = remoteTriggerRadius > 0f ? new RemoteTriggerInfo()
|
||||||
{
|
{
|
||||||
position = null,
|
position = null,
|
||||||
radius = remoteTriggerRadius,
|
radius = remoteTriggerRadius,
|
||||||
},
|
} : null,
|
||||||
};
|
};
|
||||||
|
|
||||||
return DialogueBuilder.Make(root, null, info, mod);
|
return DialogueBuilder.Make(root, null, info, mod);
|
||||||
|
|||||||
@ -2525,7 +2525,8 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"frequency": {
|
"frequency": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "This can be anything. To have a warp pad transmitter send you to a receiver you must give them the same frequency. \nTry to make it something unique so it does not overlap with other warp pad pairs.\nFuthermore, multiple transmitters can send you to the same receiver if they all have the same frequency."
|
||||||
},
|
},
|
||||||
"rotation": {
|
"rotation": {
|
||||||
"description": "Rotation of the object",
|
"description": "Rotation of the object",
|
||||||
@ -2606,7 +2607,8 @@
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"frequency": {
|
"frequency": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"description": "This can be anything. To have a warp pad transmitter send you to a receiver you must give them the same frequency. \nTry to make it something unique so it does not overlap with other warp pad pairs.\nFuthermore, multiple transmitters can send you to the same receiver if they all have the same frequency."
|
||||||
},
|
},
|
||||||
"rotation": {
|
"rotation": {
|
||||||
"description": "Rotation of the object",
|
"description": "Rotation of the object",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user