internal void HandleLevelup(BaseClass equippedClass, BaseCharacter currentBC)
        {
            var obj = new LUA.LuaGameClass(equippedClass, currentBC);

            (levelUpScript[functionName] as NLua.LuaFunction).Call(obj);
            if (obj != null)
            {
                ((LUA.LuaGameClass)(obj)).HandleLevelUp(equippedClass, currentBC);
            }
            bMustGenerateStatUp = true;
        }
 static public void ConfirmPress()
 {
     if (bLevelledUp)
     {
         bLevelledUp = false;
         currentBC.CCC.equippedClass.classEXP.bLevelledUp = false;
         levelUpInfo = null;
         lustid      = null;
     }
     else
     {
         if (charsAndExpGains.Count != 0)
         {
             GenerateLogic();
         }
         else
         {
             Stop();
         }
     }
 }
 internal void HandleLevelUpEditorSimulation(LUA.LuaGameClass lgc)
 {
     (levelUpScript[functionName] as NLua.LuaFunction).Call(lgc);
 }
        internal LevelUpStatIncreaseDisplay(LUA.LuaGameClass info, BaseCharacter bc)
        {
            if (!bInitialize)
            {
                Initialize();
            }
            statUps   = new List <StatUpDisplay>();
            this.info = info;
            int count = 0;

            for (int i = 0; i < info.additionStat.currentPassiveStats.Count; i++)
            {
                if (info.additionStat.currentPassiveStats[i] != 0)
                {
                    if (count < 5)
                    {
                        String s = ((STATChart.PASSIVESTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentPassiveStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2), 375 + 62 * count, 350, 52), s, info.additionStat.currentPassiveStats[i]));
                    }
                    if (count >= 5 && count < 10)
                    {
                        String s = ((STATChart.PASSIVESTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentPassiveStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2) + 350 + 25, 375 + 62 * count % 5, 350, 52), s, info.additionStat.currentPassiveStats[i]));
                    }
                    if (count >= 10 && count < 15)
                    {
                        String s = ((STATChart.PASSIVESTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentPassiveStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2) + 350 + 350 + 50, 375 + 62 * count % 10, 350, 52), s, info.additionStat.currentPassiveStats[i]));
                    }


                    count++;
                }
            }

            for (int i = 0; i < info.additionStat.currentSpecialStats.Count; i++)
            {
                if (info.additionStat.currentSpecialStats[i] != 0)
                {
                    if (count < 5)
                    {
                        String s = ((STATChart.SPECIALSTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentSpecialStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2), 375 + 62 * count, 350, 52), s, info.additionStat.currentSpecialStats[i]));
                    }
                    if (count >= 5 && count < 10)
                    {
                        String s = ((STATChart.SPECIALSTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentSpecialStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2) + 350 + 25, 375 + 62 * count % 5, 350, 52), s, info.additionStat.currentSpecialStats[i]));
                    }
                    if (count >= 10 && count < 15)
                    {
                        String s = ((STATChart.SPECIALSTATSNames)i).ToString() + ": " + bc.trueSTATChart().currentSpecialStats[i];
                        statUps.Add(new StatUpDisplay(new Rectangle((1366 / 2 - 1100 / 2) + 350 + 350 + 50, 375 + 62 * count % 10, 350, 52), s, info.additionStat.currentSpecialStats[i]));
                    }


                    count++;
                }
            }

            if (statUps.Count != 0)
            {
                bHandle = true;
                start   = statUps[0];
                start.Start();
            }
            else
            {
                bHandle = false;
            }
        }