| | |
| | | public long m_BoxHurt; // 今日伤害
|
| | | public long m_BoxHurtHis; // 历史伤害
|
| | |
|
| | | //攻击数据
|
| | | public HA504_tagSCFamilyTaofaAtkRet atkResult;
|
| | | public event Action AtkResultEvent;
|
| | |
|
| | | //配置
|
| | | public int initSuperHitRate;
|
| | | public int[] bzAddAttrs;
|
| | |
| | | public int[][] atkItemList;
|
| | | public int maxAngerValue;
|
| | |
|
| | | public int[] bxCumulativeDamageList;
|
| | | public long[] bxCumulativeDamageList;
|
| | | public int bxDailyMax; //个人每日产出上限
|
| | | public int bxDailyAwardMax; //个人每日领取奖励上限
|
| | | public int addAtkCntItemID = 17; //增加讨伐次数道具ID
|
| | |
| | | // 数值2:每日个人贡献宝箱数上限,最后一档可循环,上限控制
|
| | | // 数值3:每日个人领取宝箱奖励个数上限
|
| | | config = FuncConfigConfig.Get("FamilyTaofaBox");
|
| | | bxCumulativeDamageList = JsonMapper.ToObject<int[]>(config.Numerical1);
|
| | | bxCumulativeDamageList = JsonMapper.ToObject<long[]>(config.Numerical1);
|
| | | bxDailyMax = int.Parse(config.Numerical2);
|
| | | bxDailyAwardMax = int.Parse(config.Numerical3);
|
| | | }
|
| | |
| | | BossHurtEvent?.Invoke();
|
| | | }
|
| | |
|
| | | public void UpdateAtkResult(HA504_tagSCFamilyTaofaAtkRet netPack)
|
| | | {
|
| | | atkResult = netPack;
|
| | | AtkResultEvent?.Invoke();
|
| | | }
|
| | |
|
| | |
|
| | | public int GetHasAtkCnt()
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | //判断是否新的公会数据
|
| | | if (vNetData.FamilyActionList.Length == 1 && vNetData.FamilyActionList[0].Value1 == 1)
|
| | | for (int i = 0; i < vNetData.Count; i++)
|
| | | {
|
| | | var playerID = (int)vNetData.FamilyActionList[i].Value1;
|
| | | if (playerID != 1)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | if (bossActions.ContainsKey(1) && bossActions[1].Time != vNetData.FamilyActionList[0].Time)
|
| | | {
|
| | | bossActions.Clear();
|
| | |
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | for (int i = 0; i < vNetData.Count; i++)
|
| | | {
|
| | | bossActions[(int)vNetData.FamilyActionList[i].Value1] = vNetData.FamilyActionList[i];
|