Dehardcode the monk minetown food shop conversion

Instead of trying to figure out in core whether to change a minetown
food shop to health food shop for monks, just figure it out in the
minetown level creation script.
This commit is contained in:
Pasi Kallinen
2020-04-16 21:01:24 +03:00
parent 10a89a529c
commit 7c44e06ab1
9 changed files with 17 additions and 16 deletions

View File

@@ -41,3 +41,10 @@ end
function percent(threshold)
return math.random(0, 99) < threshold
end
function monkfoodshop()
if (u.role == "Monk") then
return "health food shop";
end
return "food shop";
end