Example #1
0
        public static int AddStatPool(StatPool newPool)
        {
            try
            {
                using (DB_r0739290Entities entities = new DB_r0739290Entities())
                {
                    entities.StatPool.Add(newPool);

                    return(entities.SaveChanges());
                }
            }
            catch (Exception ex)
            {
                ErrorLogging(ex);
                return(0);
            }
        }
Example #2
0
        public string ReturnHP()
        {
            currentHp = StatPool.CurrentHealth(this);

            return(currentHp + "\t/ " + StatPool.CurrentHealth(this));
        }