Slot Max & Wind Walk fix + reviewed scripted portals
Fixed slotMax function caching up dirtied player data. Fixed many portals not supposed to warp players to "random spawnpoints". Fixed Wind Walk not being cancellable by attacking.
This commit is contained in:
@@ -1,8 +1,21 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
This file is part of the MapleSolaxiaV2 Maple Story Server
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package maplemesofetcher;
|
||||
|
||||
import life.MapleLifeFactory;
|
||||
@@ -37,16 +50,11 @@ import tools.Pair;
|
||||
|
||||
public class MapleMesoFetcher {
|
||||
|
||||
/**
|
||||
* @param args the command line arguments
|
||||
*/
|
||||
|
||||
private static PrintWriter printWriter;
|
||||
private static String newFile = "lib/meso_drop_data.sql";
|
||||
|
||||
private static boolean permitMesosOnDojoBosses = false;
|
||||
|
||||
private static float correctionFactor = 11.0f;
|
||||
private static int minItems = 4;
|
||||
|
||||
private static int mesoid = 0;
|
||||
@@ -59,10 +67,10 @@ public class MapleMesoFetcher {
|
||||
int minRange, maxRange;
|
||||
|
||||
// MIN range
|
||||
minRange = (int)(72.70814714 * Math.exp(0.02284640619) * level / correctionFactor);
|
||||
minRange = (int)(72.70814714 * Math.exp(0.02284640619 * level));
|
||||
|
||||
// MAX range
|
||||
maxRange = (int)(133.8194881 * Math.exp(0.02059225059) * level / correctionFactor);
|
||||
maxRange = (int)(133.8194881 * Math.exp(0.02059225059 * level));
|
||||
|
||||
// boss perks
|
||||
if(boss) {
|
||||
@@ -77,10 +85,10 @@ public class MapleMesoFetcher {
|
||||
int minRange, maxRange;
|
||||
|
||||
// MIN range
|
||||
minRange = (int)(30.32032228 * Math.exp(0.0328114493) * level / correctionFactor);
|
||||
minRange = (int)(30.32032228 * Math.exp(0.03281144930 * level));
|
||||
|
||||
// MAX range
|
||||
maxRange = (int)(44.45878459 * Math.exp(0.03289611686) * level / correctionFactor);
|
||||
maxRange = (int)(44.45878459 * Math.exp(0.03289611686 * level));
|
||||
|
||||
// boss perks
|
||||
if(boss) {
|
||||
|
||||
Reference in New Issue
Block a user