summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2011-06-18 01:57:26 +0200
committerTreeki <treeki@gmail.com>2011-06-18 01:57:26 +0200
commitd9228902b95b97523dd5f9a5c0d3bcc23f8dee84 (patch)
tree76a17c7e6ac384a3464976d73c64c37365a6ffc4
parent2c119d1027bd81b53e2685988d10e95f6b666038 (diff)
downloadkamek-d9228902b95b97523dd5f9a5c0d3bcc23f8dee84.tar.gz
kamek-d9228902b95b97523dd5f9a5c0d3bcc23f8dee84.zip
fixed secret exit events in worldmap_gen.rb
Diffstat (limited to '')
-rw-r--r--worldmap_gen.rb12
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|