So in my game, there isn't so much of a clear division between skill types, and as a result I don't know right now, and won't until I am near finished with the game which classes should have which skill types added in the database. I saw in the script editor that the command is referred to by Game_Actor#added_skill_types. It wasn't in the class body, so I'm assuming it is defined elsewhere? None the less, I added this into Game_Actor so that the added_skill_types just returns an array of any skill types the actor has a skill of, rather than looking in the database. (Game_Actor#has_skill_type? is a method I also defined it just check if the actor has a skill of the given type).
My Question is this: Is this the only place that the [add skill type] feature is referenced, and have I basically overridden the [add skill type] feature? Or are there other references I would need to change in order to override it entirely?
Code:
def added_skill_types
stypes = []
$data_system.skill_types.length.times do |i|
stype = i + 1
stypes<<stype if has_skill_type?(stype)
end
return stypes
end
My Question is this: Is this the only place that the [add skill type] feature is referenced, and have I basically overridden the [add skill type] feature? Or are there other references I would need to change in order to override it entirely?