debug mode to stop spamming log

This commit is contained in:
c0ffeeeeeeee 2020-08-28 00:24:55 -07:00
parent c872e33a65
commit 6ab4a43498
6 changed files with 50 additions and 29 deletions

View file

@ -15,7 +15,8 @@ namespace Rimworld_Animations {
class HarmonyPatch_PlayAnimJoinInBedRMB {
public static void Prefix(ref Job job) {
if(job.def == xxx.casual_sex) {
Log.Message("Replacing vanilla RJW JoinInBed JobDriver for animation JobDriver");
if (AnimationSettings.debugMode || RJWSettings.DevMode)
Log.Message("Replacing vanilla RJW JoinInBed JobDriver for animation JobDriver");
job = new Job(DefDatabase<JobDef>.GetNamed("JoinInBedAnimation", true), job.targetA, job.targetB, job.targetC);
}