Skip to content

v3

Choose a tag to compare

@CG-Nik CG-Nik released this 08 Aug 20:28
· 6 commits to master since this release

CHANGES

  • Added a thing that automatically handles AddProgressionSlots and AddInherits for mods
  • Also removed both of those hooks, as they’re obsolete
  • Added a function that mods can call that automatically adds ProfessionSkills to the list of ProfessionSkills that the game has

MOD DEVELOPER NEEDED CHANGES

  • progressionSlots.Add() should be changed to CustomSkillsAPI.Core.progressionSlots.Add()
  • Remove the AddProgressionSlots and AddInherits hooks, CustomSkillsAPI handles it for you now
  • Replace ProfessionSkill.CheckItems(); Dictionary<uint, ProfessionSkill> items = (Dictionary<uint, ProfessionSkill>)typeof(HashedGeneralValue<ProfessionSkill>).GetField("items", BindingFlags.Static | BindingFlags.NonPublic).GetValue(null); items.Add(customSkill.Hash, customSkill); (where customSkill is a ProfessionSkill) with CustomSkillsAPI.Core.RegisterProfessionSkill(customSkill);