mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixes glitch allowing players to reset choices in fusion quiz
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -10,7 +10,6 @@ class FusionQuiz
|
|||||||
def initialize(difficulty = :REGULAR)
|
def initialize(difficulty = :REGULAR)
|
||||||
@sprites = {}
|
@sprites = {}
|
||||||
|
|
||||||
@viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
|
|
||||||
@previewwindow=nil
|
@previewwindow=nil
|
||||||
@difficulty = difficulty
|
@difficulty = difficulty
|
||||||
@customs_list = getCustomSpeciesList(true, false)
|
@customs_list = getCustomSpeciesList(true, false)
|
||||||
@@ -81,7 +80,6 @@ class FusionQuiz
|
|||||||
correct_answers << new_question(base_points_q1*round_multiplier, "Which Pokémon is this fusion's body?",@body_id,true,true )
|
correct_answers << new_question(base_points_q1*round_multiplier, "Which Pokémon is this fusion's body?",@body_id,true,true )
|
||||||
pbMessage("Next question!")
|
pbMessage("Next question!")
|
||||||
correct_answers << new_question(base_points_q2*round_multiplier,"Which Pokémon is this fusion's head?", @head_id,true,true )
|
correct_answers << new_question(base_points_q2*round_multiplier,"Which Pokémon is this fusion's head?", @head_id,true,true )
|
||||||
@viewport.dispose
|
|
||||||
|
|
||||||
show_fusion_picture(false )
|
show_fusion_picture(false )
|
||||||
#NON-OBSCURED
|
#NON-OBSCURED
|
||||||
@@ -101,7 +99,6 @@ class FusionQuiz
|
|||||||
pbMessage("Wow! A perfect round! Let's see what this Pokémon looked like!")
|
pbMessage("Wow! A perfect round! Let's see what this Pokémon looked like!")
|
||||||
end
|
end
|
||||||
hide_fusion_picture()
|
hide_fusion_picture()
|
||||||
@viewport.dispose
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -177,6 +174,8 @@ class FusionQuiz
|
|||||||
confirmed = pbMessage("Is this your final answer?",["Yes","No"])
|
confirmed = pbMessage("Is this your final answer?",["Yes","No"])
|
||||||
if confirmed==0
|
if confirmed==0
|
||||||
question_answered=true
|
question_answered=true
|
||||||
|
else
|
||||||
|
should_generate_new_choices=false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return player_answer == answer_pokemon_name
|
return player_answer == answer_pokemon_name
|
||||||
@@ -194,9 +193,8 @@ class FusionQuiz
|
|||||||
end
|
end
|
||||||
|
|
||||||
def prompt_pick_answer_regular(prompt_message,real_answer,should_new_choices)
|
def prompt_pick_answer_regular(prompt_message,real_answer,should_new_choices)
|
||||||
commands = should_new_choices ? generate_new_choices(real_answer) : @choices
|
commands = should_new_choices ? generate_new_choices(real_answer) : @choices.shuffle
|
||||||
chosen = pbMessage(prompt_message,commands)
|
chosen = pbMessage(prompt_message,commands)
|
||||||
#chosen = pbChooseList(commands, 0, nil, 1)
|
|
||||||
return commands[chosen]
|
return commands[chosen]
|
||||||
end
|
end
|
||||||
|
|
||||||
@@ -235,4 +233,8 @@ class FusionQuiz
|
|||||||
return @abandonned
|
return @abandonned
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def dispose
|
||||||
|
@previewwindow.dispose
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user