From 414049da8138d28fced914149097431de68844d3 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Wed, 11 Oct 2023 15:09:48 -0500 Subject: [PATCH 1/4] summon and backup grops into delay --- RELEASE/scripts/autoscend/auto_util.ash | 6 ++++++ RELEASE/scripts/autoscend/iotms/mr2021.ash | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/RELEASE/scripts/autoscend/auto_util.ash b/RELEASE/scripts/autoscend/auto_util.ash index bdd0e9e65..deff23186 100644 --- a/RELEASE/scripts/autoscend/auto_util.ash +++ b/RELEASE/scripts/autoscend/auto_util.ash @@ -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(get_property("lastCopyableMonster") != $monster[Green Ops Soldier].to_string() && get_property("hippiesDefeated") > 399 && !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) { diff --git a/RELEASE/scripts/autoscend/iotms/mr2021.ash b/RELEASE/scripts/autoscend/iotms/mr2021.ash index 5ef7432a2..18bcc9fb6 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2021.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2021.ash @@ -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") > 399 && !in_koe()) + return true; + break; default: break; } From 44077a79cb3b1c885ba325fe6775c87783c4e723 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Fri, 13 Oct 2023 20:40:09 -0500 Subject: [PATCH 2/4] only summon grops 1/day --- RELEASE/scripts/autoscend/auto_util.ash | 11 ++++++++++- RELEASE/scripts/autoscend/autoscend_header.ash | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/RELEASE/scripts/autoscend/auto_util.ash b/RELEASE/scripts/autoscend/auto_util.ash index deff23186..eafe7811a 100644 --- a/RELEASE/scripts/autoscend/auto_util.ash +++ b/RELEASE/scripts/autoscend/auto_util.ash @@ -1992,7 +1992,7 @@ boolean LX_summonMonster() } // 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(get_property("lastCopyableMonster") != $monster[Green Ops Soldier].to_string() && get_property("hippiesDefeated") > 399 && !in_koe()) + if(!summonedMonsterToday($monster[Green Ops Soldier]) && get_property("hippiesDefeated") > 399 && !in_koe()) { if(summonMonster($monster[Green Ops Soldier])) return true; } @@ -2101,6 +2101,15 @@ 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(); + //"(" + my_daycount() + ":" + safeString(used) + ":" + my_turncount() + ")"; + return contains_text(copiedMonsters, searchString); + //`({my_daycount()}:{mon.to_string()}`; +} + boolean handleCopiedMonster(item itm) { return handleCopiedMonster(itm, ""); diff --git a/RELEASE/scripts/autoscend/autoscend_header.ash b/RELEASE/scripts/autoscend/autoscend_header.ash index c7bee2ead..401edc85e 100644 --- a/RELEASE/scripts/autoscend/autoscend_header.ash +++ b/RELEASE/scripts/autoscend/autoscend_header.ash @@ -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(); From ea20d53b004654f22ac174157709120334e0bcb6 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Sat, 14 Oct 2023 15:34:14 -0500 Subject: [PATCH 3/4] don't summon/backup grops if battlefield is cleared --- RELEASE/scripts/autoscend/auto_util.ash | 4 +--- RELEASE/scripts/autoscend/iotms/mr2021.ash | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/RELEASE/scripts/autoscend/auto_util.ash b/RELEASE/scripts/autoscend/auto_util.ash index eafe7811a..6b6568a9d 100644 --- a/RELEASE/scripts/autoscend/auto_util.ash +++ b/RELEASE/scripts/autoscend/auto_util.ash @@ -1992,7 +1992,7 @@ boolean LX_summonMonster() } // 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") > 399 && !in_koe()) + if(!summonedMonsterToday($monster[Green Ops Soldier]) && get_property("hippiesDefeated") > 399 && get_property("hippiesDefeated") < 1000 && !in_koe()) { if(summonMonster($monster[Green Ops Soldier])) return true; } @@ -2105,9 +2105,7 @@ boolean summonedMonsterToday(monster mon) { string copiedMonsters = get_property("auto_copies"); string searchString = "(" + my_daycount() + ":" + mon.to_string(); - //"(" + my_daycount() + ":" + safeString(used) + ":" + my_turncount() + ")"; return contains_text(copiedMonsters, searchString); - //`({my_daycount()}:{mon.to_string()}`; } boolean handleCopiedMonster(item itm) diff --git a/RELEASE/scripts/autoscend/iotms/mr2021.ash b/RELEASE/scripts/autoscend/iotms/mr2021.ash index 18bcc9fb6..bef43eaa4 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2021.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2021.ash @@ -355,7 +355,7 @@ boolean auto_backupTarget() return true; break; case $monster[Green Ops Soldier]: - if(get_property("hippiesDefeated") > 399 && !in_koe()) + if(get_property("hippiesDefeated") > 399 && get_property("hippiesDefeated") < 1000 && !in_koe()) return true; break; default: break; From ab217a6b85b83103294fed38037fd3f2b1a89b80 Mon Sep 17 00:00:00 2001 From: Alium58 Date: Sat, 14 Oct 2023 20:47:58 -0500 Subject: [PATCH 4/4] dumb to_int()s --- RELEASE/scripts/autoscend/auto_util.ash | 2 +- RELEASE/scripts/autoscend/iotms/mr2021.ash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE/scripts/autoscend/auto_util.ash b/RELEASE/scripts/autoscend/auto_util.ash index 6b6568a9d..1a535b7e6 100644 --- a/RELEASE/scripts/autoscend/auto_util.ash +++ b/RELEASE/scripts/autoscend/auto_util.ash @@ -1992,7 +1992,7 @@ boolean LX_summonMonster() } // 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") > 399 && get_property("hippiesDefeated") < 1000 && !in_koe()) + 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; } diff --git a/RELEASE/scripts/autoscend/iotms/mr2021.ash b/RELEASE/scripts/autoscend/iotms/mr2021.ash index bef43eaa4..a278a9e21 100644 --- a/RELEASE/scripts/autoscend/iotms/mr2021.ash +++ b/RELEASE/scripts/autoscend/iotms/mr2021.ash @@ -355,7 +355,7 @@ boolean auto_backupTarget() return true; break; case $monster[Green Ops Soldier]: - if(get_property("hippiesDefeated") > 399 && get_property("hippiesDefeated") < 1000 && !in_koe()) + if(get_property("hippiesDefeated").to_int() > 399 && get_property("hippiesDefeated").to_int() < 1000 && !in_koe()) return true; break; default: break;