DarkEmu_GameServer.Systems.HandlePotionLevel C# (CSharp) Метод

HandlePotionLevel() публичный статический Метод

public static HandlePotionLevel ( int hp ) : int
hp int
Результат int
        public static int HandlePotionLevel(int hp)
        {
            int hpinfo = hp;
            byte info = 0;

            while (hpinfo > 0)
            {
                info++;
                hpinfo /= 10;
            }
            int b = 10;
            for (int i = 1; i <= info; i++)
            {
                b *= 10;
            }

            return b;
        }
Systems