Add teleport calculator

master
Kirigaya Kazuto 2018-07-02 16:47:02 +08:00
parent 049f9e8958
commit ee930101d4
1 changed files with 7 additions and 0 deletions

7
teleport_calc.lua Normal file
View File

@ -0,0 +1,7 @@
-- Teleport Calculator
function teleport_calc(dis,item)
if(item==nil) then item=40 end
local ret=(1000+100*item)*math.pow(dis+10,0.7)
print("Teleport Steve with " .. item .. " items to " .. dis .. " m away needs " .. getEUStr(ret))
return ret
end