예제 #1
0
        private void create_MouseClick(object sender, MouseEventArgs e)
        {
            var wallet = _state.Player.Wallet;

            if (wallet.MinionShards >= 10)
            {
                if (_state.Player.Minions.Count == 5)
                {
                    MessageBox.Show("You don't have enough space for a new minion.");
                }
                else
                {
                    _state.Player.Minions.Add(mm.MakeMinion());
                    wallet.MinionShards -= 10;
                    ResetMBox();
                    _state.Save.SaveGame(_state.Player);
                }
            }
            else
            {
                MessageBox.Show("You don't have enough shards to summon this minion.");
            }
        }