Пример #1
0
        public override bool StateAttack(GSkill skill)
        {
            GPlayerWrapper player            = skill.GetPlayer();
            GPlayerWrapper victim            = skill.GetVictim();
            int            player_occupation = player.GetOccupation();
            int            skill_level       = skill.GetLevel();

            /*
             * if ( player_occupation == 43 )
             * {
             * v11 = 4 * skill_level + 8;
             * if ( skill_level == 5 )
             * v10 = (v11 + 10);
             * else
             * d = v11;
             * }
             * else
             * {
             * v9 = skill_level + 5;
             * if ( skill_level == 5 )
             * v8 = (v9 + 5);
             * else
             * d = v9;
             * }
             * victim.SetProbability(d);
             * victim.SetTime(((1000 * skill_level + 2100)));
             * victim.SetDiet(true);
             */
            return(true);
        }