Merge pull request #35 from elizagamedev/gir/portalsAdditionalSolution
Additional Solution for Portals Puzzle:
This commit is contained in:
commit
02a92bb5bc
|
|
@ -131,13 +131,15 @@ class Game_Party
|
||||||
actor = $game_actors[actor_id]
|
actor = $game_actors[actor_id]
|
||||||
# Delete follower
|
# Delete follower
|
||||||
unless $game_followers.empty?
|
unless $game_followers.empty?
|
||||||
follower = $game_followers.pop
|
for i in 0...$game_followers.size
|
||||||
|
follower = $game_followers[i]
|
||||||
|
if follower.actor.id == actor.id
|
||||||
|
if $game_followers.size > i + 1
|
||||||
|
$game_followers[i + 1].leader = follower.leader
|
||||||
|
end
|
||||||
|
$game_followers.delete_at(i)
|
||||||
$scene.remove_follower(follower)
|
$scene.remove_follower(follower)
|
||||||
new_actor = follower.actor
|
break
|
||||||
if new_actor != actor
|
|
||||||
$game_followers.reverse_each do |follower|
|
|
||||||
new_actor, follower.actor = follower.actor, new_actor
|
|
||||||
break if new_actor == actor
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -565,12 +565,14 @@ module Script
|
||||||
portal_path = Oneshot::GAME_PATH + "/Oneshot/BigPortal"
|
portal_path = Oneshot::GAME_PATH + "/Oneshot/BigPortal"
|
||||||
case numb
|
case numb
|
||||||
when 1
|
when 1
|
||||||
return File.exists?(portal_path + "/keyB.txt")
|
return (File.exists?(portal_path + "/keyB.txt") or File.exists?(portal_path + "/Portal1/keyB.txt"))
|
||||||
when 2
|
when 2
|
||||||
return File.exists?(portal_path + "/keyG.txt")
|
return (File.exists?(portal_path + "/keyG.txt") or File.exists?(portal_path + "/Portal2/keyG.txt"))
|
||||||
when 3
|
when 3
|
||||||
return File.exists?(portal_path + "/keyR.txt")
|
return (File.exists?(portal_path + "/keyR.txt") or File.exists?(portal_path + "/Portal3/keyR.txt"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue