Skip to content

Commit

Permalink
force NCs when we have NC forcers to use
Browse files Browse the repository at this point in the history
  • Loading branch information
Malibu-Stacey committed Oct 20, 2024
1 parent 6be0807 commit 0cbcfe1
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion RELEASE/scripts/autoscend/auto_routing.ash
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,16 @@ boolean auto_earlyRoutingHandling()
// this function should go very high in task orders, potentially the first thing that spends adventures.
// ideally nothing called before this should spend an adventure, only update state or use turn free resources.

// force forcing non-combats.
if (auto_canForceNextNoncombat()) {
auto_log_debug("Forcing a non-combat somewhere. Strap yourselves in, kids.");
if (L6_friarsGetParts() || L10_basement() || L10_topFloor() || L10_holeInTheSkyUnlock())
{
// quests where we want to force non-combats
return true;
}
}

// CMC routing for Breathitins
if (auto_haveColdMedCabinet() && auto_CMCconsultsLeft() > 0)
{
Expand Down Expand Up @@ -262,4 +272,15 @@ boolean auto_softBlockHandler()
return true;
}
return false;
}
}

item[int] auto_workshedStrategy()
{
// return the worksheds, in order, that we want to use today.
item[int] strat;
if (get_property("_workshedItemUsed").to_boolean()) {
// we already changed workshed today. Just return whatever is in our workshed currently.
strat[0] = get_workshed();
}
return strat;
}

0 comments on commit 0cbcfe1

Please sign in to comment.