Created
April 6, 2016 15:00
-
-
Save HimeWorks/778102940f8c70ecf7f38faad4e56cf2 to your computer and use it in GitHub Desktop.
[Ace] Show items from all party members during key item selection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Window_KeyItem < Window_ItemList | |
def make_item_list | |
@data = [] | |
$game_party.members.each {|mem| | |
@data.concat(mem.all_items.select {|item| include?(item) }) | |
} | |
@data.uniq! | |
@data.push(nil) if include?(nil) | |
end | |
def enable?(item) | |
true | |
end | |
def draw_item_number(rect, item) | |
num = $game_party.members.inject(0) {|r, mem| r += mem.item_number(item) } | |
draw_text(rect, sprintf(":%2d", num), 2) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment