Exemplo n.º 1
0
        private void AddSpaGpByMin(GamePlayer player)
        {
            int priGrade = player.PlayerCharacter.Grade;
            int spaGpAddTemp;

            if (this.Spa_Room_Info.RoomType == 1)
            {
                spaGpAddTemp  = LevelMgr.GetSpaGoldGP(priGrade);
                spaGpAddTemp /= 60;
            }
            else
            {
                spaGpAddTemp  = LevelMgr.GetSpaMoneyGP(priGrade);
                spaGpAddTemp /= 60;
            }
            if (player.PlayerCharacter.Grade >= 40)
            {
                spaGpAddTemp = 0;
            }
            player.SpaRoomAddGPTotal += spaGpAddTemp;
            if (spaGpAddTemp >= 0)
            {
                player.AddGP(spaGpAddTemp);
            }
            else
            {
                player.AddGP(0);
            }
        }