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 (#452)
resolves #444 
This commit is contained in:
commit
041e915fa5
@ -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))
|
||||
{
|
||||
|
||||
4
NewHorizons/External/Modules/PropModule.cs
vendored
4
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 = 8,
|
||||
}
|
||||
|
||||
[JsonConverter(typeof(StringEnumConverter))]
|
||||
@ -1001,4 +1003,4 @@ namespace NewHorizons.External.Modules
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1330,7 +1330,8 @@
|
||||
"Recorder",
|
||||
"PreCrashRecorder",
|
||||
"PreCrashComputer",
|
||||
"Trailmarker"
|
||||
"Trailmarker",
|
||||
"CairnVariant"
|
||||
],
|
||||
"enum": [
|
||||
"wall",
|
||||
@ -1340,7 +1341,8 @@
|
||||
"recorder",
|
||||
"preCrashRecorder",
|
||||
"preCrashComputer",
|
||||
"trailmarker"
|
||||
"trailmarker",
|
||||
"cairnVariant"
|
||||
]
|
||||
},
|
||||
"NomaiTextLocation": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user