alwsheng 发表于 2013-6-24 21:23
晕,那不行噢,那就算了吧,谢谢你了
class Game_Followers def initialize(leader) @visible = $data_system.opt_followers @gathering = false @data = [] @data.push(Game_Follower.new(1, leader)) (2...max_follow_members).each do |index| @data.push(Game_Follower.new(index, @data[-1])) end end def max_follow_members return 3 end end
class Game_Followers
def initialize(leader)
@visible = $data_system.opt_followers
@gathering = false
@data = []
@data.push(Game_Follower.new(1, leader))
(2...max_follow_members).each do |index|
@data.push(Game_Follower.new(index, @data[-1]))
end
end
def max_follow_members
return 3
end
end
扔到main以上,Game_Followers以下 |