mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Don't do funny entry name prepend for modded facts
This commit is contained in:
parent
7a457b8bb1
commit
af89532c4e
@ -230,5 +230,20 @@ namespace NewHorizons.Patches
|
||||
|
||||
AchievementHandler.OnRevealFact();
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(ShipLogFact), nameof(ShipLogFact.GetText))]
|
||||
public static bool ShipLogFact_GetText(ShipLogFact __instance, ref string __result)
|
||||
{
|
||||
if (ShipLogHandler.IsModdedFact(__instance.GetID()))
|
||||
{
|
||||
__result = TranslationHandler.GetTranslation(__instance._text, TranslationHandler.TextType.SHIPLOG);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user