public Body(BodyTemplate template) { HitLocations = template.HitLocations.Select(hlt => new HitLocation(hlt)).ToArray(); TotalProbabilityMap = new Dictionary <Stance, int> { [Stance.Standing] = HitLocations.Sum(hl => hl.Template.HitProbabilityMap[(int)Stance.Standing]), [Stance.Kneeling] = HitLocations.Sum(hl => hl.Template.HitProbabilityMap[(int)Stance.Kneeling]), [Stance.Prone] = HitLocations.Sum(hl => hl.Template.HitProbabilityMap[(int)Stance.Prone]) }; }
public Species(int id, string name, NormalizedValueTemplate strength, NormalizedValueTemplate dex, NormalizedValueTemplate con, NormalizedValueTemplate intl, NormalizedValueTemplate per, NormalizedValueTemplate ego, NormalizedValueTemplate cha, NormalizedValueTemplate psy, NormalizedValueTemplate atk, NormalizedValueTemplate mov, NormalizedValueTemplate siz, BodyTemplate bodyTemplate) { Id = id; Name = name; Strength = strength; Dexterity = dex; Perception = per; Intelligence = intl; Ego = ego; Charisma = cha; Constitution = con; PsychicPower = psy; AttackSpeed = atk; MoveSpeed = mov; Size = siz; BodyTemplate = bodyTemplate; }
public Soldier(BodyTemplate body) { _skills = new Dictionary <int, Skill>(); Body = new Body(body); }