mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Added dialogue block after persistent condition
This commit is contained in:
parent
754af58b87
commit
31b2385156
@ -8,7 +8,8 @@
|
|||||||
"position":{"x": -0.3071011, "y": 2.741472, "z": -4.005298},
|
"position":{"x": -0.3071011, "y": 2.741472, "z": -4.005298},
|
||||||
"radius":1,
|
"radius":1,
|
||||||
"xmlFile":"AssetBundle/WarpDriveDialogue.xml",
|
"xmlFile":"AssetBundle/WarpDriveDialogue.xml",
|
||||||
"remoteTriggerPosition": {"x": -0.05656214, "y": 0.5362684, "z": 0.5467669}
|
"remoteTriggerPosition": {"x": -0.05656214, "y": 0.5362684, "z": 0.5467669},
|
||||||
|
"blockAfterPersistentCondition" : "KnowsAboutWarpDrive"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,6 +15,9 @@ namespace NewHorizons.Builder.Props
|
|||||||
{
|
{
|
||||||
public static void Make(GameObject go, Sector sector, PropModule.DialogueInfo info, IModHelper mod)
|
public static void Make(GameObject go, Sector sector, PropModule.DialogueInfo info, IModHelper mod)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (PlayerData._currentGameSave.GetPersistentCondition(info.blockAfterPersistentCondition)) return;
|
||||||
|
|
||||||
var dialogue = MakeConversationZone(go, sector, info, mod);
|
var dialogue = MakeConversationZone(go, sector, info, mod);
|
||||||
if (info.remoteTriggerPosition != null) MakeRemoteDialogueTrigger(go, sector, info, dialogue);
|
if (info.remoteTriggerPosition != null) MakeRemoteDialogueTrigger(go, sector, info, dialogue);
|
||||||
}
|
}
|
||||||
|
|||||||
2
NewHorizons/External/PropModule.cs
vendored
2
NewHorizons/External/PropModule.cs
vendored
@ -66,7 +66,7 @@ namespace NewHorizons.External
|
|||||||
public float radius = 1f;
|
public float radius = 1f;
|
||||||
public string xmlFile;
|
public string xmlFile;
|
||||||
public MVector3 remoteTriggerPosition;
|
public MVector3 remoteTriggerPosition;
|
||||||
public string persistentCondition;
|
public string blockAfterPersistentCondition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -115,10 +115,7 @@ namespace NewHorizons
|
|||||||
_shipWarpController = GameObject.Find("Ship_Body").AddComponent<ShipWarpController>();
|
_shipWarpController = GameObject.Find("Ship_Body").AddComponent<ShipWarpController>();
|
||||||
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => ShipLogBuilder.Init());
|
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => ShipLogBuilder.Init());
|
||||||
|
|
||||||
if (!PlayerData._currentGameSave.GetPersistentCondition("KnowsAboutWarpDrive"))
|
LoadBody(LoadConfig(this, "AssetBundle/WarpDriveConfig.json"));
|
||||||
{
|
|
||||||
LoadBody(LoadConfig(this, "AssetBundle/WarpDriveConfig.json"));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => AstroObjectLocator.GetAstroObject("MapSatellite").gameObject.AddComponent<MapSatelliteOrbitFix>());
|
Instance.ModHelper.Events.Unity.FireOnNextUpdate(() => AstroObjectLocator.GetAstroObject("MapSatellite").gameObject.AddComponent<MapSatelliteOrbitFix>());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user