Implemented usage of GameData::Item

This commit is contained in:
Maruno17
2020-11-08 22:45:59 +00:00
parent ff70791104
commit 1955d3698e
82 changed files with 1986 additions and 2195 deletions

View File

@@ -156,6 +156,7 @@ class HandlerHash2
end
def [](sym)
sym = sym.id if !sym.is_a?(Symbol) && sym.respond_to?("id")
return @hash[sym] if sym && @hash[sym]
for add_if in @add_ifs
return add_if[1] if add_if[0].call(sym)
@@ -211,10 +212,7 @@ end
class ItemHandlerHash < HandlerHash
def initialize
super(:PBItems)
end
class ItemHandlerHash < HandlerHash2
end