internal static ClassPoints toClassPoints(LUA.LuaClassPoints lcp) { ClassPoints cp = new ClassPoints(); cp.classID = lcp.ID; cp.points = lcp.amount; return(cp); }
internal static ClassPoints Copy(BaseClass bc) { ClassPoints temp = new ClassPoints(bc); temp.points = bc.classPoints.points; temp.spendPoints = bc.classPoints.spendPoints; return(temp); }
public ClassExperience(BaseClass c) { baseClass = c; exp = c.classEXP.totalExp; level = c.classEXP.classLevel; classID = c.classIdentifier; stats = c.classStats; bIsUnlocked = c.bIsUnlocked; classPoints = ClassPoints.Copy(c); }
internal void ReloadFromSaveFile(CharacterSaveData csd) { for (int i = 0; i < csd.ccsd.postLoadCCC.charClassList.Count; i++) { var c = csd.ccsd.postLoadCCC.charClassList[i]; c.classEXP.totalExp = exp; c.classEXP.classLevel = level; ClassPoints.PasteBackFromSave(classPoints, c); c.classStats = stats; c.bIsUnlocked = bIsUnlocked; c.classEXP.CalculateResetExpAndLevels(); } }
public void AddPoints(ClassPoints cp) { classPoints.classID = classIdentifier; classPoints.points += Math.Abs(cp.points); }
internal static void PasteBackFromSave(ClassPoints cp, BaseClass bc) { bc.classPoints = new ClassPoints(bc); bc.classPoints.points = cp.points; bc.classPoints.spendPoints = cp.spendPoints; }