public static void ServerUnlockGroup(ICharacter character, TechGroup techGroup) { techGroup.SharedValidateCanUnlock(character); var technologies = character.SharedGetTechnologies(); technologies.ServerRemoveLearningPoints(techGroup.LearningPointsPrice); technologies.ServerAddGroup(techGroup); }
public static void ServerUnlockGroup(ICharacter character, TechGroup techGroup) { techGroup.SharedValidateCanUnlock(character, skipLearningPointsCheck: false); var technologies = character.SharedGetTechnologies(); technologies.ServerRemoveLearningPoints(techGroup.LearningPointsPrice); technologies.ServerAddGroup(techGroup); technologies.IsTechTreeChanged = false; foreach (var rootNode in techGroup.RootNodes) { technologies.ServerAddNode(rootNode); } }