static int getSkillCostHp(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        Games.Module.Wars.SkillWarConf obj = (Games.Module.Wars.SkillWarConf)LuaScriptMgr.GetNetObjectSelf(L, 1, "Games.Module.Wars.SkillWarConf");
        float o = obj.getSkillCostHp();

        LuaScriptMgr.Push(L, o);
        return(1);
    }
Пример #2
0
        public void Init(int skillId, int skillLevel)
        {
            this.skillId    = skillId;
            this.skillLevel = skillLevel;


            skillWarConfig = War.model.GetSkillWarConf(skillId);
            skillWarConfigList.Add(skillWarConfig);


            SetSkillType();

            costHP    = skillWarConfig.getSkillCostHp();
            costHPPer = skillWarConfig.getSkillCostHPPer();
        }