Skip to content

Commit

Permalink
戦闘:僚艦夜戦突撃に対応した
Browse files Browse the repository at this point in the history
* グループ:艦名列でのソートで「母港ソート順」を選択できるようにした
  • Loading branch information
andanteyk committed Apr 25, 2020
1 parent f0ee370 commit 73dd32b
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Browser/Program.cs
Expand Up @@ -65,7 +65,7 @@ private static System.Reflection.Assembly CurrentDomain_AssemblyResolve(object s

if (MessageBox.Show(
@"ブラウザの起動に失敗しました。
インストールに必要な操作が行われていないことが原因の可能性があります
zip のセキュリティ許可を行うなど、インストール手順を再確認してみてください
インストールガイドを開きますか?(外部ブラウザが開きます)",
"ブラウザロード失敗", MessageBoxButtons.YesNo, MessageBoxIcon.Error)
== DialogResult.Yes)
Expand Down
5 changes: 3 additions & 2 deletions ElectronicObserver/Data/Battle/Phase/PhaseNightBattle.cs
Expand Up @@ -111,10 +111,11 @@ public override void EmulateBattle(int[] hps, int[] damages)
break;

case 103:
// colorado touch
case 104:
// colorado touch / kongo-class night attack
for (int i = 0; i < atk.Defenders.Count; i++)
{
var comboatk = new BattleIndex(atk.Attacker.Side, i); // #1, #2, #3
var comboatk = new BattleIndex(atk.Attacker.Side, i); // #1, #2 (, #3)
BattleDetails.Add(new BattleNightDetail(Battle, comboatk, atk.Defenders[i].Defender, new[] { atk.Defenders[i].RawDamage }, new[] { atk.Defenders[i].CriticalFlag }, atk.AttackType, atk.EquipmentIDs, atk.NightAirAttackFlag, hps[atk.Defenders[i].Defender]));
AddDamage(hps, atk.Defenders[i].Defender, atk.Defenders[i].Damage);
damages[comboatk] += atk.Defenders[i].Damage;
Expand Down
5 changes: 3 additions & 2 deletions ElectronicObserver/Data/Battle/Phase/PhaseShelling.cs
Expand Up @@ -146,10 +146,11 @@ public override void EmulateBattle(int[] hps, int[] damages)
break;

case 103:
// colorado touch
case 104:
// colorado touch / kongo-class night attack
for (int i = 0; i < atk.Defenders.Count; i++)
{
var comboatk = new BattleIndex(atk.Attacker.Side, i); // #1, #2, #3
var comboatk = new BattleIndex(atk.Attacker.Side, i); // #1, #2 (, #3)
BattleDetails.Add(new BattleDayDetail(Battle, comboatk, atk.Defenders[i].Defender, new[] { atk.Defenders[i].RawDamage }, new[] { atk.Defenders[i].CriticalFlag }, atk.AttackType, atk.EquipmentIDs, hps[atk.Defenders[i].Defender]));
AddDamage(hps, atk.Defenders[i].Defender, atk.Defenders[i].Damage);
damages[comboatk] += atk.Defenders[i].Damage;
Expand Down
4 changes: 4 additions & 0 deletions ElectronicObserver/Data/Constants.cs
Expand Up @@ -782,6 +782,8 @@ public static string GetDayAttackKind(DayAttackKind id)
return "長門、いい? いくわよ! 主砲一斉射ッ!";
case DayAttackKind.SpecialColorado:
return "Colorado Touch";
case DayAttackKind.SpecialKongo:
return "僚艦夜戦突撃";
case DayAttackKind.ZuiunMultiAngle:
return "瑞雲立体攻撃";
case DayAttackKind.SeaAirMultiAngle:
Expand Down Expand Up @@ -845,6 +847,8 @@ public static string GetNightAttackKind(NightAttackKind id)
return "長門、いい? いくわよ! 主砲一斉射ッ!";
case NightAttackKind.SpecialColorado:
return "Colorado Touch";
case NightAttackKind.SpecialKongo:
return "僚艦夜戦突撃";
case NightAttackKind.Shelling:
return "砲撃";
case NightAttackKind.AirAttack:
Expand Down
5 changes: 5 additions & 0 deletions ElectronicObserver/Utility/Data/Calculator.cs
Expand Up @@ -2397,6 +2397,8 @@ public enum DayAttackKind
/// <summary> Colorado Touch </summary>
SpecialColorado = 103,

/// <summary> 僚艦夜戦突撃 </summary>
SpecialKongo = 104,

/// <summary> 瑞雲立体攻撃 </summary>
ZuiunMultiAngle = 200,
Expand Down Expand Up @@ -2488,6 +2490,9 @@ public enum NightAttackKind
/// <summary> Colorado Touch </summary>
SpecialColorado = 103,

/// <summary> 僚艦夜戦突撃 </summary>
SpecialKongo = 104,


/// <summary> 砲撃 </summary>
Shelling = 1000,
Expand Down
35 changes: 18 additions & 17 deletions ElectronicObserver/Window/Dialog/DialogConfiguration.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions ElectronicObserver/Window/FormShipGroup.cs
Expand Up @@ -819,6 +819,10 @@ private void ShipView_SortCompare(object sender, DataGridViewSortCompareEventArg
if (e.SortResult == 0)
e.SortResult = ship1.Name.CompareTo(ship2.Name);
break;

case 2: // ソートキー順
e.SortResult = ship1.SortID - ship2.SortID;
break;
}

}
Expand Down

0 comments on commit 73dd32b

Please sign in to comment.