From ee930101d49129c99bfabefd9694584249e02976 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Mon, 2 Jul 2018 16:47:02 +0800 Subject: [PATCH] Add teleport calculator --- teleport_calc.lua | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 teleport_calc.lua diff --git a/teleport_calc.lua b/teleport_calc.lua new file mode 100644 index 0000000..acdca73 --- /dev/null +++ b/teleport_calc.lua @@ -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