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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user