public Player() { stClass = StatsFactory.GetRandom(); Name = "Plyr " + stClass.ToString(); Image = "41x24"; Stats = new EntityStatsContainer(stClass); Stats.Level = 4; Stats.updateAttributes(); Stats.FullHeal(); Stats.SkillsList.AddRange(SkillSetFactory.GetSkillsFor(StatClass.Default, 0)); Stats.SkillsList.AddRange(SkillSetFactory.GetSkillsFor(stClass, -1)); Stats.SkillsList = Stats.SkillsList.Intersect(Stats.SkillsList).ToList(); MyParty = new Party(); MyParty.Front = this; //Player starts in front of party }
public EnemyPrefab(int level) { stClass = StatsFactory.GetRandom(); Name = "Mns " + stClass.ToString(); //TODO: monster naming Image = "15x5"; //TODO: monster sprites Stats = new EntityStatsContainer(stClass); Stats.Level = 3; Stats.updateAttributes(); Stats.FullHeal(); OverworldAI = new DefaultOverworldAI(); CombatAI = new DefaultCombatAI(); MyParty = new Party(); MyParty.Front = this; Stats.SkillsList.AddRange(SkillSetFactory.GetSkillsFor(StatClass.Default, 1)); Stats.SkillsList.AddRange(SkillSetFactory.GetSkillsFor(stClass, -1)); Stats.SkillsList = Stats.SkillsList.Intersect(Stats.SkillsList).ToList(); canLink = true; }