コード例 #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> ();
 }
コード例 #2
0
 public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source = null)
 {
     Debug.LogError("You need to override the GaugeEffect's ApplyTo function");
 }
コード例 #3
0
 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);
 }
コード例 #6
0
        public override void ApplyTo(AT.Character.Sheet c, AT.Battle.Action source = null)
        {
            c.TakeCondition(condition);

            cachedChar = c;
        }