Skip to content

Commit

Permalink
build smut orc bridge as soon as able
Browse files Browse the repository at this point in the history
  • Loading branch information
Alium58 committed Nov 11, 2023
1 parent ec7db19 commit c5c13a0
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 17 deletions.
1 change: 1 addition & 0 deletions RELEASE/scripts/autoscend.ash
Original file line number Diff line number Diff line change
Expand Up @@ -1771,6 +1771,7 @@ boolean doTasks()

basicAdjustML();

finishBuildingSmutOrcBridge();
councilMaintenance();
auto_buySkills(); // formerly picky_buyskills() now moved here
awol_buySkills();
Expand Down
1 change: 1 addition & 0 deletions RELEASE/scripts/autoscend/autoscend_header.ash
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,7 @@ boolean L9_leafletQuest();
void L9_chasmMaximizeForNoncombat();
int fastenerCount();
int lumberCount();
boolean finishBuildingSmutOrcBridge();
void prepareForSmutOrcs();
boolean L9_chasmBuild();
boolean L9_aBooPeak();
Expand Down
50 changes: 33 additions & 17 deletions RELEASE/scripts/autoscend/quests/level_09.ash
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,34 @@ int lumberCount()
return base;
}

boolean finishBuildingSmutOrcBridge()
{
if (internalQuestStatus("questL09Topping") != 0 || get_property("chasmBridgeProgress").to_int() >= 30)
{
return false;
}

// use any keepsake boxes we have
item keepsakeBox = $item[Smut Orc Keepsake Box];
if(item_amount(keepsakeBox) > 0 && auto_is_valid(keepsakeBox))
{
use(item_amount(keepsakeBox), keepsakeBox);
}

// make sure our progress count is correct before we do anything.
visit_url("place.php?whichplace=orc_chasm&action=bridge"+(to_int(get_property("chasmBridgeProgress"))));

// finish chasm if we can
if(get_property("chasmBridgeProgress").to_int() >= 30)
{
visit_url("place.php?whichplace=highlands&action=highlands_dude");
return true;
}

return false;
}


void prepareForSmutOrcs()
{

Expand Down Expand Up @@ -287,6 +315,11 @@ boolean L9_chasmBuild()
return false;
}

if(finishBuildingSmutOrcBridge())
{
return true;
}

if (shenShouldDelayZone($location[The Smut Orc Logging Camp]))
{
auto_log_debug("Delaying Logging Camp in case of Shen.");
Expand All @@ -308,23 +341,6 @@ boolean L9_chasmBuild()

auto_log_info("Chasm time", "blue");

// use any keepsake boxes we have
item keepsakeBox = $item[Smut Orc Keepsake Box];
if(item_amount(keepsakeBox) > 0 && auto_is_valid(keepsakeBox))
{
use(item_amount(keepsakeBox), keepsakeBox);
}

// make sure our progress count is correct before we do anything.
visit_url("place.php?whichplace=orc_chasm&action=bridge"+(to_int(get_property("chasmBridgeProgress"))));

// finish chasm if we can
if(get_property("chasmBridgeProgress").to_int() >= 30)
{
visit_url("place.php?whichplace=highlands&action=highlands_dude");
return true;
}

// prepareForSmutOrcs() called in pre-adv
autoAdv(1, $location[The Smut Orc Logging Camp]);

Expand Down

0 comments on commit c5c13a0

Please sign in to comment.