Closed ainslec closed 3 years ago
Parameterless destroy doesn't use item() when in an iterator hoever the documented behaviour is that it should.
start_at = lakeside locations { lakeside : location "You are by the side of a lake."; forest : location "You are in a forest." ; treetop : location "You are in a treetop." ; outside_castle : location "You are outside the castle." ; castle : location "You are inside the castle." ; } connections { from, direction, to = [ lakeside, north, outside_castle, outside_castle, north, castle, lakeside, east, forest, forest, up, treetop, ] } objects { ladder : object "a ladder" at = "lakeside" ; lamp : object "a lamp" at = "lakeside" ; spoon : object "a spoon" at = "lakeside" ; coins : object "some coins" at = "inventory" ; guard : scenery "a guard" at = "lakeside" ; } on_command { : match "vanish _" { : iterate "_objects" { : destroy ; } : print "Vanished !"; : press_any_key ; : redescribe; } }
Fixed,
Parameterless destroy doesn't use item() when in an iterator hoever the documented behaviour is that it should.