From d9228902b95b97523dd5f9a5c0d3bcc23f8dee84 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 18 Jun 2011 01:57:26 +0200 Subject: fixed secret exit events in worldmap_gen.rb --- worldmap_gen.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/worldmap_gen.rb b/worldmap_gen.rb index 6169acf..6595ba2 100644 --- a/worldmap_gen.rb +++ b/worldmap_gen.rb @@ -20,12 +20,12 @@ def make_event_number(name) $events[name] = $current_event_id $current_event_id += 1 - if /(?.+)_(?normal|special)/ =~ name + if /(?.+)_(?normal|secret)/ =~ name raise "level #{level_name} not known" unless $points.key?(level_name) point = $points[level_name] point.params[2] = $events[name] if type == 'normal' - point.params[3] = $events[name] if type == 'special' + point.params[3] = $events[name] if type == 'secret' end $events[name] @@ -113,15 +113,15 @@ class Point if @type == 'level' level = element.attribute('level').value.split('-').map(&:to_i) #normal_event = element.attribute('event') - #special_event = element.attribute('special_event') + #secret_event = element.attribute('secret_event') #normal_event = normal_event.nil? ? 0xFFFF : normal_event.value.to_i - #special_event = special_event.nil? ? 0xFFFF : special_event.value.to_i + #secret_event = secret_event.nil? ? 0xFFFF : secret_event.value.to_i # phased those out for now - normal_event, special_event = 0xFFFF, 0xFFFF + normal_event, secret_event = 0xFFFF, 0xFFFF - @params = level + [normal_event, special_event] + @params = level + [normal_event, secret_event] end element.each_element 'exit' do |e| -- cgit v1.2.3