level 1
local percentage = math.floor(l_2_1 (l_2_0:getDataValue("hp_max")) (null) (100))
反编译某脚本得到的lua程序。math.floor不是四舍五入吗,那括号内的那一串是什么意思。
2018年10月08日 15点10分
1
level 1
你这个不是lua的用法,是javascript 吗?
2018年10月09日 03点10分
2
我也感觉奇怪,但真是lua的,这是luadec反编译出来的。
2018年10月09日 03点10分
我感觉应该是luadec的锅,应该是math.floor(l_2_0*(l_2_0:getDataValue("hp_max"))/100) 少了运算符
2018年10月09日 03点10分