Fixed previous commit always causing recompiling if shadow_pokemon.dat doesn't exist, also rubocopping

This commit is contained in:
Maruno17
2023-01-23 22:27:04 +00:00
parent f6213057d8
commit b0b6e675c3
103 changed files with 1099 additions and 1302 deletions

View File

@@ -38,8 +38,6 @@ def pbWarpToMap
return nil
end
#===============================================================================
# Debug Variables screen
#===============================================================================
@@ -95,8 +93,8 @@ class SpriteWindow_DebugVariables < Window_DrawableCommand
(Kernel.const_defined?(code_parts[0]) rescue false)
val = (eval(code) rescue nil) # Code starts with a class/method name
elsif code_parts[0][0].downcase == code_parts[0][0] &&
!(Interpreter.method_defined?(code_parts[0].to_sym) rescue false) &&
!(Game_Event.method_defined?(code_parts[0].to_sym) rescue false)
!(Interpreter.method_defined?(code_parts[0].to_sym) rescue false) &&
!(Game_Event.method_defined?(code_parts[0].to_sym) rescue false)
val = (eval(code) rescue nil) # Code starts with a method name (that isn't in Interpreter/Game_Event)
end
else
@@ -131,8 +129,9 @@ class SpriteWindow_DebugVariables < Window_DrawableCommand
end
end
#===============================================================================
#
#===============================================================================
def pbDebugSetVariable(id, diff)
$game_variables[id] = 0 if $game_variables[id].nil?
if $game_variables[id].is_a?(Numeric)
@@ -371,8 +370,6 @@ def pbDebugDayCare
cmd_window.dispose
end
#===============================================================================
# Debug roaming Pokémon screen
#===============================================================================
@@ -453,8 +450,9 @@ class SpriteWindow_DebugRoamers < Window_DrawableCommand
end
end
#===============================================================================
#
#===============================================================================
def pbDebugRoamers
viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
viewport.z = 99999
@@ -544,8 +542,6 @@ def pbDebugRoamers
viewport.dispose
end
#===============================================================================
# Battle animations import/export
#===============================================================================
@@ -739,8 +735,6 @@ def pbCheckTileValidity(tile_id, map, tilesets, passages)
return false
end
#===============================================================================
# Pseudo-party screen for editing Pokémon being set up for a wild battle
#===============================================================================