level 1
白痴只要面包Ω
楼主
在 已经用过patch的情况下 有时候战斗报错的话,可以试试这个 把这个函数改一下
在脚本 ベース/Window 中
def draw_number_unit(*args)
rect_flag = args[0].is_a?(Rect)
x = rect_flag ? args[0].x : args[0]
y = rect_flag ? args[0].y : args[1]
width = rect_flag ? args[0].width : args[2]
height = rect_flag ? args[0].height : args[3]
number = rect_flag ? args[1] : args[4]
align = rect_flag ? args[2] : args[5]
# 将 number 转换为整数,防止 Float 出现 digit 方法错误
number = number.to_i
digit = drawable_digit(width)
if digit < number.digit
draw_text(x, y, width, height, number.give_unit_floor(digit), align)
else
draw_text(*args)
end
end
把这个函数改一下
个人的脚本文件改了许多地方,不止这一处,主要是个人娱乐的,就不分享了
2024年12月24日 06点12分
1
在脚本 ベース/Window 中
def draw_number_unit(*args)
rect_flag = args[0].is_a?(Rect)
x = rect_flag ? args[0].x : args[0]
y = rect_flag ? args[0].y : args[1]
width = rect_flag ? args[0].width : args[2]
height = rect_flag ? args[0].height : args[3]
number = rect_flag ? args[1] : args[4]
align = rect_flag ? args[2] : args[5]
# 将 number 转换为整数,防止 Float 出现 digit 方法错误
number = number.to_i
digit = drawable_digit(width)
if digit < number.digit
draw_text(x, y, width, height, number.give_unit_floor(digit), align)
else
draw_text(*args)
end
end
把这个函数改一下
个人的脚本文件改了许多地方,不止这一处,主要是个人娱乐的,就不分享了