From f4cc96cb839f62fa4f6b51a36bc13c5c13582e6e Mon Sep 17 00:00:00 2001 From: David Gay Date: Wed, 23 Jun 2021 21:26:37 -0400 Subject: Adjust break chances --- app/models/equipment.rb | 6 +++--- app/models/item_infix.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'app/models') 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 -- cgit v1.2.3