Reorganized files
This commit is contained in:
parent
66b1cbe21f
commit
c0bf423bbf
16 changed files with 153 additions and 156 deletions
14
scripts/Puzzle_Sokoban.rb
Normal file
14
scripts/Puzzle_Sokoban.rb
Normal file
|
@ -0,0 +1,14 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue