public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.PawnLost && lord.numPawnsLostViolently >= this.count); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(this.condition(signal)); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.Tick && Find.TickManager.TicksGame % this.interval == 0 && Rand.Value < this.chancePerInterval); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.Tick && (this.thing.DestroyedOrNull() || (float)this.thing.HitPoints < (1f - this.damageFraction) * (float)this.thing.MaxHitPoints)); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.BuildingDamaged && signal.dinfo.Def.externalViolence && signal.thing.def.category == ThingCategory.Building && signal.dinfo.Instigator != null && signal.dinfo.Instigator.Faction == Faction.OfPlayer && signal.thing.Faction != Faction.OfPlayer && Rand.Value < this.chance); }
public void ReceiveMemo(string memo) { this.CheckTransitionOnSignal(TriggerSignal.ForMemo(memo)); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.Memo && signal.memo == this.memo); }
public abstract bool ActivateOn(Lord lord, TriggerSignal signal);
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.PawnLost && (float)lord.numPawnsLostViolently >= (float)lord.numPawnsEverGained * this.fraction); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(base.ActivateOn(lord, signal) && Find.TickManager.TicksGame - lord.lastPawnHarmTick >= 300); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.PawnLost && (signal.condition == PawnLostCondition.MadePrisoner || signal.condition == PawnLostCondition.IncappedOrKilled)); }
public override bool ActivateOn(Lord lord, TriggerSignal signal) { return(signal.type == TriggerSignalType.PawnLost && signal.condition == PawnLostCondition.IncappedOrKilled && signal.Pawn.Dead); }