This repository has been archived by the owner on May 18, 2023. It is now read-only.
forked from andanteyk/ElectronicObserver
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
・簡易火力計算の追加対応 ・フレッチャー砲対空カットインの文字列修正 ・夜間瑞雲攻撃対応 戦闘 ・2023春イベント 航空支援付き潜水部隊マス対応
- Loading branch information
Showing
9 changed files
with
114 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1025,7 +1025,6 @@ private void AlbumOpened(string apiname, dynamic data) | |
/// </summary> | ||
private void BattleStart(string apiname, dynamic data) | ||
{ | ||
|
||
var battle = KCDatabase.Instance.Battle.FirstBattle; | ||
var binit = battle.Initial; | ||
|
||
|
@@ -1037,7 +1036,13 @@ void UpdateParams(int id, int maxhp, int[] status, int[] slot) | |
param = new ShipParameterElement { ShipID = id }; | ||
} | ||
|
||
param.HPMin = param.HPMax = maxhp; | ||
param.HPMin = param.HPMax = maxhp switch | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yosxpeee
Author
Owner
|
||
{ | ||
// hack: -2 is used as a magic number for untargetable enemies | ||
// don't use that value to update the master data | ||
-2 => param.HPMax, | ||
_ => maxhp, | ||
}; | ||
|
||
if (status != null) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
This part isn't needed anymore, -2 gets removed in
HandleTargetability
. In the first implementation, I didn't useHandleTargetability
, so that workaround was needed.Was removed here: ElectronicObserverEN@1db89e1