Random grammar fixes + fixes crash while using morning sun & moonlight in some indoor maps

This commit is contained in:
infinitefusion
2022-12-12 12:20:12 -05:00
parent 9ce39abad3
commit ecaa38d6c2
40 changed files with 9 additions and 6 deletions

View File

@@ -85,7 +85,8 @@ end
############### MORNING SUN / MOONLIGHT
HiddenMoveHandlers::CanUseMove.add(:MORNINGSUN,proc{|move,pkmn|
if !GameData::MapMetadata.get($game_map.map_id).outdoor_map
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
if !mapMetadata || !mapMetadata.outdoor_map
Kernel.pbMessage(_INTL("Can't use that here."))
next false
end
@@ -107,7 +108,8 @@ HiddenMoveHandlers::UseMove.add(:MORNINGSUN,proc{|move,pokemon|
})
HiddenMoveHandlers::CanUseMove.add(:MOONLIGHT,proc{|move,pkmn|
if !GameData::MapMetadata.get($game_map.map_id).outdoor_map
mapMetadata = GameData::MapMetadata.get($game_map.map_id)
if !mapMetadata || !mapMetadata.outdoor_map
Kernel.pbMessage(_INTL("Can't use that here."))
next false
end

View File

@@ -30,6 +30,8 @@ def handleReplaceExistingSprites()
when 0 #Do not import
pbMessage("You can manually sort the new sprites in the /indexed folder to choose which ones you want to keep.")
pbMessage("You can also delete the ones you don't want to replace the main sprites and restart the game.")
pbMessage("Keep in mind that the game will take longer to load until these sprites are imported/removed.")
return
when 1 #Replace olds
spritesToReplaceList.each do |oldPath, newPath|