Crog boat + Pirate&EllinPQ + No dmg cap client

Now assaulter boat appears to client, added support for PiratePQ and
EllinPQ and added a no dmg cap version localhost.
This commit is contained in:
ronancpl
2017-04-10 19:50:17 -03:00
parent 8c61c616f9
commit 768d9d0264
39 changed files with 310 additions and 339 deletions
+6 -2
View File
@@ -1,6 +1,6 @@
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 ~ 2010 Patrick Huy <[email protected]>
Copyright (C) 2008 ~ 2010 Patrick Huy <[email protected]>
Matthias Butz <[email protected]>
Jan Christian Meyer <[email protected]>
This program is free software: you can redistribute it and/or modify
@@ -47,4 +47,8 @@ public class ChangeableStats extends OverrideMonsterStats {
mdef = Math.min(stats.isBoss() ? 30 : 20, (int) Math.round(stats.getMDDamage() * mod));
level = newLevel;
}
}
public ChangeableStats(MapleMonsterStats stats, float statModifier, boolean pqMob) {
this(stats, (int)(statModifier * stats.getLevel()), pqMob);
}
}
+20
View File
@@ -981,4 +981,24 @@ public class MapleMonster extends AbstractLoadedMapleLife {
this.hp = ostats.getHp();
this.mp = ostats.getMp();
}
private float getDifficultyRate(final int difficulty) {
switch(difficulty) {
case 6: return(7.7f);
case 5: return(5.6f);
case 4: return(3.2f);
case 3: return(2.1f);
case 2: return(1.4f);
}
return(1.0f);
}
public final void changeLevelByDifficulty(final int difficulty, boolean pqMob) {
changeLevel((int)(this.getLevel() * getDifficultyRate(difficulty)), pqMob);
}
public final void changeDifficulty(final int difficulty, boolean pqMob) {
changeLevelByDifficulty(difficulty, pqMob);
}
}
+1 -1
View File
@@ -49,7 +49,7 @@ public class SpawnPoint {
return spawnedMonsters.intValue();
}
public void denySpawn(boolean val) {
public void setDenySpawn(boolean val) {
spawnedMonsters.set((val == false) ? 0 : 1);
}