File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4314,7 +4314,7 @@ class GameState
4314
4314
end
4315
4315
4316
4316
@last_exp = -1
4317
- @no_gain_list = Hash.new
4317
+ @no_gain_list = Hash.new(0)
4318
4318
@weapons_to_train.each { |skill_name, _weapon_name| @no_gain_list[skill_name] = 0 }
4319
4319
echo(" @no_gain_list: #{@no_gain_list}") if $debug_mode_ct
4320
4320
@@ -4828,8 +4828,8 @@ class GameState
4828
4828
echo("skill exp: #{current_exp} vs #{@target_weapon_skill}") if $debug_mode_ct
4829
4829
4830
4830
# gain_check code: logic to account for a skill that is not gaining any MS at all
4831
- if @gain_check then
4832
- if (current_exp <= @last_exp) && (current_exp != 34) then
4831
+ if @gain_check && (weapon_skill != nil) then
4832
+ if (current_exp <= @last_exp) && (current_exp != 34) && (@weapons_to_train.size > 1) then
4833
4833
@no_gain_list[weapon_skill] += 1
4834
4834
else
4835
4835
@no_gain_list[weapon_skill] = 0
You can’t perform that action at this time.
0 commit comments