Beispiel #1
0
 public override bool ActivateOn(Lord lord, TriggerSignal signal)
 {
     if (signal.type == TriggerSignalType.Tick)
     {
         if (data == null || !(data is TriggerData_FractionColonyDamageTaken))
         {
             BackCompatibility.TriggerDataFractionColonyDamageTakenNull(this, lord.Map);
         }
         float num = Mathf.Max((float)lord.initialColonyHealthTotal * desiredColonyDamageFraction, minDamage);
         return(lord.Map.damageWatcher.DamageTakenEver > Data.startColonyDamage + num);
     }
     return(false);
 }