修复金币读取爆率
This commit is contained in:
parent
fb57aaa152
commit
3f34feecba
|
|
@ -6961,6 +6961,10 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject implements Se
|
||||||
return this.stats.dropMod;
|
return this.stats.dropMod;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getcashMod() {
|
||||||
|
return this.stats.cashMod;
|
||||||
|
}
|
||||||
|
|
||||||
public int getBs() {
|
public int getBs() {
|
||||||
return this.stats.bs;
|
return this.stats.bs;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -597,30 +597,7 @@ public class PlayerStats implements Serializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int bl = 0;
|
|
||||||
int jb = 0;
|
|
||||||
if (Start.blkg == 1){
|
|
||||||
for (BlConfig blConfig : Start.BLlist) {
|
|
||||||
if (blConfig.isInTimeRange()){
|
|
||||||
boolean b = chra.haveItem(blConfig.getItem_id());
|
|
||||||
if (b) {
|
|
||||||
int itemNum = 1;
|
|
||||||
if (blConfig.getStackableNum()== 1) {
|
|
||||||
itemNum = chra.getItemNum(blConfig.getItem_id());
|
|
||||||
}
|
|
||||||
if (Start.bldj == 1) {
|
|
||||||
bl += (blConfig.getItem_rate() * itemNum);
|
|
||||||
jb += (blConfig.getGold_rate() * itemNum);
|
|
||||||
}else {
|
|
||||||
bl = bl>= (blConfig.getItem_rate() * itemNum)? bl : blConfig.getItem_rate() * itemNum;
|
|
||||||
jb = jb>= (blConfig.getGold_rate() * itemNum)? jb : blConfig.getGold_rate() * itemNum;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
this.dropMod+= bl/100;
|
|
||||||
this.cashMod+= jb/100;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -647,6 +624,37 @@ public class PlayerStats implements Serializable {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
int bl = 0;
|
||||||
|
int jb = 0;
|
||||||
|
if (Start.blkg == 1){
|
||||||
|
for (BlConfig blConfig : Start.BLlist) {
|
||||||
|
if (blConfig.isInTimeRange()){
|
||||||
|
boolean b = chra.haveItem(blConfig.getItem_id());
|
||||||
|
if (b) {
|
||||||
|
int itemNum = 1;
|
||||||
|
if (blConfig.getStackableNum()== 1) {
|
||||||
|
itemNum = chra.getItemNum(blConfig.getItem_id());
|
||||||
|
}
|
||||||
|
if (Start.bldj == 1) {
|
||||||
|
bl += (blConfig.getItem_rate() * itemNum);
|
||||||
|
jb += (blConfig.getGold_rate() * itemNum);
|
||||||
|
}else {
|
||||||
|
bl = bl>= (blConfig.getItem_rate() * itemNum)? bl : blConfig.getItem_rate() * itemNum;
|
||||||
|
jb = jb>= (blConfig.getGold_rate() * itemNum)? jb : blConfig.getGold_rate() * itemNum;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.dropMod+= bl/100;
|
||||||
|
|
||||||
|
this.cashMod+= jb/100;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (final IItem item2 : chra.getInventory(MapleInventoryType.CASH)) {
|
for (final IItem item2 : chra.getInventory(MapleInventoryType.CASH)) {
|
||||||
switch (item2.getItemId()) {
|
switch (item2.getItemId()) {
|
||||||
case 5062000: {
|
case 5062000: {
|
||||||
|
|
|
||||||
|
|
@ -659,7 +659,7 @@ public final class MapleMap {
|
||||||
}
|
}
|
||||||
if (de2.itemId == 0) {
|
if (de2.itemId == 0) {
|
||||||
final int mesos = Randomizer.nextInt(1 + Math.abs(de2.Maximum - de2.Minimum)) + de2.Minimum;
|
final int mesos = Randomizer.nextInt(1 + Math.abs(de2.Maximum - de2.Minimum)) + de2.Minimum;
|
||||||
int mmeos = (int) ((double) mesos * (chr.getStat().mesoBuff / 100.0) * (double) chr.getDropMod());
|
int mmeos = (int) ((double) mesos * (chr.getStat().mesoBuff / 100.0) * (double) chr.getcashMod());
|
||||||
if (((Integer) Start.ConfigValuesMap.get("金币重置")).intValue() < 1 && mmeos > 0) {
|
if (((Integer) Start.ConfigValuesMap.get("金币重置")).intValue() < 1 && mmeos > 0) {
|
||||||
if (((Integer) Start.ConfigValuesMap.get("金币全局砍数量")).intValue() > 0) {
|
if (((Integer) Start.ConfigValuesMap.get("金币全局砍数量")).intValue() > 0) {
|
||||||
mmeos /= ((Integer) Start.ConfigValuesMap.get("金币砍全局倍率")).intValue();
|
mmeos /= ((Integer) Start.ConfigValuesMap.get("金币砍全局倍率")).intValue();
|
||||||
|
|
@ -732,7 +732,8 @@ public final class MapleMap {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.spawnMobMesoDrop((int) ((double) mesos2 * (lastMeso / 100.0) * ((double) (chr.getVipExpRate() / 100) + 1.0) * (double) chr.getDropMod() * chr.getDropm() * (double) cmServerrate), this.calcDropPos(pos, mob.getTruePosition()), (MapleMapObject) mob, chr, false, droptype);
|
double a = (double) mesos2 * (lastMeso / 100.0) * ((double) (chr.getVipExpRate() / 100) + 1.0) * (double) chr.getDropMod() * chr.getDropm() * (double) cmServerrate;
|
||||||
|
this.spawnMobMesoDrop((int) (a), this.calcDropPos(pos, mob.getTruePosition()), (MapleMapObject) mob, chr, false, droptype);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (chr.getEventInstance() == null) {
|
if (chr.getEventInstance() == null) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue