mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add timber hearth cairn variant
This commit is contained in:
parent
62fec9dc68
commit
8ad674b643
@ -23,6 +23,7 @@ namespace NewHorizons.Builder.Props
|
||||
private static GameObject _computerPrefab;
|
||||
private static GameObject _preCrashComputerPrefab;
|
||||
private static GameObject _cairnPrefab;
|
||||
private static GameObject _cairnVariantPrefab;
|
||||
private static GameObject _recorderPrefab;
|
||||
private static GameObject _preCrashRecorderPrefab;
|
||||
private static GameObject _trailmarkerPrefab;
|
||||
@ -112,6 +113,12 @@ namespace NewHorizons.Builder.Props
|
||||
_cairnPrefab.transform.rotation = Quaternion.identity;
|
||||
}
|
||||
|
||||
if (_cairnVariantPrefab == null)
|
||||
{
|
||||
_cairnVariantPrefab = SearchUtilities.Find("TimberHearth_Body/Sector_TH/Sector_NomaiMines/Interactables_NomaiMines/Prefab_NOM_TH_Cairn_Arc").InstantiateInactive().Rename("Prefab_NOM_Cairn").DontDestroyOnLoad();
|
||||
_cairnVariantPrefab.transform.rotation = Quaternion.identity;
|
||||
}
|
||||
|
||||
if (_recorderPrefab == null)
|
||||
{
|
||||
_recorderPrefab = SearchUtilities.Find("Comet_Body/Prefab_NOM_Shuttle/Sector_NomaiShuttleInterior/Interactibles_NomaiShuttleInterior/Prefab_NOM_Recorder").InstantiateInactive().Rename("Prefab_NOM_Recorder").DontDestroyOnLoad();
|
||||
@ -390,8 +397,9 @@ namespace NewHorizons.Builder.Props
|
||||
return computerObject;
|
||||
}
|
||||
case PropModule.NomaiTextInfo.NomaiTextType.Cairn:
|
||||
case PropModule.NomaiTextInfo.NomaiTextType.CairnVariant:
|
||||
{
|
||||
var cairnObject = _cairnPrefab.InstantiateInactive();
|
||||
var cairnObject = (info.type == PropModule.NomaiTextInfo.NomaiTextType.CairnVariant ? _cairnVariantPrefab : _cairnPrefab).InstantiateInactive();
|
||||
|
||||
if (!string.IsNullOrEmpty(info.rename))
|
||||
{
|
||||
|
||||
2
NewHorizons/External/Modules/PropModule.cs
vendored
2
NewHorizons/External/Modules/PropModule.cs
vendored
@ -512,6 +512,8 @@ namespace NewHorizons.External.Modules
|
||||
[EnumMember(Value = @"preCrashComputer")] PreCrashComputer = 6,
|
||||
|
||||
[EnumMember(Value = @"trailmarker")] Trailmarker = 7,
|
||||
|
||||
[EnumMember(Value = @"cairnVariant")] CairnVariant = 9,
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user