public override bool ActivateOn(Lord lord, TriggerSignal signal)
 {
     return(signal.type == TriggerSignalType.PawnLost && lord.numPawnsLostViolently >= this.count);
 }
示例#2
0
 public override bool ActivateOn(Lord lord, TriggerSignal signal)
 {
     return(this.condition(signal));
 }
示例#3
0
 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);
 }
示例#6
0
 public void ReceiveMemo(string memo)
 {
     this.CheckTransitionOnSignal(TriggerSignal.ForMemo(memo));
 }
示例#7
0
 public override bool ActivateOn(Lord lord, TriggerSignal signal)
 {
     return(signal.type == TriggerSignalType.Memo && signal.memo == this.memo);
 }
示例#8
0
 public abstract bool ActivateOn(Lord lord, TriggerSignal signal);
示例#9
0
 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);
 }