示例#1
0
        public bool giveDamage(Character f****r, int amount)
        {
            if (HP == 0)
            {
                return(false);
            }
            if (!Damages.ContainsKey(f****r.ID))
            {
                Damages.Add(f****r.ID, 0);
            }
            Damages[f****r.ID] += (ulong)amount;

            if (HP < amount)
            {
                HP = 0;
            }
            else
            {
                HP -= amount;
            }

            return(true);
        }