Allow specifying object classes in the object name given to des.object()
and actually do so in the lua files. Before this, it was not possible to specify (for example) "scroll of teleportation" in des.object() because there is actually no object defined in objects.h named "scroll of teleportation", so find_objtype() failed to find it. Instead, one had to request "teleportation", but that is ambiguous, and find_objtype() would find the first defined item with that name instead (ring of teleportation). In cases of ambiguity, I referred to the des files from 3.6.6 (before the lua conversion).
This commit is contained in:
@@ -107,4 +107,4 @@ else
|
||||
buc="not-cursed", achievement=1 });
|
||||
end
|
||||
des.engraving({ coord = pt, type = "burn", text = "Elbereth" });
|
||||
des.object({ id = "scare monster", coord = pt, buc = "cursed" });
|
||||
des.object({ id = "scroll of scare monster", coord = pt, buc = "cursed" });
|
||||
|
||||
Reference in New Issue
Block a user