mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 21:54:58 +00:00
Rewrote party screen, implemented redesign of it
This commit is contained in:
@@ -120,7 +120,7 @@ class HeldItemIconSprite < Sprite
|
||||
self.y = y
|
||||
@pokemon = pokemon
|
||||
@item = nil
|
||||
self.item = @pokemon.item_id
|
||||
self.item = @pokemon&.item_id
|
||||
end
|
||||
|
||||
def dispose
|
||||
@@ -130,7 +130,7 @@ class HeldItemIconSprite < Sprite
|
||||
|
||||
def pokemon=(value)
|
||||
@pokemon = value
|
||||
self.item = @pokemon.item_id
|
||||
self.item = @pokemon&.item_id
|
||||
end
|
||||
|
||||
def item=(value)
|
||||
@@ -148,7 +148,7 @@ class HeldItemIconSprite < Sprite
|
||||
|
||||
def update
|
||||
super
|
||||
self.item = @pokemon.item_id
|
||||
self.item = @pokemon&.item_id
|
||||
if @animbitmap
|
||||
@animbitmap.update
|
||||
self.bitmap = @animbitmap.bitmap
|
||||
|
||||
Reference in New Issue
Block a user