From 8706abf4fb1dc0de779befebe613606fafcf8498 Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 9 Jun 2021 21:00:52 -0400 Subject: Fix bug where monster spawn item award code could fail to check all items --- app/models/monster_spawn_combat.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/monster_spawn_combat.rb') diff --git a/app/models/monster_spawn_combat.rb b/app/models/monster_spawn_combat.rb index 8dbd8e8..f15f339 100644 --- a/app/models/monster_spawn_combat.rb +++ b/app/models/monster_spawn_combat.rb @@ -27,7 +27,7 @@ class MonsterSpawnCombat < ApplicationRecord message_body_parts[character.id].push("You got #{total_xp} #{Skill.find_by_gid(data[:gid]).name} XP") end when "item" - return if rand > (data[:chance] || 1) + next if rand > (data[:chance] || 1) if data[:table] table_roll = rand -- cgit v1.2.3