Пример #1
0
        public override void Complete()
        {
            switch (First.ItemId)
            {
            case HeldItemId.ScrollDisarmTrap:
                SpellDb.GetSpell(SpellName.DisarmTraps).HaveEffect(Actor, Tile);
                break;

            case HeldItemId.ScrollSparkFire:
                SpellDb.GetSpell(SpellName.SparkFire).HaveEffect(Actor, Tile);
                break;
            }

            Actor.HeldItems.Remove(First);
        }
Пример #2
0
 public override void Complete()
 {
     SpellDb.GetSpell(SpellName).HaveEffect(Actor, Tile);
 }
Пример #3
0
 public CastSpellActivity(SpellName spellName, Character actor, Tile targetTile) :
     base(actor, 10, "Casting " + SpellDb.GetSpell(spellName).Name)
 {
     SpellName = spellName;
     Tile      = targetTile;
 }