parent
8a7b1ac9ae
commit
4e96b491f6
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)) ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue