From 5232eea9c7626d83eb973ab7d33e4b8fd3f703e7 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sun, 14 Aug 2011 13:28:20 +0200 Subject: fixed newnohara/mtmush/darkmtmush --- randtilegen.rb | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 47 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3