mkxp/scripts/Puzzle_Sokoban.rb

15 lines
347 B
Ruby
Raw Normal View History

2015-11-17 20:35:51 +00:00
CORRECT_RAM_POSITIONS = [[80, 59], [79, 63], [80, 65], [83, 59], [85, 61]]
def ram_integrity_check
result = true
$game_map.events.each do |key, event|
if event.name =~ /^sokoram [ABCDE]$/
if !CORRECT_RAM_POSITIONS.include? [event.x, event.y]
result = false
break
end
end
end
Script.tmp_s1 = result
end