class Game_Followers
def initialize(leader)
@visible = $data_system.opt_followers
@gathering = false
@data = []
@data.push(Game_Follower.new(1, leader))
(2...($game_party.max_battle_members + 2)).each do |index| #队列上限增加2个
@data.push(Game_Follower.new(index, @data[-1]))
end
end
end
class Game_Party < Game_Unit
def battle_members
arr = all_members.reject{|actor| [3].include?(actor.id)} #在数组内填入不要出现在战斗的角色ID
arr[0, max_battle_members].select {|actor| actor.exist? }
end
end
class Game_Followers
def initialize(leader)
@visible = $data_system.opt_followers
@gathering = false
@data = []
@data.push(Game_Follower.new(1, leader))
(2...($game_party.max_battle_members + 2)).each do |index| #队列上限增加2个
@data.push(Game_Follower.new(index, @data[-1]))
end
end
end
class Game_Party < Game_Unit
def battle_members
arr = all_members.reject{|actor| [3].include?(actor.id)} #在数组内填入不要出现在战斗的角色ID
arr[0, max_battle_members].select {|actor| actor.exist? }
end
end