| | |
| | | public Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction> bossActions = new Dictionary<int, HA513_tagMCFamilyActionInfo.tagMCFamilyAction>();
|
| | | // 玩家伤害排行
|
| | | public List<HA513_tagMCFamilyActionInfo.tagMCFamilyAction> playerBossHurtRank = new List<HA513_tagMCFamilyActionInfo.tagMCFamilyAction>();
|
| | | //时间戳:讨伐数据
|
| | | //时间戳:讨伐数据; 用于播放每次攻击
|
| | | public Dictionary<int, TaofaAtkData> taofaAtkData = new Dictionary<int, TaofaAtkData>();
|
| | | public int lastPlayTick = 0; //按时间顺序播放,当前播放的tick,如果找不到则从第一个开始
|
| | | //玩家ID:玩家数据 (退出公会的玩家)
|
| | | public Dictionary<int, MemberData> taofaPlayerData = new Dictionary<int, MemberData>();
|
| | | public event Action BossHurtEvent;
|
| | |
| | | public int[][] atkItemList;
|
| | | public int maxAngerValue;
|
| | |
|
| | | public long[] bxCumulativeDamageList;
|
| | | long[] bxCumulativeDamageList;
|
| | | public List<long> allBXCumulativeDamageList = new List<long>();
|
| | | public int bxDailyMax; //个人每日产出上限
|
| | | public int bxDailyAwardMax; //个人每日领取奖励上限
|
| | | public long lastDmgAddValue; // 最后一档伤害增值循环用
|
| | | public int addAtkCntItemID = 17; //增加讨伐次数道具ID
|
| | | public int bossSkinID = 7100300;
|
| | |
|
| | |
| | | config = FuncConfigConfig.Get("FamilyTaofaBox");
|
| | | bxCumulativeDamageList = JsonMapper.ToObject<long[]>(config.Numerical1);
|
| | | bxDailyMax = int.Parse(config.Numerical2);
|
| | | bxDailyAwardMax = int.Parse(config.Numerical3);
|
| | | lastDmgAddValue = bxCumulativeDamageList[bxCumulativeDamageList.Length - 1] - bxCumulativeDamageList[bxCumulativeDamageList.Length - 2];
|
| | | //最后一档循环
|
| | | for (int i = 0; i < bxDailyMax; i++)
|
| | | {
|
| | | if (i < bxCumulativeDamageList.Length)
|
| | | {
|
| | | allBXCumulativeDamageList.Add(bxCumulativeDamageList[i]);
|
| | | }
|
| | | else
|
| | | {
|
| | | allBXCumulativeDamageList.Add(allBXCumulativeDamageList[i - 1] + lastDmgAddValue);
|
| | | }
|
| | | }
|
| | | |
| | | }
|
| | |
|
| | | public override void Init()
|
| | |
| | | continue;
|
| | | }
|
| | | var arr = JsonMapper.ToObject<long[][]>(jsonData["atkList"].ToJson());
|
| | | taofaAtkData[(int)arr[0][0]] = new TaofaAtkData()
|
| | | for (int i = 0; i < arr.Length; i++)
|
| | | {
|
| | | playerID = (int)item.Value1,
|
| | | atkType = (int)arr[0][3],
|
| | | hurt = arr[0][2],
|
| | |
|
| | | };
|
| | | taofaAtkData[(int)arr[i][0]] = new TaofaAtkData()
|
| | | {
|
| | | playerID = (int)item.Value1,
|
| | | atkType = (int)arr[i][3],
|
| | | hurt = arr[i][2],
|
| | | };
|
| | | }
|
| | |
|
| | | if (jsonData.ContainsKey("info"))
|
| | | {
|