diff options
Diffstat (limited to 'scripts/drainaquifer.rb')
| -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" |
