LuaHelper
LuaHelper copied to clipboard
same if condition在条件中包含随机数时也会提示
if math.random() <= (difficulty_factor * 0.3) + 0.1 then
return "meteor"
elseif is_ocean_zone and math.random() <= (difficulty_factor * 0.3) + 0.1 then
return "whirlpool"
elseif math.random() <= (difficulty_factor * 0.3) + 0.1 then
return "tsunami"
elseif w.wind > 70 and math.random() <= (difficulty_factor * 0.9) + 0.1 then
return "tornado"
end
这段代码中会提示same if condition