Пример #1
0
    // Token: 0x060010B0 RID: 4272 RVA: 0x001D9110 File Offset: 0x001D7310
    public uint GetPower(ArenaTargetHeroDataType HeroData)
    {
        uint result = 0u;

        if (HeroData.ID == 0)
        {
            return(result);
        }
        CalcAttrDataType calcAttrDataType = default(CalcAttrDataType);

        byte[] array = new byte[4];
        uint   num   = 0u;

        ushort[] array2 = new ushort[28];
        ushort[] array3 = new ushort[28];
        uint     hp     = 0u;

        calcAttrDataType.SkillLV1 = HeroData.Level;
        if (HeroData.Rank >= 2)
        {
            calcAttrDataType.SkillLV2 = HeroData.Level;
        }
        if (HeroData.Rank >= 4)
        {
            calcAttrDataType.SkillLV3 = HeroData.Level - 20;
        }
        if (HeroData.Rank >= 7)
        {
            calcAttrDataType.SkillLV4 = HeroData.Level - 40;
        }
        array[0] = HeroData.Level;
        if (HeroData.Rank >= 2)
        {
            array[1] = HeroData.Level;
        }
        if (HeroData.Rank >= 4)
        {
            array[2] = HeroData.Level - 20;
        }
        if (HeroData.Rank >= 7)
        {
            array[3] = HeroData.Level - 40;
        }
        calcAttrDataType.LV      = HeroData.Level;
        calcAttrDataType.Star    = HeroData.Star;
        calcAttrDataType.Enhance = HeroData.Rank;
        calcAttrDataType.Equip   = HeroData.Equip;
        num = 0u;
        Array.Clear(array2, 0, array2.Length);
        BSInvokeUtil.getInstance.setCalculateHeroEquipEffect(HeroData.ID, calcAttrDataType.Enhance, calcAttrDataType.Equip, ref num, array2);
        Array.Clear(array3, 0, array3.Length);
        BSInvokeUtil.getInstance.setCalculateAttribute(HeroData.ID, ref calcAttrDataType, ref hp, array3);
        return(BSInvokeUtil.getInstance.updateFightScore(HeroData.ID, hp, array3, array));
    }
Пример #2
0
 // Token: 0x0600084B RID: 2123 RVA: 0x000A85C8 File Offset: 0x000A67C8
 public void setCalculateAttribute(ushort HeroID, ref CalcAttrDataType CalcAttrData, ref uint HP, [Out] ushort[] pAttr)
 {
     BSInvokeUtil.DllCalculateAttribute(this.m_pBSObject, HeroID, CalcAttrData, ref HP, pAttr);
 }
Пример #3
0
 private static extern void DllCalculateAttribute(IntPtr pBSObject, ushort HeroID, CalcAttrDataType CalcAttrData, ref uint HP, ushort[] pAttr);
Пример #4
0
 // Token: 0x06000846 RID: 2118 RVA: 0x000A8568 File Offset: 0x000A6768
 public void setHeroState(ushort Side, ushort id, ref CalcAttrDataType attrData)
 {
     BSInvokeUtil.DllBSSetHero(this.m_pBSObject, Side, id, attrData);
 }
Пример #5
0
 private static extern bool DllBSSetHero(IntPtr BSObject, ushort Side, ushort id, CalcAttrDataType attrdata);