mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 19:33:53 +00:00
EI: fixed a small oversight in the bandits code
This commit is contained in:
parent
0f1c535704
commit
8c5a4a9d62
@ -54,7 +54,7 @@ local function bandits_found(x,y)
|
||||
|
||||
if not boss_found and visited > 2 then
|
||||
local boss_chance = (100 / #bandit_villages)
|
||||
local rand3 = helper.rand(1..100)
|
||||
local rand3 = helper.rand("1..100")
|
||||
|
||||
if rand3 <= boss_chance or #bandit_villages < 3 then
|
||||
wesnoth.set_variable("boss_found", true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user