Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Modding skills  (Read 273 times)

Wecth

  • Ensign
  • *
  • Posts: 1
    • View Profile
Modding skills
« on: October 23, 2023, 10:14:07 AM »

For my first time modding the game I wanted to increase the officer skill cap increase given by the [Officer Training] skill from +1 to +3. I came across this text in the file skillschangeofficereffect.java, however I am not sure how to increase the value.

   public int getMaxLevel(MutableCharacterStatsAPI stats) {
      int bonus = (int) stats.getDynamic().getMod(Stats.OFFICER_MAX_LEVEL_MOD).computeEffective(0);
      return (int) Global.getSettings().getFloat("officerMaxLevel") + bonus;
   }
Logged