public override void SlyDayPassed(TraderWorker_Sly sly) { base.SlyDayPassed(sly); if (totalUses >= 3) { int passedDays = (Find.TickManager.TicksGame - lastHelpTicks) / 60000; if (passedDays >= 15) { totalUses = 0; } } int checkInterval = (Find.TickManager.TicksGame - lastCheckRaidsInterval) / 60000; if (checkInterval >= 3) { lastCheckRaidsInterval = Find.TickManager.TicksGame; int raidsNum = Find.StoryWatcher.statsRecord.numRaidsEnemy - lastCheckRaids; tooDangerous = raidsNum >= 3 ? true : false; lastCheckRaids = Find.StoryWatcher.statsRecord.numRaidsEnemy; } }
public override void SlyArrival(TraderWorker_Sly sly) { base.SlyArrival(sly); avaliable = !Rand.Chance(randomAvaliableChance); }
public virtual void SlyDayPassed(TraderWorker_Sly sly) { }
public virtual void SlyArrival(TraderWorker_Sly sly) { }
public virtual void SlyGone(TraderWorker_Sly sly) { }
public override void SlyArrival(TraderWorker_Sly sly) { base.SlyArrival(sly); alreadyUsed = false; }