Skip to content

Commit

Permalink
Vampire Attendance Hotfix
Browse files Browse the repository at this point in the history
Fixes attendance issues with vampires and potentially other non-standard humanoids in attending cult worship and sacrifices.
  • Loading branch information
jecrell committed Oct 14, 2021
1 parent 69092a8 commit b809a9e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
Binary file modified 1.3/Assemblies/CultOfCthulhu.dll
Binary file not shown.
6 changes: 5 additions & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<li>CETeam.CombatExtended</li>
<li>syrchalis.traitvalue</li>
</loadAfter>
<description>1.0.23.4 (08-14-2021)
<description>1.0.23.5 (10-14-2021)


[h1]Gameplay expansion for RimWorld.[/h1]
Expand Down Expand Up @@ -100,6 +100,10 @@ Michael Cailler, Jigsawjohn , Daniel Schott, Penelope Charli Whitman, Jerome Gon
========================
Changelog
========================
1.0.23.5 (10-14-2021)
========================
Fixes issue with vampires and potentially other non-standard humanoid pawn attendance for worship and sacrifices

1.0.23.4 (08-14-2021)
========================
Adds in empty trade tags list to prevent issues with debug incident list menus
Expand Down
4 changes: 4 additions & 0 deletions About/Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.0.23.5 (10-14-2021)
========================
Fixes issue with vampires and potentially other non-standard humanoid pawn attendance for worship and sacrifices

1.0.23.4 (08-14-2021)
========================
Adds in empty trade tags list to prevent issues with debug incident list menus
Expand Down
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>CallofCthulhuCults</identifier>
<version>1.0.23.4</version>
<version>1.0.23.5</version>
<dependencies />
<incompatibleWith />
<loadBefore />
Expand Down
2 changes: 1 addition & 1 deletion About/Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.23.4
1.0.23.5
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,7 @@ public void StartToWorship(bool forced = false)

public void GetWorshipGroup(IEnumerable<IntVec3> inRangeCells, bool forced = false)
{
_ = Faction;
_ = this.GetRoom();


if (AvailableWorshippers == null || AvailableWorshippers.Count <= 0)
{
return;
Expand Down
2 changes: 1 addition & 1 deletion Source/CultOfCthulhu/Utilities/CultUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,7 @@ public static Pawn DetermineBestPreacher(Map map)

public static bool ShouldAttendeeKeepAttendingWorship(Pawn p)
{
return !p.Downed && (p.needs == null || !p.needs.food.Starving) && p.health.hediffSet.BleedRateTotal <= 0f && (p.needs.rest == null || p.needs.rest.CurCategory < RestCategory.Exhausted) && !p.health.hediffSet.HasTendableNonInjuryNonMissingPartHediff(false) && p.Awake() && !p.InAggroMentalState && !p.IsPrisoner;
return !p.Downed && (p?.needs == null || p?.needs?.food?.Starving != true) && p?.health?.hediffSet?.BleedRateTotal <= 0f && (p?.needs?.rest == null || p?.needs?.rest?.CurCategory < RestCategory.Exhausted) && p?.health?.hediffSet?.HasTendableNonInjuryNonMissingPartHediff(false) != true && p?.Awake() == true && p?.InAggroMentalState != true && p?.IsPrisoner != true;
}

//Checkyoself
Expand Down

0 comments on commit b809a9e

Please sign in to comment.