public void CreateLists() { this.SkillEffects.Clear(); int skillValue = this._SkillScreenVM.GetCharacterDeveloper().Hero.GetSkillValue(this.Skill); foreach (SkillEffect effect in from x in DefaultSkillEffects.GetAllSkillEffects() where x.EffectedSkills.Contains(this.Skill) select x) { this.SkillEffects.Add(new BindingListStringItem(CampaignUIHelper.GetSkillEffectText(effect, skillValue))); } }
static void Postfix(SkillVM __instance, ref int ____fullLearningRateLevel, CharacterVM ____developerVM) { int attr = ____developerVM.GetCurrentAttributePoint(__instance.Skill.CharacterAttributeEnum); ____fullLearningRateLevel = (int)(__instance.Level + __instance.CurrentFocusLevel * Reworked_SkillsSubModule.__FOCUS_VALUE + attr * Reworked_SkillsSubModule.__ATTR_VALUE); __instance.OnPropertyChanged(nameof(__instance.FullLearningRateLevel)); __instance.SkillEffects.Clear(); int skillValue = (int)(__instance.Level + __instance.CurrentFocusLevel * Reworked_SkillsSubModule.__FOCUS_VALUE + attr * Reworked_SkillsSubModule.__ATTR_VALUE); foreach (SkillEffect effect in DefaultSkillEffects.GetAllSkillEffects().Where <SkillEffect>((Func <SkillEffect, bool>)(x => ((IEnumerable <SkillObject>)x.EffectedSkills).Contains <SkillObject>(__instance.Skill)))) { __instance.SkillEffects.Add(new BindingListStringItem(CampaignUIHelper.GetSkillEffectText(effect, skillValue))); } }