Overriding the [add skill type] feature in the database

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).

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?  
Yeah, you overwrote the only place where that is referenced for actors.


By default, that method is found in 'Game_BattlerBase', but because 'Game_Actor' inherits from that class (through 'Game_Battler'), you indeed overwrote it, but only for your actors. Enemies still take the default method, if they even use it anywhere.


You can easily search for anything in all of your scripts in the script editor if you press CTRL+SHIFT+F. This brings up the global search window, which will search for anything you enter in all of your scripts.

Original thread: https://forums.rpgmakerweb.com/threads/overriding-the-add-skill-type-feature-in-the-database.55302/