Exemplo n.º 1
0
 static void Postfix()
 {
     if (HotseatSettings.enableStorytellerSwitching)
     {
         //Log.Message("TryExecute Postfix: Storyteller before is:" + Current.Game.storyteller.def.defName);
         HotseatUtils.TryChangeStoryTeller(HotseatSettings.changeOnEventChance);
     }
 }
Exemplo n.º 2
0
 public override void GameComponentTick()
 {
     base.GameComponentTick();
     if (HotseatSettings.enableStorytellerSwitching)
     {
         int currentTick = Find.TickManager.TicksGame;
         if (currentTick % 900000 == 0)      //Quadrum
         {
             if (currentTick % 3600000 == 0) //Year
             {
                 //Log.Message("Year happened. Check if storyteller changed.");
                 HotseatUtils.TryChangeStoryTeller(HotseatSettings.changeOnYearChance);
                 return;
             }
             //Log.Message("Quadrum happened. Check if storyteller changed.");
             HotseatUtils.TryChangeStoryTeller(HotseatSettings.changeOnQuadrumChance);
         }
     }
 }