General tidying up

This commit is contained in:
Maruno17
2020-12-28 15:46:08 +00:00
parent d3d7222fd3
commit fb29c6b760
44 changed files with 1822 additions and 2650 deletions

View File

@@ -5,7 +5,6 @@
# is managed here as well. Refer to "$game_system" for the instance of
# this class.
#==============================================================================
class Game_System
attr_reader :map_interpreter # map event interpreter
attr_reader :battle_interpreter # battle event interpreter

View File

@@ -106,9 +106,20 @@ class Game_Event < Game_Character
return elapsed>=days
end
def cooledDown?(seconds)
return true if expired?(seconds) && tsOff?("A")
self.need_refresh = true
return false
end
def cooledDownDays?(days)
return true if expiredDays?(days) && tsOff?("A")
self.need_refresh = true
return false
end
def onEvent?
return @map_id==$game_map.map_id &&
$game_player.x==self.x && $game_player.y==self.y
return @map_id == $game_map.map_id && $game_player.x == self.x && $game_player.y == self.y
end
def over_trigger?

View File

@@ -400,8 +400,6 @@ class PokemonMapFactory
end
end
#===============================================================================
# Map Factory Helper (stores map connection and size data and calculations
# involving them)
@@ -506,8 +504,10 @@ module MapFactoryHelper
end
end
#===============================================================================
#
#===============================================================================
# Unused
def updateTilesets
maps = $MapFactory.maps
for map in maps