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); }
public override void Complete() { SpellDb.GetSpell(SpellName).HaveEffect(Actor, Tile); }
public CastSpellActivity(SpellName spellName, Character actor, Tile targetTile) : base(actor, 10, "Casting " + SpellDb.GetSpell(spellName).Name) { SpellName = spellName; Tile = targetTile; }