diff options
Diffstat (limited to '')
-rw-r--r-- | worldmap_gen.rb | 12 |
1 files 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 /(?<level_name>.+)_(?<type>normal|special)/ =~ name + if /(?<level_name>.+)_(?<type>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| |