Hime item affix issues

I am using Hime Item affixes and I run into two problems:
scr1.png

The first is that when I go to purchase weapons, the item affixes aren't showing up. I have played around with the settings but no luck. I guess it adds a feature to the game of "gambling for items" but it could turn some players off. Any help would be great
The second:
scr2.png

Bad example but the text description sometimes gets cut off if its a long item affix. How would I go about fixing this so the text gets on a new line with more room?
How do you want the text to alter?
If you want to preserve the font size then we can cut the text off.
1694887410111.png


Put at the bottom of your scripts above main.
Ruby:
module R2_Item_Name_Length
  Size = 18
end

class Window_Base < Window
  def draw_item_name(item, x, y, enabled = true, width = 200)
    return unless item
    draw_icon(item.icon_index, x, y, enabled)
    change_color(normal_color, enabled)
    text = item.name
    text = text[0..(R2_Item_Name_Length::Size - 1)]
    text = text + "..." if item.name.size > text.size
    draw_text(x + 24, y, width, line_height, text)
  end
end
Scrolling text would be better but I'm not sure how to do that yet.

For anyone that is wondering this is a patch to use for Selchar Random Affixes and Hime Instance Items to get random affixes to show in the shop before you buy.
Ruby:
# ╔═════════════════════════════════════╦════════════════════╗
# ║ Title: Shop Random Affixes          ║  Version: 1.00     ║
# ║ Author: Roninator2                  ║                    ║
# ╠═════════════════════════════════════╬════════════════════╣
# ║ Function:                           ║   Date Created     ║
# ║                                     ╠════════════════════╣
# ║ Show Random Affixes in Shop         ║    18 Sep 2023     ║
# ╚═════════════════════════════════════╩════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Instructions:                                            ║
# ║                                                          ║
# ║  Plug and Play                                           ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Requires:                                                ║
# ║                                                          ║
# ║  Hime Instance Items                                     ║
# ║  Hime Item Affixes                                       ║
# ║  Selchar Random Affixes                                  ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Terms of use:                                            ║
# ║ Free for all uses in RPG Maker - Except Nudity           ║
# ╚══════════════════════════════════════════════════════════╝
# ╔══════════════════════════════════════════════════════════╗
# ║ Credit:                                                  ║
# ║   Roninator2                                             ║
# ╚══════════════════════════════════════════════════════════╝

module RPG
  class EquipItem < BaseItem
    attr_accessor :affix_set
  end
end

class Window_ShopBuy < Window_Selectable
  #--------------------------------------------------------------------------
  # * Create Item List
  #--------------------------------------------------------------------------
  def make_item_list
    return if @data != nil
    @data = []
    @price = {}
    @shop_goods.each do |goods|
      case goods[0]
      when 0;  item = $data_items[goods[1]]
      when 1
        item = $data_weapons[goods[1]]
        item = InstanceManager.get_instance(item)
        item = InstanceManager.setup_equip_instance(item) unless item.affix_set == true
      when 2
        item = $data_armors[goods[1]]
        item = InstanceManager.get_instance(item)
        item = InstanceManager.setup_equip_instance(item) unless item.affix_set == true
      end
      if item
        @data.push(item)
        @price[item] = goods[2] == 0 ? item.price : goods[3]
      end
    end
  end
  def disable_instance_item(io)
    return if io.is_a?(RPG::Item)
    @data.each_with_index do |itm, i|
      if itm == io
        @data[i] = nil
      end
    end
    @data.compact!
    refresh
  end
end

class Scene_Shop < Scene_MenuBase
  #--------------------------------------------------------------------------
  # * Execute Purchase
  #--------------------------------------------------------------------------
  def do_buy(number)
    $game_party.lose_gold(number * buying_price)
    $game_party.gain_item(@item, number)
    @buy_window.disable_instance_item(@item)
  end
end

module InstanceManager
  def self.setup_equip_instance(obj)
    random_affix_equip_setup(obj)
    return if TH_Instance::Equip::Random_Affix_Allowed[SceneManager.scene.class.to_s].nil?
    if eval(TH_Instance::Equip::Random_Affix_Allowed[SceneManager.scene.class.to_s])
      obj.prefix_id = obj.random_prefix unless obj.affix_set == true
      obj.suffix_id = obj.random_suffix unless obj.affix_set == true
      obj.affix_set = true
    end
  end
end

Original thread: https://forums.rpgmakerweb.com/threads/hime-item-affix-issues.161186/