ArmyFarmVoidAurasv2 & UltraDarkonv2 - #134
Conversation
fix UltraDarkonv2 respawn after death
Reviewer's GuideAdds a new coordinated army farming script for Void Auras with shared private room and helper-mode behavior, and updates UltraDarkon to set a spawn point in the boss room so players respawn correctly after death. Sequence diagram for helper-mode army stage combat in ArmyFarmVoidAurasv2sequenceDiagram
participant Script as ArmyFarmVoidAurasv2
participant Ultra as CoreUltrav3
participant ArmyGen as ArmyGeneral
participant Core as CoreBots
participant Player as Bot_Player
Script->>Script: RetrieveVoidAuras(quant, useArmySync)
Script->>Script: GetOwnStage(essenceQuant)
Script->>ArmyGen: PublishAndGetArmyStage(Ultra, Bot, ownStage, stageSyncFile, armySize)
ArmyGen-->>Script: stageIndex
loop perStage
Script->>Ultra: CheckArmyProgressBool(() => Core.CheckInventory(stage.essence, essenceQuant), syncFile)
alt stageCompleteAndHelper
Script->>Script: RunStageCombat(stage, isHelper:true, useArmySync, ref stageSkillsEnabled)
Script->>Script: EnsureStageSkills(ref stageSkillsEnabled)
Script->>Script: JoinStageMap(stage.map)
Script->>Script: PrepareHelperPosition(stage)
Script->>Player: SetSpawnPoint()
Script->>Script: HelperAttack(stage)
else normalFarmer
Script->>Script: RunStageCombat(stage, isHelper:false, useArmySync, ref stageSkillsEnabled)
Script->>Script: FarmStage(stage, 100, useArmySync)
end
Script->>Script: ResetCombatOptions()
end
Sequence diagram for UltraDarkonv2 boss fight spawn handlingsequenceDiagram
participant Player as Player
participant Script as UltraDarkonv2_Fight
participant Ultra as CoreUltrav3
participant Core as CoreBots
Player->>Script: Fight()
Script->>Ultra: WaitForArmy(armySize-1, Ultra_Darkon.sync)
Script->>Core: ChooseBestCell(boss)
Script->>Player: SetSpawnPoint()
Script->>Core: EnableSkills()
rect rgb(230,230,230)
note over Player,Script: During fight
Player--xScript: Player dies
Script-->>Player: Respawn at SetSpawnPoint (boss room)
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've found 1 issue, and left some high level feedback:
- The
RunStageCombatmethod takes auseArmySyncparameter that is never used; consider removing it from the signature and call sites to keep the API minimal and avoid confusion about its purpose. - The essence quantity target
100is hard-coded in multiple locations (e.g.,essenceQuant = 100inRetrieveVoidAurasand theFarmStage(stage, 100, ...)call); consider extracting this into a single named constant to reduce duplication and make future tuning easier.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- The `RunStageCombat` method takes a `useArmySync` parameter that is never used; consider removing it from the signature and call sites to keep the API minimal and avoid confusion about its purpose.
- The essence quantity target `100` is hard-coded in multiple locations (e.g., `essenceQuant = 100` in `RetrieveVoidAuras` and the `FarmStage(stage, 100, ...)` call); consider extracting this into a single named constant to reduce duplication and make future tuning easier.
## Individual Comments
### Comment 1
<location path="Army/ArmyFarmVoidAurasv2.cs" line_range="246-248" />
<code_context>
+ FarmStage(stage, 100, useArmySync);
+ }
+
+ private void EnsureStageSkills(ref bool stageSkillsEnabled)
+ {
+ if (stageSkillsEnabled || !Bot.Config!.Get<bool>("DoEnh"))
+ return;
+
</code_context>
<issue_to_address>
**issue (bug_risk):** Skill enabling is incorrectly gated by the `DoEnh` option, which can disable combat skills when enhancements are turned off.
Because this method returns when `DoEnh` is false, `Engine.EnableSkills()` is never called if the user disables enhancements, so stage combat skills won’t run and the bot may idle. Please decouple enhancement application from skill enabling (e.g., remove the `DoEnh` check here or introduce a separate config option for skill usage) so turning off enhancements doesn’t also disable combat skills.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| private void EnsureStageSkills(ref bool stageSkillsEnabled) | ||
| { | ||
| if (stageSkillsEnabled || !Bot.Config!.Get<bool>("DoEnh")) |
There was a problem hiding this comment.
issue (bug_risk): Skill enabling is incorrectly gated by the DoEnh option, which can disable combat skills when enhancements are turned off.
Because this method returns when DoEnh is false, Engine.EnableSkills() is never called if the user disables enhancements, so stage combat skills won’t run and the bot may idle. Please decouple enhancement application from skill enabling (e.g., remove the DoEnh check here or introduce a separate config option for skill usage) so turning off enhancements doesn’t also disable combat skills.
|
go to the discord, in the #skua-script-reports channel, make a post and @tato if you want this merged. make sure u explain why and such |
ArmyFarmVoidAurasv2
Added
UltraDarkonv2
Tested on Skua 1.4.4.0
Tested on VibeSkua 1.8.3
Summary by Sourcery
Add an army-coordinated Void Aura farming script with shared private rooms and helper behavior, and improve Ultra Darkon to respawn back in the boss room after death.
New Features:
Bug Fixes: