scripts/drainaquifer

develop
jj 2012-09-17 21:15:20 +02:00
parent 711a9bd9b2
commit 2032f8e407
1 changed files with 11 additions and 0 deletions

@ -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"