mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Minor script rearranging
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
#===============================================================================
|
||||
# Data saved in $PokemonGlobal.followers.
|
||||
#===============================================================================
|
||||
class FollowerData
|
||||
attr_accessor :original_map_id
|
||||
attr_accessor :event_id
|
||||
@@ -42,6 +45,31 @@ class FollowerData
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Permanently stores data of follower events (i.e. in save files).
|
||||
#===============================================================================
|
||||
class PokemonGlobalMetadata
|
||||
attr_accessor :dependentEvents # Deprecated
|
||||
attr_writer :followers
|
||||
|
||||
def followers
|
||||
@followers = [] if !@followers
|
||||
return @followers
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Stores Game_Follower instances just for the current play session.
|
||||
#===============================================================================
|
||||
class Game_Temp
|
||||
attr_writer :followers
|
||||
|
||||
def followers
|
||||
@followers = Game_FollowerFactory.new if !@followers
|
||||
return @followers
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
#
|
||||
#===============================================================================
|
||||
@@ -312,31 +340,6 @@ class FollowerSprites
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Stores Game_Follower instances just for the current play session.
|
||||
#===============================================================================
|
||||
class Game_Temp
|
||||
attr_writer :followers
|
||||
|
||||
def followers
|
||||
@followers = Game_FollowerFactory.new if !@followers
|
||||
return @followers
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Permanently stores data of follower events (i.e. in save files).
|
||||
#===============================================================================
|
||||
class PokemonGlobalMetadata
|
||||
attr_accessor :dependentEvents # Deprecated
|
||||
attr_writer :followers
|
||||
|
||||
def followers
|
||||
@followers = [] if !@followers
|
||||
return @followers
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Helper module for adding/removing/getting followers.
|
||||
#===============================================================================
|
||||
|
||||
Reference in New Issue
Block a user