LuaHelper icon indicating copy to clipboard operation
LuaHelper copied to clipboard

same if condition在条件中包含随机数时也会提示

Open LuckyZone opened this issue 3 years ago • 0 comments

    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

LuckyZone avatar Nov 03 '22 02:11 LuckyZone