def refresh_fbs
return if @actors.size == $game_variables[1]
# 活动队伍数量增加时
if @actors.size < $game_variables[1]
change_size = (@actors.size - $game_variables[1]).abs
# 把等待队伍开头的角色塞进活动队伍
for i in 0...change_size
if @waiting_actors != []
break if @waiting_actors.size < 1
waiting_leader = @waiting_actors[0]
@waiting_actors.delete_at(0)
@actors.push(waiting_leader)
end
end
# BFS刷新
$game_temp.friends_need_refresh = true
$game_party.friend_party_update
# プレイヤーをリフレッシュ
$game_player.refresh
# ステータスウィンドウをリフレッシュ
friend_party_update
#当在大地图
if $game_variables[5] != 2
$scene.hud_update
$scene.spriteset.dispose
$scene.spriteset = Spriteset_Map.new
end
BFS_Friends.weapon_recheck
$scene = Scene_Map.new
# 活动中的角色数量减少时
else
change_size = (@actors.size - $game_variables[1]).abs
for i in 0...change_size
break if @actors.size < 2
to_wait_actor = @actors.pop
@waiting_actors.insert(0, to_wait_actor)
end
# FBS刷新
friend_party_update
BFS_Friends.delete_all_friends
BFS_Friends.prepare_for_transferring
$game_player.refresh
$scene.spriteset.dispose
$scene.spriteset = Spriteset_Map.new
$scene.hud_update
end
end