public static string GetAttributeDescription(Character.StatType type) { if (Instance.AttributeImages.Any(im => im.Stat == type)) { return(Instance.AttributeImages.First(im => im.Stat == type).Description); } return("Goblins are cool!!"); }
public static Sprite GetAttributeImage(Character.StatType type) { if (Instance.AttributeImages.Any(im => im.Stat == type)) { return(Instance.AttributeImages.First(im => im.Stat == type).Image); } return(Instance.AttributeImages.First().Image); }
private string GetStatDescription(Character.StatType stat, int modifier, bool adjective) { if (modifier > 0) { return(adjective ? PositiveAttributes.First(s => s.Stat == stat).GeAdjective() : PositiveAttributes.First(s => s.Stat == stat).GetNoun()); } else { return(adjective ? NegativeAttributes.First(s => s.Stat == stat).GeAdjective() : NegativeAttributes.First(s => s.Stat == stat).GetNoun()); } }
public StatChangedEventArgs(Guid CharacterID, Character.StatType StatAffected, Stat NewStat) { this.CharacterID = CharacterID; this.StatAffected = StatAffected; this.NewStat = NewStat; }
public RegainStatEffect(Character.StatType stat, int amount) : this() { this.StatAffected = stat; this.Amount = amount; }
//eg. DMG //public string StatNameShort; //public Character.Race WhenAttacking; public StatEffect(Character.StatType statName, string statNameShort, Character.Stat.StatMod modifier) { Modifier = modifier; Stat = statName; }
public AttributeDescription(Character.StatType stat, string[] adjective, string[] noun) { Stat = stat; this.adjective = adjective; this.noun = noun; }