diff options
author | David Gay <david@davidgay.org> | 2021-06-23 21:26:37 -0400 |
---|---|---|
committer | David Gay <david@davidgay.org> | 2021-06-23 21:26:37 -0400 |
commit | f4cc96cb839f62fa4f6b51a36bc13c5c13582e6e (patch) | |
tree | 7642e6b931586d0d4958c2513788df052c282be7 /app/models | |
parent | 6baf94683cc5e723a5a61bd9effbfd0b4fa4eccd (diff) |
Adjust break chances
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/equipment.rb | 6 | ||||
-rw-r--r-- | app/models/item_infix.rb | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/app/models/equipment.rb b/app/models/equipment.rb index f5dd530..12e8ae7 100644 --- a/app/models/equipment.rb +++ b/app/models/equipment.rb @@ -7,11 +7,11 @@ class Equipment < ApplicationRecord def self.random_break_slot roll = rand - if roll >= 0.9998 + if roll >= 0.99933333 [:neck, :left_ring, :right_ring].sample - elsif roll >= 0.9996 - [:back, :waist, :curio].sample elsif roll >= 0.999 + [:back, :waist, :curio].sample + elsif roll >= 0.998 [:mainhand, :offhand, :head, :torso, :grip, :legs, :feet].sample end end diff --git a/app/models/item_infix.rb b/app/models/item_infix.rb index 40b2339..c484242 100644 --- a/app/models/item_infix.rb +++ b/app/models/item_infix.rb @@ -6,7 +6,7 @@ class ItemInfix < ApplicationRecord before_create :check_max_infixes def self.break_check - rand > 0.998 + rand >= 0.99 end def effects |