Repository navigation
Ultras v3: a kill counts for the whole party - #36
Merged
Merged
Conversation
Every v3 Ultra finished on CheckArmyProgressBool over the boss's completion file, which passes only when every entry it sees is a 1. An account that was dead at the kill never gets the defeat item, so the accounts that had it waited for that one and kept refighting the respawned boss. Each Fight also clears the file before the party's barrier, so the first account to check after a Wipe could pass on its own entry. On Ultra Nulgath this let alt1 turn in and move on while the other three stayed to fight. The 11 boss scripts now finish on CoreUltrav3.BossDownForArmy. Once any account holds the defeat item, the boss is down for the whole party and everyone leaves together. Accounts that hold the item turn the quest in. An account without the item waits up to 5 s for its own drop, then logs who holds the kill, skips the turn-in and ends its Attempt in `kill`. DoAllUltras runs the boss again for it on the next pass. The playbook documents this where it describes completion. Fixes #35 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #36. A defeat item held before the fight counted as a kill for the whole party. That covers the Speaker's inventory item and any held item whose turn-in keeps failing. On the first tick it ended every fight with nobody fighting, and DoAllUltras reran the boss forever. - Each fight calls CoreUltrav3.TurnInHeldKill before the party's barrier. An account already holding the item turns the quest in there. If it still holds the item, the item doesn't count for the kill and the fight starts no Attempt (UltraAttempt.Begin now takes that flag in place of the previous Attempt). - BossDownForParty (renamed from BossDownForArmy) posts 1 for an item got in this fight, 0 for an account that can still gain from a kill, and 2 for one that can't: done this period, quest not taken, or an item held from before. The party leaves without a fight when all four post 2. The [BossDown] message gives the reason. - LeaveAfterKill turns the quest in for a holder and ends the Attempt, in place of the block pasted into all 11 bosses. The earlier End(Kill) in the six bosses that report Attempts is gone. - MyArmyKey and FreshEntries replace the copied key format and the entry parsing (CheckArmyProgressBool shares FreshEntries). - DoAllUltras.IsBossComplete also retries a turn-in for an item in the inventory. If the game still refuses while the account holds the item, the boss counts as done for that account, since a refight can't help. Refs #35 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Second review of #36. - BossDownForParty also says whether the boss was killed (`killed`). When the party leaves because no account can gain from a kill, the boss scripts log "Nothing to gain from <boss>: leaving without a fight." in place of "defeated", and the Attempt ends `stopped` in place of `kill`. - TurnInHeldKill warns when the quest isn't taken but wasn't turned in this period either (locked, or a prerequisite missing), so a boss skipped that way shows in the log. In that case the non-holder's [BossDown] message names that reason, not a death. Refs #35 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes #35
Why
On 2026-10-11, Ultra Nulgath died at 13:17:11 UTC. alt2 had died 9 s earlier and got no
Nulgath the Archfiend Defeated?.CheckArmyProgressBoolpasses only when every entry it sees is a1, so alt1, alt3 and alt4 waited for alt2 and refought the respawned boss, wiping 3 more times. Each Fight clears the completion file before the party's barrier. After the third retreat alt1 got through the barrier about 0.3 s ahead of the others and checked while its own entry was the only one in the file (13:23:09.279; the others pre-seeded at .59 to .63). The check passed, alt1 turned 8692 in and moved on to Ultra Drago, and the other three fought on until the bot was stopped. All 11 v3 Ultras share this check.What
CoreUltrav3.BossDownForParty(hasKill, heldAtStart, questId, partySize, syncFile, out myKill). A kill counts for the whole party: once any account gets the defeat item in this fight, the boss is down for all four and they leave together. An account without the item waits up to 5 s for its own drop. If none comes, it logs[BossDown] … got the killwith the reason (dead at the kill, so DoAllUltras reruns the boss; already done this period; or holding an item from before), then leaves without a turn-in. The file entries are1(got the item in this fight),0(can still gain from a kill) and2(nothing to gain: done this period, quest not taken, or an item held from before). When all four post2, the party leaves without a fight. The answer doesn't depend on which account posts first.CoreUltrav3.TurnInHeldKill(questId, hasKill)runs in each fight before the party's barrier. An account that already holds the item, from a kill before a Wipe or the Speaker's inventory item, turns the quest in there. If it still holds the item, the item doesn't count for the kill andUltraAttempt.Begin(heldKill, …)starts no Attempt.Beginno longer takes the previous Attempt, and the unusedKilledproperty is gone.CoreUltrav3.LeaveAfterKill(questId, myKill, endAttempt)turns the quest in for a holder and ends the Attempt. It replaces the block pasted into each boss. The earlierattempt.End(Kill)in the six bosses that report Attempts is gone.MyArmyKeyandFreshEntriesreplace the copieduser|classkey format and the entry parsing;CheckArmyProgressBoolsharesFreshEntriesand its behaviour is unchanged.DoAllUltras.IsBossCompletenow also retries a turn-in for an item in the inventory (the Speaker's). If the game still refuses while the account holds the item, the boss counts as done for that account, since a refight can't help. This breaks theRunAllrerun loop.IndividualUltrasgo through these helpers: Ezrajal, Warden, Engineer, Tyndarius, Drakath, Nulgath, Drago, Darkon, Dage, Speaker and Gramiel. None of them has its own completion path. The fight logic is untouched.I picked "tell the party the boss is down" over "holders wait for everyone". Waiting means refighting a boss nobody set up for, up to the 10-Wipe limit. Ezrajal, Warden, Engineer and Speaker have no Wipe limit, so they would refight with no end. DoAllUltras already reruns a boss for any account that hasn't turned it in.
Verification
SKUA_DIR=/tmp/retro-i-skua skua scripts check <abs path>compiles all 11Ultrasv3/IndividualUltras/*.csandUltrasv3/DoAllUltras.cs, plusChallengeBosses/Kolrv3.csandFarmGold/ArmyPrismatasv3.csas other users ofCoreUltrav3. To confirm the check compiles the branch'sCoreUltrav3.cs, I broke it on purpose and the check failed.python3 Tools/ForDevelopers/scripts_json.py check: matches all 1934 Scripts.Risk
2and never counts for the kill. That is intended: the others' kill ends the fight.🤖 Generated with Claude Code