Skip to content
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.

Commit

Permalink
v5.010
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Jun 7, 2020
1 parent 845789d commit c911184
Show file tree
Hide file tree
Showing 25 changed files with 44 additions and 12 deletions.
Binary file modified 1.1/Assemblies/NewAnimalSubproducts.dll
Binary file not shown.
Binary file modified 1.1/Source/DraftingPatcher/.vs/DraftingPatcher/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 1.1/Source/ExplosionTypes/.vs/ExplosionTypes/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RoomRoleWorker_GeneLab.cs" />
<Compile Include="UpdateNotice.cs" />
<Compile Include="UpdateNoticeGlobal.cs" />
<Compile Include="WorkGiver_AnimalResource.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,32 +12,25 @@ namespace NewAnimalSubproducts
public class UpdateNotice : MapComponent
{

public bool sentUpdateLetter = false;


public UpdateNotice(Map map) : base(map)
{

}

public override void ExposeData()
{
base.ExposeData();

Scribe_Values.Look<bool>(ref this.sentUpdateLetter, "sentUpdateLetter", false, true);


}


public override void MapComponentTick()
{
base.MapComponentTick();
if (!sentUpdateLetter)
if (!Current.Game.GetComponent<UpdateNoticeGlobal>().sentUpdateLetterGlobal)
{
if (!ModLister.HasActiveModWithName("Vanilla Textures Expanded - Genetic Rim"))
{
Find.LetterStack.ReceiveLetter("GR_UpdateLetterLabel".Translate(), "GR_UpdateLetterText".Translate(), DefDatabase<LetterDef>.GetNamed("GR_UpdateLetter"));
}
sentUpdateLetter = true;
Current.Game.GetComponent<UpdateNoticeGlobal>().sentUpdateLetterGlobal = true;
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RimWorld;
using Verse;
using UnityEngine;
using RimWorld.Planet;

namespace NewAnimalSubproducts
{
public class UpdateNoticeGlobal : GameComponent
{

public bool sentUpdateLetterGlobal = false;

public UpdateNoticeGlobal(Game game)
{

}

public override void ExposeData()
{
base.ExposeData();

Scribe_Values.Look<bool>(ref this.sentUpdateLetterGlobal, "sentUpdateLetterGlobal", false, true);


}




}


}

Original file line number Diff line number Diff line change
@@ -1 +1 @@
f46bbf873590da1181b5c37a6fe5e37f7dc45370
d96828e34be95dc3e2f14000076ac07b1101e5c8
Binary file not shown.
Binary file not shown.
Binary file modified 1.1/Source/NewHatcher/.vs/NewHatcher/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 1.1/Source/NewMachinery/.vs/NewMachinery/v15/.suo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit c911184

Please sign in to comment.