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:
@@ -929,6 +929,9 @@ lua_State *L;
|
||||
if (!strcmp(tkey, "inventory")) {
|
||||
nhl_push_obj(L, g.invent);
|
||||
return 1;
|
||||
} else if (!strcmp(tkey, "role")) {
|
||||
lua_pushstring(L, g.urole.name.m);
|
||||
return 1;
|
||||
}
|
||||
|
||||
nhl_error(L, "Unknown u table index");
|
||||
|
||||
Reference in New Issue
Block a user