Skip to content

Commit

Permalink
v1.18.1.1 (12/30/17)
Browse files Browse the repository at this point in the history
v1.18.1.1 (12/30/17)
+ Fixed GeneticRim issue.
+ Fixed odd bug with blood loss while resting.
  • Loading branch information
jecrell committed Dec 30, 2017
1 parent c8d6092 commit a50cd4e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Rim of Madness - Vampires</name>
<author>Jecrell</author>
<targetVersion>0.18.0</targetVersion>
<description>V1.18.1.0
<description>V1.18.1.1
Adds vampires to RimWorld.

Heavily inspired by Vampire the Masquerade, this mod introduces a disease known as vampirism.
Expand Down
Binary file modified Assemblies/Vampire.dll
Binary file not shown.
Binary file modified Source/.vs/Vampire/v15/.suo
Binary file not shown.
28 changes: 23 additions & 5 deletions Source/Vampires/HarmonyPatches/HarmonyPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ static HarmonyPatches()


//Patches all JobGivers to consider sunlight for vampires before they do them.
var listOfJobGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies()
var listOfJobGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies().Where(
x => x.GetName().Name != "Harmony" &&
x.GetName().Name != "DraftingPatcher" &&
x.GetName().Name != "AnimalRangedVerbsUnlocker" &&
x.GetName().Name != "ExplosionTypes" &&
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher")
from assemblyType in domainAssembly.GetTypes()
where typeof(ThinkNode_JobGiver).IsAssignableFrom(assemblyType)
select assemblyType).ToArray();
Expand All @@ -83,7 +89,13 @@ where typeof(ThinkNode_JobGiver).IsAssignableFrom(assemblyType)
}
}
//Patches all JoyGivers to consider sunlight for vampires before they do them.
var listOfJoyGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies()
var listOfJoyGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies().Where(
x => x.GetName().Name != "Harmony" &&
x.GetName().Name != "DraftingPatcher" &&
x.GetName().Name != "AnimalRangedVerbsUnlocker" &&
x.GetName().Name != "ExplosionTypes" &&
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher")
from assemblyType in domainAssembly.GetTypes()
where typeof(JoyGiver).IsAssignableFrom(assemblyType)
select assemblyType).ToArray();
Expand All @@ -108,7 +120,13 @@ where typeof(JoyGiver).IsAssignableFrom(assemblyType)
}

//Patches all JoyGivers to consider sunlight for vampires before they do them.
var listOfWorkGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies()
var listOfWorkGivers = (from domainAssembly in AppDomain.CurrentDomain.GetAssemblies().Where(
x => x.GetName().Name != "Harmony" &&
x.GetName().Name != "DraftingPatcher" &&
x.GetName().Name != "AnimalRangedVerbsUnlocker" &&
x.GetName().Name != "ExplosionTypes" &&
x.GetName().Name != "NewAnimalSubproducts" &&
x.GetName().Name != "NewHatcher")
from assemblyType in domainAssembly.GetTypes()
where typeof(WorkGiver).IsAssignableFrom(assemblyType)
select assemblyType).ToArray();
Expand Down Expand Up @@ -318,8 +336,8 @@ where typeof(WorkGiver).IsAssignableFrom(assemblyType)
harmony.Patch(AccessTools.Method(typeof(Pawn), "MakeCorpse"),
new HarmonyMethod(typeof(HarmonyPatches), nameof(Vamp_MakeCorpse)), null);
//Makes vampires use one blood point to be forced awake from slumber.
harmony.Patch(AccessTools.Method(typeof(Pawn_JobTracker), "EndCurrentJob"),
new HarmonyMethod(typeof(HarmonyPatches), nameof(Vamp_EndCurrentJob)), null);
// harmony.Patch(AccessTools.Method(typeof(Pawn_JobTracker), "EndCurrentJob"),
// new HarmonyMethod(typeof(HarmonyPatches), nameof(Vamp_EndCurrentJob)), null);
//Vampires should tire very much during the daylight hours.
harmony.Patch(AccessTools.Method(typeof(Need_Rest), "NeedInterval"), null,
new HarmonyMethod(typeof(HarmonyPatches), nameof(Vamp_SleepyDuringDaylight)));
Expand Down

0 comments on commit a50cd4e

Please sign in to comment.