Skip to content

Add options for excluding rooms from the walker

Compare
Choose a tag to compare
@demonnic demonnic released this 20 Nov 22:53
· 22 commits to master since this release

This release adds demonnic.autowalker.config.avoidRooms, which is a table of rooms to never include in a walk. It also include functions for interacting with it:

demonnic.autowalker:addAvoidRoom(roomID)
demonnic.autowalker:removeAvoidRoom(roomID)

roomID can be either a number (1234), a string ("1234"), or a table of numbers/strings ({1234, "2345", 829})

Also demonnic.autowalker:init now takes two optional arguments, (rooms, roomsToAvoid). If you want to pass the rooms to avoid but have the autowalker assemble the rooms list based on the area, call demonnic.autowalker:init(nil, roomsToAvoid)