class Game_Actor < Game_Battler def init_skills if Freya::Non_Init_Skill @skills = [] if @skills.nil? else @skills = [] end self.class.learnings.each do |learning| learn_skill(learning.skill_id) if learning.level <= @level end if self.subclass self.subclass.learnings.each do |learning| learn_skill(learning.skill_id) if learning.level <= @level end end end def change_class(class_id, keep_exp = Freya::Non_Init_Level) @subclass_id = 0 if @subclass_id == class_id return if $data_classes[class_id].subclass_only @exp[class_id] = exp if keep_exp @class_id = class_id change_exp(@exp[@class_id] || 0, false) init_skills refresh unlock_class(class_id) correct_subclass end def change_subclass(class_id) return if class_id == @class_id unlock_class(class_id) @subclass_id = @subclass_id == class_id ? 0 : class_id init_skills refresh end end
class Game_Actor < Game_Battler
def init_skills
if Freya::Non_Init_Skill
@skills = [] if @skills.nil?
else
@skills = []
end
self.class.learnings.each do |learning|
learn_skill(learning.skill_id) if learning.level <= @level
end
if self.subclass
self.subclass.learnings.each do |learning|
learn_skill(learning.skill_id) if learning.level <= @level
end
end
end
def change_class(class_id, keep_exp = Freya::Non_Init_Level)
@subclass_id = 0 if @subclass_id == class_id
return if $data_classes[class_id].subclass_only
@exp[class_id] = exp if keep_exp
@class_id = class_id
change_exp(@exp[@class_id] || 0, false)
init_skills
refresh
unlock_class(class_id)
correct_subclass
end
def change_subclass(class_id)
return if class_id == @class_id
unlock_class(class_id)
@subclass_id = @subclass_id == class_id ? 0 : class_id
init_skills
refresh
end
end
|