Skip to content

Commit

Permalink
enforce 3 limit on mclargehuge sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
HippoKingKoL committed Jan 22, 2025
1 parent 7fd5678 commit 7675ff3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE/scripts/autoscend/autoscend_header.ash
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ boolean auto_haveMcHugeLargeSkis();
boolean auto_equipAllMcHugeLarge();
boolean auto_openMcLargeHugeSkis();
int auto_McLargeHugeForcesLeft();
int auto_McLargeHugeSniffsLeft();

########################################################################################################
//Defined in autoscend/paths/actually_ed_the_undying.ash
Expand Down
4 changes: 2 additions & 2 deletions RELEASE/scripts/autoscend/combat/auto_combat_util.ash
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ skill getSniffer(monster enemy, boolean inCombat)
{
return $skill[Monkey Point];
}
if(canUse($skill[McHugeLarge Slash], true , inCombat) && !isSniffed(enemy, $skill[McHugeLarge Slash]))
if(canUse($skill[McHugeLarge Slash], true , inCombat) && !isSniffed(enemy, $skill[McHugeLarge Slash]) && auto_McLargeHugeSniffsLeft()>0)
{
return $skill[McHugeLarge Slash];
}
Expand All @@ -270,7 +270,7 @@ skill getSniffer(monster enemy, boolean inCombat)
{
return $skill[Monkey Point];
}
if (possessEquipment($item[McHugeLarge left pole]) && !isSniffed(enemy, $skill[McHugeLarge Slash]))
if (possessEquipment($item[McHugeLarge left pole]) && !isSniffed(enemy, $skill[McHugeLarge Slash]) && auto_McLargeHugeSniffsLeft()>0)
{
return $skill[McHugeLarge Slash];
}
Expand Down
10 changes: 10 additions & 0 deletions RELEASE/scripts/autoscend/iotms/mr2025.ash
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,13 @@ int auto_McLargeHugeForcesLeft()
int used = get_property("_mcHugeLargeAvalancheUses").to_int();
return 3-used;
}

int auto_McLargeHugeSniffsLeft()
{
if (!auto_haveMcHugeLargeSkis())
{
return 0;
}
int used = get_property("_mcHugeLargeSlashUses").to_int();
return 3-used;
}

0 comments on commit 7675ff3

Please sign in to comment.