Advertisement
roninator2

Food Quality - Patch for Hime Instance items + random

Dec 15th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.27 KB | None | 0 0
  1. module InstanceManager
  2.   class << self; alias r2_setup_item_random_food_quality setup_item_instance; end
  3.   def self.setup_item_instance(obj)
  4.     value = obj.food_quality + 1
  5.     obj.food_quality = rand(value).to_i
  6.     r2_setup_item_random_food_quality(obj)
  7.   end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement