Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
* Update autodump.rst
* Update autodump.lua
  • Loading branch information
Bumber64 authored Jul 29, 2024
1 parent 03a403f commit 2ba17c9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions docs/gui/autodump.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ This is a general point and click interface for teleporting or destroying
items. By default, it will teleport items you have marked for dumping, but if
you draw boxes around items on the map, it will act on the selected items
instead. Double-click anywhere on the map to teleport the items there. Be wary
(or excited) that if you teleport the items into an unsupported position (e.g.
mid-air), then they will become projectiles and fall.
(or excited) that if you teleport the items into an unsupported position
(e.g., mid-air), then they will become projectiles and fall. Items may not be
teleported into walls or fortifications. They may also not be teleported into
projectile-blocking mid-air buildings (such as water wheels), as this can
result in unintended item destruction.

There are options to include or exclude forbidden items, items that are
currently tagged as being used by an active job, and items dropped by traders.
Expand Down
4 changes: 2 additions & 2 deletions gui/autodump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -339,14 +339,14 @@ function Autodump:do_dump(pos)
end

local tt = dfhack.maps.getTileType(pos)
if not tt or !dfhack.maps.isTileVisible(pos) then
if not (tt and dfhack.maps.isTileVisible(pos)) then
dfhack.printerr('Dump tile not visible! Must be in a revealed area of map.')
return
end

local on_ground, in_air = tile_props(pos, tt)
if not (on_ground or in_air) then
dfhack.printerr('Dump tile blocked! Can\'t dump on walls, fortifications, or certain midair buildings.')
dfhack.printerr('Dump tile blocked! Can\'t dump on walls, fortifications, or certain mid-air buildings.')
return
end

Expand Down

0 comments on commit 2ba17c9

Please sign in to comment.