示例#1
0
            public string GetDescription(RPGSettings.DamageType damageType)
            {
                string desc = (modifier > 0 ? "+" : "") + modifier + (RPGSettings.IsMez(stat) ? " " : "% to ");

                if (stat <= RPGSettings.StatName.Def)
                {
                    desc += damageType.ToString() + " ";
                }
                desc += stat.ToString();
                return(desc);
            }
示例#2
0
 public override bool IsCurrentlyActive(Prop p)
 {
     foreach (Modifier mod in modifiers)
     {
         if (RPGSettings.IsMez(mod.stat))
         {
             if (p.stats.ContainsKey(mod.stat.ToString()))
             {
                 float val = p.stats[mod.stat.ToString()].getCurrentValue();
                 //Debug.Log("ActiveCheck: " + mod.stat.ToString() + " = " + val);
                 if (val <= 0)
                 {
                     return(false);
                 }
             }
         }
     }
     return(true);
 }