Add searching phase to fleet view#615
Merged
myangelkamikaze merged 2 commits intomainfrom Nov 29, 2025
Merged
Conversation
|
Jebzou
approved these changes
Nov 29, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



The primary goal here is to display the
BattleSearchValues.NotFound(kancolle kai)DetectionType.FailureNoPlane(EO) rate, which is useful in combined fleet leveling because it skips part of the searching animation, also known as "search cutting" (索敵カット).Example:
https://twitter.com/kamekeshi/status/1994619727457783928
There's no good documentation for this anywhere. Wikiwiki doesn't have any numbers and the English wiki is written in a confusing way, is missing some details, and I'm not sure if their formula is correct either. Luckily, they included the source this time, which is kancolle kai source code, so I just copied everything from there.
Here is the main logic for getting the search result.
The main formula to note here is
num1.randDoubleandnum2are used for calculating how many recons got shot down. We're not handling that, so those can be ignored.This part is for calculating the

BasePowandAttackfrom the main formula. It basically just gets the LoS from all boats and aircraft count from all recons. Added comments for the important parts but feel free to ask if I missed anything.The aircraft proficiency code looks wrong.

slotExpshould be the internal aircraft level exp (0~120). The if statements look like they were meant to compare toslotExpbut instead compare toalvPluswhich doesn't make any sense since that one can at most besqrt(120*0.2)which is4.89897948557so you never hit any of the ifs? I kept the code as is since this part isn't really relevant. We count probably figure it out via testing but that's a todo for the future.Note: fail rate is capped at 100% and success rate doesn't have a cap, this is intentional so that you know how far over success cap you are when you're trying to search cut