public void Attack(IWeapon weapon, ICreature attacker, ICreature target, World world)
        {
            ITemporaryEffect e = _effect.Clone();

            e.Id = Guid.NewGuid();
            attacker.AddTemporaryEffect(e);
        }
 public void Use(IItem item, World world, ICreature user)
 {
     Announcer.Instance.Announce(user.Name + " feels different. ", MessageTypes.Other);
     Announcer.Instance.Announce(user.Name + " is under the affect of " + _effect.Name + "!", MessageTypes.Other);
     user.AddTemporaryEffect(_effect);
     user.Inventory.Remove(item);
 }
 public void Use(IItem item, World world, ICreature user)
 {
     Announcer.Instance.Announce(user.Name + " feels different. ", MessageTypes.Other);
     Announcer.Instance.Announce(user.Name + " is under the affect of " + _effect.Name + "!", MessageTypes.Other);
     user.AddTemporaryEffect(_effect);
     user.Inventory.Remove(item);
 }
        public void Get(IItem item, World world, ICreature getter)
        {
            Announcer.Instance.Announce(getter.Name + " feels different. ", MessageTypes.Other);
            Announcer.Instance.Announce(getter.Name + " is under the affect of " + _effect.Name + "!", MessageTypes.Other);
            getter.AddTemporaryEffect(_effect);

            _standardGet.Get(item, world, getter);
        }
Beispiel #5
0
        public void Get(IItem item, World world, ICreature getter)
        {
            Announcer.Instance.Announce(getter.Name + " feels different. ", MessageTypes.Other);
            Announcer.Instance.Announce(getter.Name + " is under the affect of " + _effect.Name + "!", MessageTypes.Other);
            getter.AddTemporaryEffect(_effect);

            _standardGet.Get(item, world, getter);
        }
 public void Attack(IWeapon weapon, ICreature attacker, ICreature target, World world)
 {
     ITemporaryEffect e = _effect.Clone();
     target.AddTemporaryEffect(_effect);
 }
 public void Attack(IWeapon weapon, ICreature attacker, ICreature target, World world)
 {
     ITemporaryEffect e = _effect.Clone();
     e.Id = Guid.NewGuid();
     attacker.AddTemporaryEffect(e);
 }
Beispiel #8
0
        public void Attack(IWeapon weapon, ICreature attacker, ICreature target, World world)
        {
            ITemporaryEffect e = _effect.Clone();

            target.AddTemporaryEffect(_effect);
        }