Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summon and backup grops into delay #1372

Merged
merged 4 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions RELEASE/scripts/autoscend/auto_util.ash
Original file line number Diff line number Diff line change
Expand Up @@ -1991,6 +1991,12 @@ boolean LX_summonMonster()
if(summonMonster($monster[Astronomer])) return true;
}

// summon grops to start copy chain. Goal is to copy into delay zones and get war progress at same time. Bonus if we get smoke bombs
if(!summonedMonsterToday($monster[Green Ops Soldier]) && get_property("hippiesDefeated").to_int() > 399 && get_property("hippiesDefeated").to_int() < 1000 && !in_koe())
{
if(summonMonster($monster[Green Ops Soldier])) return true;
}

// summon additional monsters in heavy rains with rain man when available
if(have_skill($skill[Rain Man]) && my_rain() >= 50)
{
Expand Down Expand Up @@ -2095,6 +2101,13 @@ boolean summonMonster(monster mon, boolean speculative)
return false;
}

boolean summonedMonsterToday(monster mon)
{
string copiedMonsters = get_property("auto_copies");
string searchString = "(" + my_daycount() + ":" + mon.to_string();
return contains_text(copiedMonsters, searchString);
}

boolean handleCopiedMonster(item itm)
{
return handleCopiedMonster(itm, "");
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 @@ -1686,6 +1686,7 @@ boolean LX_summonMonster();
boolean canSummonMonster(monster mon);
boolean summonMonster(monster mon);
boolean summonMonster(monster mon, boolean speculative);
boolean summonedMonsterToday(monster mon);
boolean handleCopiedMonster(item itm);
boolean handleCopiedMonster(item itm, string option);
int maxSealSummons();
Expand Down
4 changes: 4 additions & 0 deletions RELEASE/scripts/autoscend/iotms/mr2021.ash
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ boolean auto_backupTarget()
if(!acquiredFantasyRealmToken() && auto_backupUsesLeft() >= (5 - fantasyBanditsFought()))
return true;
break;
case $monster[Green Ops Soldier]:
if(get_property("hippiesDefeated").to_int() > 399 && get_property("hippiesDefeated").to_int() < 1000 && !in_koe())
return true;
break;
default: break;
}

Expand Down
Loading