Пример #1
0
        private void SelectReward(Wandmaker wandmaker, Item item, Wand reward)
        {
            Hide();

            item.Detach(Dungeon.Hero.Belongings.Backpack);

            reward.Identify();
            if (reward.DoPickUp(Dungeon.Hero))
            {
                GLog.Information(Hero.TxtYouNowHave, reward.Name);
            }
            else
            {
                Dungeon.Level.Drop(reward, wandmaker.pos).Sprite.Drop();
            }

            wandmaker.Yell(Utils.Format(TxtFarawell, Dungeon.Hero.ClassName()));
            wandmaker.Destroy();

            wandmaker.Sprite.DoDie();

            Wandmaker.Quest.Complete();
        }