Skip to content

Commit

Permalink
Add console help support
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Mar 20, 2020
1 parent 72adbb3 commit 2e5e05e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions light-aquifers-only.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ Basically the Drainage is used as an "RNG" to cause an aquifer to be heavy
about 5% of the time. The script shifts the matching numbers to a neighboring
one, which does not result in any change of the biome.
]====]
function lightaqonly ()
function lightaqonly (arg)
if arg and arg:match('help') then
print(help)
return
end
if not dfhack.isWorldLoaded () then
qerror ("Error: This script requires a world to be loaded.")
end
Expand All @@ -34,4 +38,4 @@ function lightaqonly ()
end
end

lightaqonly ()
lightaqonly (...)

0 comments on commit 2e5e05e

Please sign in to comment.