Skip to content

Commit

Permalink
Fix for Advanced Animal Framework
Browse files Browse the repository at this point in the history
Patches AI givers to exclude advanced animal framework, which prevents red error messages.
  • Loading branch information
jecrell committed Aug 9, 2021
1 parent b4ded6a commit c4f969e
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 8 deletions.
Binary file modified 1.3/Assemblies/Vampire.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 @@ -28,7 +28,7 @@
<li>jecrell.jecstools</li>
<li>Dubwise.DubsBadHygiene</li>
</loadAfter>
<description>1.23.0.1 (08-04-2021)
<description>1.23.0.2 (08-09-2021)

Adds vampires to RimWorld.

Expand All @@ -49,6 +49,10 @@ Michael Cailler, Jigsawjohn , Daniel Schott, Penelope Charli Whitman, Jerome Gon
========================
Changelog
========================
1.23.0.2 (08-09-2021)
========================
Small fix to prevent red errors relating to Advanced Animal Framework

1.23.0.1 (08-04-2021)
========================
Monument Markers with Sarcophagi inside will no longer fail to complete being built.
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.23.0.2 (08-09-2021)
========================
Small fix to prevent red errors relating to Advanced Animal Framework

1.23.0.1 (08-04-2021)
========================
Monument Markers with Sarcophagi inside will no longer fail to complete being built.
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>RimOfMadness-Vampires</identifier>
<version>1.23.0.1</version>
<version>1.23.0.2</version>
<dependencies>
<li>jecrell.jecstools</li>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion About/Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.23.0.1
1.23.0.2
9 changes: 9 additions & 0 deletions Source/Vampires/HarmonyPatches/HarmonyPatches_Givers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public static void HarmonyPatches_Givers(Harmony harmony)
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher" &&
x.GetName().Name != "SmurfeRims" &&
x.GetName().Name != "AnimalJobs" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalVehicles" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalWeaponFramework" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "Bugs")
from assemblyType in domainAssembly.GetTypes()
where typeof(ThinkNode_JobGiver).IsAssignableFrom(assemblyType)
Expand Down Expand Up @@ -61,6 +64,9 @@ where typeof(ThinkNode_JobGiver).IsAssignableFrom(assemblyType)
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher" &&
x.GetName().Name != "SmurfeRims" &&
x.GetName().Name != "AnimalJobs" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalVehicles" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalWeaponFramework" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "Bugs")
from assemblyType in domainAssembly.GetTypes()
where typeof(JoyGiver).IsAssignableFrom(assemblyType)
Expand Down Expand Up @@ -95,6 +101,9 @@ where typeof(JoyGiver).IsAssignableFrom(assemblyType)
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher" &&
x.GetName().Name != "SmurfeRims" &&
x.GetName().Name != "AnimalJobs" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalVehicles" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "AnimalWeaponFramework" && // added to stop errors with Advanced Animal Framework
x.GetName().Name != "Bugs")
from assemblyType in domainAssembly.GetTypes()
where typeof(WorkGiver).IsAssignableFrom(assemblyType)
Expand Down
10 changes: 5 additions & 5 deletions updateinfo
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
==============================

Rim of Madness - Vampires Update
v1.23.0.0 (07-29-2021)
v1.23.0.1 (08-04-2021)
====================

Added support for RimWorld 1.3. Renounce title and execute no longer block the Vampirism icon.
Monument Markers with Sarcophagi inside will no longer fail to complete being built.
--------------------

Download now on...
Expand All @@ -25,9 +25,9 @@ Discuss the mod on...
[img width=260]https://raw.githubusercontent.com/Rim-Of-Madness-Team/Rim-of-Madness---Vampires/master/About/Preview.png[/img]
[hr]
[b]Rim of Madness - Vampires
Version: 1.23.0.0
Updated: 07-29-2021
Description: [color=orange]Added support for RimWorld 1.3. Renounce title and execute no longer block the Vampirism icon.[/color]
Version: 1.23.0.1
Updated: 08-04-2021
Description: [color=orange]Monument Markers with Sarcophagi inside will no longer fail to complete being built.[/color]
[hr]
[b]Download now on...[/b]
[url=https://www.patreon.com/posts/22142186]Patreon[/url]
Expand Down

0 comments on commit c4f969e

Please sign in to comment.