mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 05:34:58 +00:00
Rearranged and tidied up game data scripts
This commit is contained in:
@@ -835,7 +835,9 @@ class PokemonPokedex_Scene
|
||||
when 0 then @sprites["searchbg"].setBitmap("Graphics/Pictures/Pokedex/bg_search_order")
|
||||
when 1 then @sprites["searchbg"].setBitmap("Graphics/Pictures/Pokedex/bg_search_name")
|
||||
when 2
|
||||
if PBTypes.regularTypesCount==18
|
||||
count = 0
|
||||
GameData::Type.each { |t| count += 1 if !t.pseudo_type && t.id != :SHADOW }
|
||||
if count == 18
|
||||
@sprites["searchbg"].setBitmap("Graphics/Pictures/Pokedex/bg_search_type_18")
|
||||
else
|
||||
@sprites["searchbg"].setBitmap("Graphics/Pictures/Pokedex/bg_search_type")
|
||||
|
||||
@@ -132,7 +132,7 @@ class PurifyChamberSet
|
||||
# Purify Chamber treats Normal/Normal matchup as super effective
|
||||
def self.typeAdvantage(p1,p2)
|
||||
return true if p1 == :NORMAL && p2 == :NORMAL
|
||||
return PBTypes.superEffective?(p1,p2)
|
||||
return Effectiveness.super_effective_type?(p1, p2)
|
||||
end
|
||||
|
||||
def self.isSuperEffective(p1,p2)
|
||||
|
||||
Reference in New Issue
Block a user