Пример #1
0
        public Result Affect(Hero hero)
        {
            int x, y;

            do
            {
                x = R.Next(map.Width);
                y = R.Next(map.Height);
            } while (map.IsWall(x, y) && map.Cell(x, y).Monster == null);
            hero.X = x;
            hero.Y = y;
            return(Result.Action("The room spins around you and when it stops you feel relocated"));
        }
Пример #2
0
 public static Weapon Dagger() => Dagger(R.Dice(2) * 10);
Пример #3
0
 public static StackableItem Coins() => Coin(R.Dice(10, 2));
Пример #4
0
 public static Weapon Sword() => Sword(R.Dice(4, 2) * 10);