randomizer fixces

This commit is contained in:
infinitefusion
2023-04-25 22:09:30 -04:00
parent 087fe9a446
commit a31a7c5a21
19 changed files with 8 additions and 5 deletions

View File

@@ -385,7 +385,7 @@ def obtainPokemonSpritePath(bodyId, headId, include_customs = true)
download_pokemon_sprite_if_missing(bodyId,headId)
picturePath = _INTL("Graphics/Battlers/{1}/{1}.{2}.png", headId, bodyId)
if include_customs && customSpriteExists(bodyId,headId)
if include_customs && customSpriteExistsBodyHead(bodyId,headId)
pathCustom = getCustomSpritePath(bodyId,headId)
if (pbResolveBitmap(pathCustom))
picturePath = pathCustom
@@ -410,7 +410,7 @@ end
def customSpriteExists(body, head)
def customSpriteExistsBodyHead(body, head)
pathCustom = getCustomSpritePath(body,head)
return true if pbResolveBitmap(pathCustom) != nil

View File

@@ -407,7 +407,7 @@ ItemHandlers::UseFromBag.add(:MAGICBOOTS, proc { |item|
else
if Kernel.pbConfirmMessageSerious(_INTL("Put on the Magic Boots?"))
Kernel.pbMessage(_INTL("Debug mode is now active."))
$game_switches[842] = true #got debug mode (for compatibility)
$game_switches[ENABLED_DEBUG_MODE_AT_LEAST_ONCE] = true #got debug mode (for compatibility)
$DEBUG = true
end
end