示例#1
0
 public AttackSituation(Sheet attacker, Sheet defender, AT.Battle.Action action = null)
 {
     this.attacker = attacker;
     this.defender = defender;
     this.action   = action;
     hitRoll       = new Gauge("To Hit");
     AC            = new Gauge("AC");
     rolls         = new List <int> ();
 }
 public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source = null)
 {
     Debug.LogError("You need to override the GaugeEffect's ApplyTo function");
 }
 public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source = null)
 {
     Debug.Log("taking damage, with details: " + gauge.ToString());
     c.TakeDamageEffect(this, source);
 }
示例#4
0
 public override void ApplyTo(Sheet c, AT.Battle.Action source = null)
 {
     c.TakeHealingEffect(this, source);
 }
示例#5
0
 public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source)
 {
     routine.Invoke(c, source);
 }
        public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source = null)
        {
            c.TakeCondition(condition);

            cachedChar = c;
        }