修复金币回收给多个道具

修复段数显示
This commit is contained in:
雪风 2025-03-05 23:27:22 +08:00
parent 8a7b1ac9ae
commit 4e96b491f6
2 changed files with 3 additions and 3 deletions

View File

@ -3908,7 +3908,7 @@ public class MapleCharacter extends AbstractAnimatedMapleMapObject implements Se
if (integers == null) return;
if (this.meso > integers.get(0)) {
int i = this.meso / integers.get(0);
this.gainItem(integers.get(1), i);
this.gainItem(integers.get(1), i*integers.get(2));
gainMeso(-integers.get(0) * i, false, true, true);
}
}

View File

@ -706,14 +706,14 @@ public class DamageParse {
d = String.format("%-" + length + "s", d) ;
}
int targetWidth = e.length()+6; // 目标显示宽度半角字符数
int targetWidth = e.length()+10; // 目标显示宽度半角字符数
String f = "";
String[] strs = {a, b, c, d, e};
for (String s : strs) {
if (s.isEmpty())continue;
int currentWidth = getDisplayWidth(s);
int spacesNeeded = (currentWidth >= targetWidth) ? 0 : (targetWidth - currentWidth);
int spacesNeeded = (currentWidth >= targetWidth) ? 1 : (targetWidth - currentWidth);
// 填充空格并截断‌:ml-citation{ref="2,3" data="citationList"}
s= String.format("%s%" + spacesNeeded + "s", s, "").substring(0, Math.min(s.length() + spacesNeeded, s.length() + targetWidth)) ;