Example #1
0
    public ThiefPassive2(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.SELF;
        type      = SKILLTYPE.PAS;
        image     = "battle/Thief/Skill/ThiefPassive2";
        name      = "sharp-eye (Ver.Rogue)";
        explain   = "";

        this.level = level;
        coef       = 1;
    }
Example #2
0
    public ThiefPassive3(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.SELF;
        type      = SKILLTYPE.PAS;
        image     = "battle/Thief/Skill/ThiefPassive3";
        name      = "Confusion";
        explain   = "";

        this.level = level;
        coef       = 1;
    }
Example #3
0
    public ThiefPassive1(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.SELF;
        type      = SKILLTYPE.PAS;
        image     = "battle/Thief/Skill/ThiefPassive1";
        name      = "preceding movement";
        explain   = "";

        this.level = level;
        coef       = 1;
    }
Example #4
0
    public ThiefPassive5(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.SELF;
        type      = SKILLTYPE.PAS;
        image     = "battle/Thief/Skill/ThiefPassive5";
        name      = "final blow";
        explain   = "";

        this.level = level;
        coef       = 1;

        atkNum = 0;
    }
Example #5
0
    public ThiefPassive4(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.SELF;
        type      = SKILLTYPE.PAS;
        image     = "battle/Thief/Skill/ThiefPassive4";
        name      = "Explosive Trap";
        explain   = "";

        this.level = level;
        coef       = 1;


        debuff  = new List <Buff>();
        enemies = new List <BattleChar>();
    }
Example #6
0
    public ThiefActive3(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMY;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive3";
        name      = "throwingPoisonDart";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 6;
        incMana   = 2;

        key = "act3";
    }
Example #7
0
    public ThiefActive2(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMY;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive2";
        name      = "backstab";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 5;
        incMana   = 2;


        key = "act2";
    }
Example #8
0
    public ThiefActive1(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMY;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive1";
        name      = "Assassination";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 9;
        incMana   = 3;



        key = "act1";
    }
Example #9
0
        /// <summary>
        /// 发动偷窃技能
        /// </summary>
        /// <param name="qqid"></param>
        /// <returns></returns>
        public static ThiefAttack ThiefSkillAttack(string qqid)
        {
            SkillThief skillThief = new SkillThief();

            skillThief = CurdToDB.SearchSkillThiefFromDB(qqid);
            if (skillThief == null)
            {
                //没有技能
                return(null);
            }
            else
            {
                Random random      = new Random();
                double iLuckyAddon = LuckyAddon.GetiLuckyAddon(qqid);
                int    iChance     = (int)(int.Parse(skillThief.SkillChance) * iLuckyAddon);
                int    iResult     = random.Next(1, 101);

                //测试
                //iResult = 2;
                //

                if (iResult >= 1 && iResult < iChance)
                {
                    //判定成功
                    ThiefAttack   thiefAttack = new ThiefAttack();
                    int           thiefGold   = random.Next(int.Parse(skillThief.EffLower), int.Parse(skillThief.EffUpper) + 1);
                    List <string> qqIdList    = CurdToDB.SearchGoldListFromDB(thiefGold);
                    int           attNum      = random.Next(0, qqIdList.Count);
                    int           oldGold     = CurdToDB.SearchGoldFromDB(qqIdList[attNum]);
                    CurdToDB.UpdateGoldToDB(qqIdList[attNum], oldGold, -thiefGold);
                    int ioldGold = CurdToDB.SearchGoldFromDB(qqid);
                    CurdToDB.UpdateGoldToDB(qqid, ioldGold, thiefGold);
                    thiefAttack.QQid      = qqIdList[attNum];
                    thiefAttack.ThiefGold = thiefGold;
                    return(thiefAttack);
                }
                else
                {
                    //未触发
                    return(null);
                }
            }
        }
Example #10
0
    public ThiefActive5(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMY;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive5";
        name      = "Vengeance";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 5;
        incMana   = 3;


        counter = new List <ThiefActive5Damaged>();
        friends = new List <BattleChar>();
        key     = "act5";
    }
Example #11
0
    public ThiefActive4(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMYALL;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive4";
        name      = "bloodthirsthy";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 5;
        incMana   = 3;


        debuff  = new List <Buff>();
        enemies = new List <BattleChar>();
        key     = "act4";
    }
Example #12
0
    public ThiefActive3(int level, SkillThief set) : base(set)
    {
        targetNum = 1;
        targetTag = TARGETTAG.ENEMY;
        type      = SKILLTYPE.ACT;
        image     = "battle/Thief/Skill/ThiefActive3";
        name      = "Throwing poison Dart";
        explain   = "";

        this.level = level;
        coef       = 1;

        basicMana = 6;
        incMana   = 2;


        debuff  = new List <ThiefAct3Buff>();
        enemies = new List <BattleChar>();
        key     = "act3";
    }
Example #13
0
 public ThiefPassives(SkillThief set) : base(set)
 {
 }
Example #14
0
    //public new SkillThief set;

    public ThiefActives(SkillThief set) : base(set)
    {
    }