Module:Sandbox/Hubianzhen/BTD6 rewards: Difference between revisions

No edit summary
No edit summary
Line 96: Line 96:
local tower = string.sub(value, 1, delimiter - 1)
local tower = string.sub(value, 1, delimiter - 1)
--[[ If both paths equal, the order is:
--[[ Insta-towers:
If both paths equal, the order is:
Middle, Top, Bottom
Middle, Top, Bottom
exceptions:  
exceptions:  
Dart middle then bottom (2-0-1 is bottom)
Dart middle then bottom
Bucc bottom then middle
Bucc middle then bottom
]]--
]]--
-- Middle
if mid >= top and mid >= btm then
if mid >= top and mid >= btm then
top, btm = 0, 0
top, btm = 0, 0
-- Top
elseif top >= mid and top >= btm then
elseif top >= mid and top >= btm then
if tower ~= "DartMonkey" then
if (tower == "DartMonkey" or tower == "MonkeyBuccaneer") and top == 2 then top, mid = 0, 0
else
mid, btm = 0, 0
mid, btm = 0, 0
else top, mid = 0, 0 end
end
-- Bottom
else
else
top, mid = 0, 0
top, mid = 0, 0