[Ace] One-time boost to Hit

I feel like this is probably a really dumb question, but google doesn't seem to know so...

I want to give a one-time "+5% Hit Rate" boost to a single class when they reach level 2.  I tried the code below and it didn't work.  What would you recommend instead?

Spoiler
class Game_Actor < Game_Battler

  #--------------------------------------------------------------------------

  # * Level Up

  #--------------------------------------------------------------------------

  alias original_level_up level_up

  def level_up

    original_level_up

    if(@class_id == 1)

      if(@level == 2)

        @hit = += 0.05

      end

    end

  end

end
xparams and sparams by default are all handled by Features. So if you want to increase them, you'd need to add a feature that increases them.


Shaz has a script for dynamically adding features
If you were to add another variable to the actor for each param/xparam/sparam (one you can increase), then overwrite the definition for each param/xparam/sparam, it should work too.

Hmmm....you may have just given me a script idea too....
Yanfly has a script for allowing custom formulas for xparams.
Yanfly's also doesn't let you do a one time boost (that I know of), as it only allows you to modify the formula it is based on.
You could utilize the formula for that... If level is greater than 1, add the bonus.

Original thread: https://forums.rpgmakerweb.com/threads/ace-one-time-boost-to-hit.32763/