diff options
author | David Gay <david@davidgay.org> | 2021-06-09 21:00:52 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-09 21:00:52 -0400 |
commit | 8706abf4fb1dc0de779befebe613606fafcf8498 (patch) | |
tree | 2a3bb20572b4d5742eb3102450da861c34c38365 /app/models | |
parent | fa45549c2fbbedb923ddf85df5e65d5c63269a1d (diff) |
Fix bug where monster spawn item award code could fail to check all items
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/monster_spawn_combat.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |