summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-08-14 13:28:20 +0200
committerTreeki <treeki@gmail.com>2011-08-14 13:28:20 +0200
commit5232eea9c7626d83eb973ab7d33e4b8fd3f703e7 (patch)
tree50ea1a76780713841087720fead0b0e7e6404cc8
parentb6be8298f7d026661e21c855e8f3546d9b370aa0 (diff)
downloadkamek-5232eea9c7626d83eb973ab7d33e4b8fd3f703e7.tar.gz
kamek-5232eea9c7626d83eb973ab7d33e4b8fd3f703e7.zip
fixed newnohara/mtmush/darkmtmush
Diffstat (limited to '')
-rw-r--r--randtilegen.rb48
1 files changed, 47 insertions, 1 deletions
diff --git a/randtilegen.rb b/randtilegen.rb
index 21a9f58..b807c2f 100644
--- a/randtilegen.rb
+++ b/randtilegen.rb
@@ -163,7 +163,7 @@ g.section(*regular_ts1, *regular_ts2, *newer) do
g.regular_terrain
end
-nohara_clones = %w(nohara newnohara cracks springwater mtmush darkmtmush space)
+nohara_clones = %w(nohara cracks springwater space)
g.section(*nohara_clones.map{ |x| "Pa1_#{x}"}) do
g.regular_terrain
g.sub_terrain
@@ -321,6 +321,52 @@ g.section('Pa2_forestobake') do
g.random([0x41, 0x51, 0x61, 0x71], :vert)
end
+g.section('Pa1_newnohara') do
+ g.sub_terrain
+
+ g.random(2..7, :horz)
+ g.random(0x22..0x27, :horz)
+ g.random([0x10, 0x20, 0x30, 0x40], :vert)
+ g.random([0x11, 0x21, 0x31, 0x41], :vert)
+ random_set = (0xAA..0xAF).to_a + (0xBA..0xBF).to_a + (0xCA..0xCF).to_a
+ random_set += (0xDA..0xDF).to_a + (0xEA..0xEF).to_a + (0xFA..0xFF).to_a
+ g.random(0x12..0x17, :both, random_set)
+ g.random(0xAA..0xAF, :both, random_set)
+ g.random(0xBA..0xBF, :both, random_set)
+ g.random(0xCA..0xCF, :both, random_set)
+ g.random(0xDA..0xDF, :both, random_set)
+ g.random(0xEA..0xEF, :both, random_set)
+ g.random(0xFA..0xFF, :both, random_set)
+end
+
+g.section('Pa1_mtmush') do
+ g.sub_terrain
+
+ g.random(2..7, :horz)
+ g.random(0x22..0x27, :horz)
+ g.random([0x10, 0x20, 0x30, 0x40], :vert)
+ g.random([0x11, 0x21, 0x31, 0x41], :vert)
+ random_set = (0xDA..0xDF).to_a + (0xEA..0xEF).to_a + (0xFA..0xFF).to_a
+ g.random(0x12..0x17, :both, random_set)
+ g.random(0xDA..0xDF, :both, random_set)
+ g.random(0xEA..0xEF, :both, random_set)
+ g.random(0xFA..0xFF, :both, random_set)
+end
+
+g.section('Pa1_darkmtmush') do
+ g.sub_terrain
+
+ g.random(2..7, :horz)
+ g.random(0x22..0x27, :horz)
+ g.random([0x10, 0x20, 0x30, 0x40], :vert)
+ g.random([0x11, 0x21, 0x31, 0x41], :vert)
+ random_set = (0xCC..0xCF).to_a + (0xDC..0xDF).to_a + (0xEC..0xEF).to_a + (0xFC..0xFF).to_a
+ g.random(0x12..0x17, :both, random_set)
+ g.random(0xCC..0xCF, :both, random_set)
+ g.random(0xDC..0xDF, :both, random_set)
+ g.random(0xEC..0xEF, :both, random_set)
+ g.random(0xFC..0xFF, :both, random_set)
+end