diff options
| author | jj | 2012-09-17 21:15:20 +0200 |
|---|---|---|
| committer | jj | 2012-09-18 10:17:32 +0200 |
| commit | 2032f8e4070292d5777fb6b28d007f9c05076630 (patch) | |
| tree | 1deca8fd0c39e98219e500ac9f84e42bb95bb0b9 /scripts | |
| parent | 711a9bd9b2f6cbba96cc9fe0efa85e3835f94d2a (diff) | |
| download | dfhack-2032f8e4070292d5777fb6b28d007f9c05076630.tar.gz dfhack-2032f8e4070292d5777fb6b28d007f9c05076630.tar.bz2 dfhack-2032f8e4070292d5777fb6b28d007f9c05076630.tar.xz | |
scripts/drainaquifer
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/drainaquifer.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/drainaquifer.rb b/scripts/drainaquifer.rb new file mode 100644 index 00000000..4e2ae4ff --- /dev/null +++ b/scripts/drainaquifer.rb @@ -0,0 +1,11 @@ +# remove all aquifers from the map + +count = 0 +df.each_map_block { |b| + if b.designation[0][0].water_table or b.designation[15][15].water_table + count += 1 + b.designation.each { |dx| dx.each { |dy| dy.water_table = false } } + end +} + +puts "cleared #{count} map blocks" |
