Exemple #1
0
        public static Int64 Battle(Lead lead)
        {
            Int64 attack = 0;

            //真:主角,假:怪物
            if (CurrectAttack)
            {
                if (lead.CurrentBlood > 0)
                {
                    attack = BuildRandomNumber(lead.AttackMin, lead.AttackMax);
                    CurrentMonster.CurrentBlood -= attack;
                }
            }
            else
            {
                if (CurrentMonster.CurrentBlood > 0)
                {
                    attack             = BuildRandomNumber(CurrentMonster.AttackMin, CurrentMonster.AttackMax);
                    lead.CurrentBlood -= attack;
                }
            }
            CurrectAttack = !CurrectAttack;
            return(attack);
        }
Exemple #2
0
 public static void HadMet(Lead lead)
 {
     CurrentMonster = CurrentMap.BuildMonster();
     //根据敏捷决定出手顺序
     CurrectAttack = true;
 }