Author Topic: Bonuses and output of skills.c  (Read 1714 times)

Offline Lash

  • Acquaintance
  • *
  • Posts: 45
    • View Profile
Bonuses and output of skills.c
« on: November 19, 2011, 03:53:54 pm »
Not really a bug per se, but I was using AddStatBonus() and AddSkillBonus() in a file I was creating - while the stat bonus was seen in the output for the players' stats command the skill bonus was not when using the players' skills command.

The skills command reported the skill level regardless of bonus points. I changed a line in skills.c so that the current skill level will be displayed.
This was bugging the crap out of me because I could see the bonus was being added using call <player>->GetSkillLevel() but the change wasn't being displayed when using the skills command.

Anyway, a minor change but may be useful to other newbies like myself.

diff file:

Code: [Select]
<             (/*mp["level"]*/this_player()->GetSkillLevel(skill) + "/" + max), x); //changed by Lash so current skill level is shown with skill bonuses
>             (mp["level"] + "/" + max), x);