コード例 #1
0
ファイル: MetaSkill.cs プロジェクト: AllanNisbet/runuo
        public void DoAbilityBleed(BaseCreature target, BaseMetaPet pet)
        {
            var timer = new InternalBleedTimer(pet, target, Level);

            timer.Start();

            Experience++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpBleed(pet.ControlMaster);
            }
            NextUse = DateTime.UtcNow + CoolDown;
        }
コード例 #2
0
        public static void BeginBleed(Mobile m, Mobile from)
        {
            Timer t = (Timer)m_BleedTable[m];

            if (t != null)
            {
                t.Stop();
            }

            t = new InternalBleedTimer(from, m);
            m_BleedTable[m] = t;

            t.Start();
        }
コード例 #3
0
        public void DoAbilityExsanguinate(BaseCreature target, Mobile attacker)
        {
            attacker.SendMessage(54, "You drain the blood of your victim");
            var timer = new InternalBleedTimer(attacker, target, Level);

            timer.Start();

            Experience++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpExsanguinate(_Owner);
            }

            NextUse = DateTime.UtcNow + CoolDown;
        }
コード例 #4
0
ファイル: MetaSkill.cs プロジェクト: greeduomacro/UO-Forever
        public void DoAbilityBleed(BaseCreature target, BaseMetaPet pet)
        {
            var timer = new InternalBleedTimer(pet, target, Level);
            timer.Start();

            Experience ++;
            if (Experience >= NextLevelExperience)
            {
                LevelUpBleed(pet.ControlMaster);
            }
            NextUse = DateTime.UtcNow + CoolDown;
        }