The none comment doesnt seem to work here... Also i dont have clue how to let him accept that extra arguement. Weirdly enough is.that if the third line "make_item_list(sort=:sort)" is,then Inventory works and the shop doesnt. If I simply delete the arguement its the other way around. well anyways. That are those lines that are listed with make_item_list. Maybe you might have a better view at it like that?
Hirion Engine - Item
def refresh(sort = :sort) # // Method to refresh window. make_item_list(sort=:sort) create_contents draw_all_items # // Draw no items text if no available items is found for selected category. if @data.empty? item_font_no_items = HIRION::SETTINGS::ITEM_NO_ITEMS draw_str("No available items for this category.", 0, contents_height / 2, contents_width, 1, item_font_no_items[0], item_font_no_items[1], item_font_no_items[2], item_font_no_items[3], item_font_no_items[4], item_font_no_items[5], item_font_no_items[6])
end
Crafting System:
#-------------------------------------------------------------------------- # make_item_list #-------------------------------------------------------------------------- def make_item_list @data = @item.recipe_list.each { |item| include?(item) } if @item end
Shop Manager:
def make_item_list() @data = [] @goods = {} @price = {} @shop_goods.each do |shopGood| next unless include?(shopGood) item = shopGood.item @data.push(item) @goods[item] = shopGood @price[item] = shopGood.price end
Crafting Shop
#=============================================================================== # ** Rest of Script #=============================================================================== class Game_TOCraftingShop < Game_Shop end class Window_TOCraftingShopRecipeList < Window_TOCraftingRecipeList def shop_goods=(goods) @shop_goods = goods refresh end def make_item_list @data = [] @shop_goods.each do |shopGood| next unless include?(shopGood.item) @data.push(shopGood.item) end end end