mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added generic item icon support for HMs/TRs, moves taught by TR are now relearnable, tweaked determination of valid Mega forms
This commit is contained in:
@@ -27,10 +27,20 @@ module GameData
|
||||
return ret if pbResolveBitmap(ret)
|
||||
# Check for TM/HM type icons
|
||||
if item_data.is_machine?
|
||||
prefix = "machine"
|
||||
if item.data_is_HM?
|
||||
prefix = "machine_hm"
|
||||
elsif item_data.is_TR?
|
||||
prefix = "machine_tr"
|
||||
end
|
||||
move_type = GameData::Move.get(item_data.move).type
|
||||
type_data = GameData::Type.get(move_type)
|
||||
ret = sprintf("Graphics/Items/machine_%s", type_data.id)
|
||||
ret = sprintf("Graphics/Items/%s_%s", prefix, type_data.id)
|
||||
return ret if pbResolveBitmap(ret)
|
||||
if !item_data.is_TM?
|
||||
ret = sprintf("Graphics/Items/machine_%s", type_data.id)
|
||||
return ret if pbResolveBitmap(ret)
|
||||
end
|
||||
end
|
||||
return "Graphics/Items/000"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user