mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Rewrote BP Shop code, tidied PC menu code, fixed message display bug involving instant speed and \wtnp, fixed mail vanishing bug, tweaks to other rewritten UI
This commit is contained in:
@@ -575,6 +575,7 @@ class Pokemon
|
||||
def item=(value)
|
||||
return if value && !GameData::Item.exists?(value)
|
||||
@item = (value) ? GameData::Item.get(value).id : value
|
||||
@mail = nil if @item.nil?
|
||||
end
|
||||
|
||||
# Returns whether this Pokémon is holding an item. If an item id is passed,
|
||||
@@ -608,6 +609,7 @@ class Pokemon
|
||||
raise ArgumentError, _INTL("Invalid value {1} given", mail.inspect)
|
||||
end
|
||||
@mail = mail
|
||||
@item = mail&.item
|
||||
end
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user