Skip to content

Commit

Permalink
Removed old Pack classes
Browse files Browse the repository at this point in the history
  • Loading branch information
RecompiledBirds committed Jul 29, 2022
1 parent abe3de7 commit 59c185c
Show file tree
Hide file tree
Showing 22 changed files with 173 additions and 1,257 deletions.
Binary file modified 1.3/Assemblies/RimVali_Far_From_Avalon.dll
Binary file not shown.
198 changes: 0 additions & 198 deletions 1.3/Defs/PackTypeDefs/Base.xml

This file was deleted.

1 change: 1 addition & 0 deletions 1.3/Defs/ThoughtDefs/Thoughts_Pack.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>

<ThoughtDef>
<defName>AvaliPackLoss</defName>
<nullifyingTraits>
Expand Down
4 changes: 3 additions & 1 deletion Source/DeathWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
using RimWorld;
using Verse;
using Rimvali.Rewrite.Packs;
using RimValiCore;

namespace AvaliMod
{
public class DeathActionWorker_Test : DeathActionWorker
Expand All @@ -28,7 +30,7 @@ public override void PawnDied(Corpse corpse)
}


var deathDate = new DeathDate(pawn)
var deathDate = new RimworldDeathDate(pawn)
{
day = GenDate.DayOfYear(1, Find.WorldGrid.LongLatOf(corpse.Map.Tile).x),
};
Expand Down
2 changes: 1 addition & 1 deletion Source/HediffStuff/ShowText/ShowTextComp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void ShowText(List<ShowTextClass> showTextClasses, int item)

if (pawn.Position.ShouldSpawnMotesAt(pawn.Map))
{
if (mustBeSharingRoomWithPack && pawn.CheckIfPackmatesInRoom())
if (mustBeSharingRoomWithPack && pawn.PackMatesInRoom())
{
SpawnText(pawn, textToShow, mustBeAwake, genderLock, gender, timeToFade, mustBeAsleep);
}
Expand Down
Loading

0 comments on commit 59c185c

Please sign in to comment.