Module:Sandbox/Hubianzhen/BTD6 rewards: Difference between revisions
Hubianzhen (talk | contribs) No edit summary |
Hubianzhen (talk | contribs) 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 | Dart middle then bottom | ||
Bucc bottom | 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 | if (tower == "DartMonkey" or tower == "MonkeyBuccaneer") and top == 2 then top, mid = 0, 0 | ||
else | |||
mid, btm = 0, 0 | mid, btm = 0, 0 | ||
end | |||
-- Bottom | |||
else | else | ||
top, mid = 0, 0 | top, mid = 0, 0 | ||