예제 #1
0
 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!!");
 }
예제 #2
0
    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);
    }
예제 #3
0
 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;
 }
예제 #6
0
        //eg. DMG
        //public string StatNameShort;
        //public Character.Race WhenAttacking;

        public StatEffect(Character.StatType statName, string statNameShort, Character.Stat.StatMod modifier)
        {
            Modifier = modifier;
            Stat     = statName;
        }
예제 #7
0
 public AttributeDescription(Character.StatType stat, string[] adjective, string[] noun)
 {
     Stat           = stat;
     this.adjective = adjective;
     this.noun      = noun;
 }