raistlinthewiz/mooege — comment on commit 749dba13d42ba26611878efa33a7ffffe0b5792e
File: src/Mooege/Core/GS/Players/Player.cs line 386
By xsochor:

{
// real unlocking passive
var oldSNOSkill = this.SkillSet.PassiveSkills[message.SkillIndex]; // find replaced skills SNO.
GameAttributeMap map = new GameAttributeMap();
if (oldSNOSkill != -1)
{
// switch off old passive skill
map[GameAttribute.Trait, oldSNOSkill] = 0;
map[GameAttribute.Skill, oldSNOSkill] = 0;
map[GameAttribute.Skill_Total, oldSNOSkill] = 0;
}
// switch on new passive skill
map[GameAttribute.Trait, message.SNOSkill] = 1;
map[GameAttribute.Skill, message.SNOSkill] = 1;
map[GameAttribute.Skill_Total, message.SNOSkill] = 1;