mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
General tidying up
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user