Skip to content

Commit

Permalink
fix removed function (bad merge?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinn committed Oct 12, 2024
1 parent 11396be commit cae01d5
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions RELEASE/scripts/autoscend/auto_util.ash
Original file line number Diff line number Diff line change
Expand Up @@ -3527,6 +3527,37 @@ int total_items(boolean [item] items)
return total;
}

boolean auto_badassBelt()
{
if ((item_amount($item[Batskin Belt]) > 0 || equipped_amount($item[Batskin Belt]) > 0) && (item_amount($item[Skull of the Bonerdagon]) > 0 || equipped_amount($item[Skull of the Bonerdagon]) > 0))
{
if (have_equipped($item[Skull of the Bonerdagon]))
{
equip($slot[off-hand], $item[none]);
}
if (have_equipped($item[Batskin Belt]))
{
if (equipped_item($slot[acc1]) == $item[Batskin Belt])
{
equip($slot[acc1], $item[none]);
}
else if (equipped_item($slot[acc2]) == $item[Batskin Belt])
{
equip($slot[acc2], $item[none]);
}
else if (equipped_item($slot[acc3]) == $item[Batskin Belt])
{
equip($slot[acc3], $item[none]);
}
}
return create(1, $item[Badass Belt]);
}
else
{
return false;
}
}

void auto_interruptCheck(boolean debug)
{
if(get_property("auto_interrupt").to_boolean())
Expand Down

0 comments on commit cae01d5

Please sign in to comment.