mirror of
https://github.com/Xevion/RimWorld_ResearchWhatever.git
synced 2025-12-16 14:13:10 -06:00
1.1.2
This commit is contained in:
@@ -8,9 +8,9 @@ using Verse.Sound;
|
||||
namespace ResearchWhatever.Patches
|
||||
{
|
||||
[HarmonyPatch(typeof(ResearchManager), "FinishProject")]
|
||||
public static class ResearchManager_FinishProject_ResearchWhateverPatch
|
||||
static class ResearchManager_FinishProject_ResearchWhateverPatch
|
||||
{
|
||||
public static void Prefix(ResearchManager __instance, ref bool doCompletionDialog)
|
||||
internal static void Prefix(ResearchProjectDef proj, ref bool doCompletionDialog)
|
||||
{
|
||||
if (doCompletionDialog)
|
||||
{
|
||||
@@ -20,18 +20,18 @@ namespace ResearchWhatever.Patches
|
||||
|
||||
doCompletionDialog = false;
|
||||
|
||||
var currentProj = __instance.GetProject();
|
||||
//var currentProj = __instance.GetProject();
|
||||
switch (comp.NotifyMode)
|
||||
{
|
||||
case ResearchWhateverNotifyMode.rwnLetter:
|
||||
Find.LetterStack.ReceiveLetter("ResearchFinished".Translate(currentProj.LabelCap), currentProj.description, LetterDefOf.PositiveEvent, null, null, null, null, null);
|
||||
case ResearchWhateverNotifyMode.rwnLetter:
|
||||
Find.LetterStack.ReceiveLetter("ResearchFinished".Translate(proj.LabelCap), proj.description, LetterDefOf.PositiveEvent, null, null, null, null, null);
|
||||
break;
|
||||
case ResearchWhateverNotifyMode.rwnNotice:
|
||||
Messages.Message("ResearchFinished".Translate(currentProj.LabelCap).CapitalizeFirst(), MessageTypeDefOf.SilentInput);
|
||||
Messages.Message("ResearchFinished".Translate(proj.LabelCap).CapitalizeFirst(), MessageTypeDefOf.SilentInput);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user