protected override void PostProcess(RawNightBattle rpData) { var rNightBattle = Battle.NightBattle; rNightBattle.FriendStatus = FriendStatus; rNightBattle.EnemyStatus = EnemyStatus; rNightBattle.IsInitializing = false; Battle.UpdateDamageRate(); }
protected override void PostProcess(RawNightBattle rpData) { Battle.CanNightBattle = false; Battle.DayBattle.Type = BattlePartType.NightSpecial; Battle.NightBattle = null; if (rpData.Formation != null) { Battle.FriendFormation = rpData.Formation.Friend; Battle.EnemyFormation = rpData.Formation.Enemy; Battle.EngagementForm = rpData.Formation.EngagementForm; } var rNightBattle = Battle.DayBattle; rNightBattle.FriendStatus = FriendCombinedStatus; rNightBattle.EnemyStatus = EnemyStatus; rNightBattle.IsInitializing = false; Battle.UpdateDamageRate(); }
protected override void ParseStatus(RawNightBattle rpData) { AllStatus = rpData.MaxHPs.Zip(rpData.NowHPs, (rpMax, rpNow) => rpMax != -1 ? new BattleStatus(rpMax, rpNow) : null).ToArray(); FriendStatus = AllStatus.Take(6).TakeWhile(r => r != null).ToArray(); EnemyStatus = AllStatus.Skip(6).TakeWhile(r => r != null).ToArray(); }
protected override void ParseEnemyInfo(RawNightBattle rpData) { }
protected override void ParseStatus(RawNightBattle rpData) { EnemyStatus = rpData.MaxHPs.Zip(rpData.NowHPs, (rpMax, rpNow) => rpMax != -1 ? new BattleStatus(rpMax, rpNow) : null).Skip(6).TakeWhile(r => r != null).ToArray(); FriendCombinedStatus = rpData.MaxHPsCombined.Zip(rpData.NowHPsCombined, (rpMax, rpNow) => new BattleStatus(rpMax, rpNow)).ToArray(); AllStatus = FriendCombinedStatus.Concat(EnemyStatus).ToArray(); }
protected override void ProcessCore(RawNightBattle rpData) { ProcessShelling(rpData.Shelling); }