This commit is contained in:
雪风 2025-03-04 18:09:50 +08:00
parent 819f49a1ae
commit 0e65ada1ca
1 changed files with 8 additions and 7 deletions

View File

@ -1717,7 +1717,8 @@ public class DamageParse {
Magnification = play.getDD();
Double ddxs = Start.ConfigValuesJson.getJSONObject("ddxs").getDouble(String.valueOf(skillId));
Integer ddxs = Start.ConfigValuesJson.getJSONObject("ddxs").getInteger(String.valueOf(skillId));
if (ddxs == null) {
return new double[]{0.0, 0.0};
}
@ -1725,7 +1726,7 @@ public class DamageParse {
return new double[]{0.0, 0.0};
}
return new double[]{Magnification, ddxs};
return new double[]{Magnification, ddxs/100.0};
}
public static double[] 额外伤害倍率(final MapleCharacter play, long damage, final MapleMonster monster, boolean mag, int skillId) {
@ -1734,12 +1735,12 @@ public class DamageParse {
Magnification = play.getDB();
Double ddxs = Start.ConfigValuesJson.getJSONObject("dbxs").getDouble(String.valueOf(skillId));
if (ddxs == null) {
Integer dbxs = Start.ConfigValuesJson.getJSONObject("dbxs").getInteger(String.valueOf(skillId));
if (dbxs == null) {
return new double[]{0.0, 0.0};
}
return new double[]{Magnification, ddxs};
return new double[]{Magnification, dbxs/100.0};
}
public static long 额外真伤(final MapleCharacter play, long damage, final MapleMonster monster, boolean mag, int skillId) {
@ -1748,12 +1749,12 @@ public class DamageParse {
Magnification = play.getQG();
Double qgxs = Start.ConfigValuesJson.getJSONObject("qgxs").getDouble(String.valueOf(skillId));
Integer qgxs = Start.ConfigValuesJson.getJSONObject("qgxs").getInteger(String.valueOf(skillId));
if (qgxs == null) {
return 0;
}
if (Magnification > 0) {
return (long) ((Magnification * qgxs));
return (long) ((Magnification * (qgxs/100.0)));
} else {
return 0;
}