Skip to content

Commit

Permalink
- Chain count updated to >= everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
DerpleMQ2 committed Feb 25, 2024
1 parent c2024f7 commit 18c91cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extras/version.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
return { commitId = '0b34ca7 2024-02-24' }
return { commitId = 'c2024f7 2024-02-25' }
9 changes: 5 additions & 4 deletions modules/pull.lua
Original file line number Diff line number Diff line change
Expand Up @@ -681,8 +681,9 @@ function Module:ShouldPull()
return false, string.format("Corrupted")
end

RGMercsLogger.log_debug("%d >= %d", RGMercUtils.GetXTHaterCount(), self.settings.ChainCount)
if self:IsPullMode("Chain") and RGMercUtils.GetXTHaterCount() >= self.settings.ChainCount then
RGMercsLogger.log_super_verbose("\ay::PULL:: \arAborted!\ax XTargetCount(%d) > ChainCount(%d)", RGMercUtils.GetXTHaterCount(), self.settings.ChainCount)
RGMercsLogger.log_super_verbose("\ay::PULL:: \arAborted!\ax XTargetCount(%d) >= ChainCount(%d)", RGMercUtils.GetXTHaterCount(), self.settings.ChainCount)
return false, string.format("XTargetCount(%d) > ChainCount(%d)", RGMercUtils.GetXTHaterCount(), self.settings.ChainCount)
end

Expand Down Expand Up @@ -776,7 +777,7 @@ function Module:CheckGroupForPull(classes, resourceStartPct, resourceStopPct, ca
if member.ID() == RGMercUtils.GetMainAssistId() then
if returnToCamp and RGMercUtils.GetDistance(member.X(), member.Y(), campData.AutoCampX, campData.AutoCampY) > RGMercConfig.SubModuleSettings.Movement.settings.AutoCampRadius then
RGMercUtils.PrintGroupMessage("%s (assist target) is beyond AutoCampRadius from %d, %d, %d : %d. Holding pulls.", member.CleanName(), campData.AutoCampY,
campData.AutoCampX, campData.AutoCampZ, RGMercConfig.SubModuleSettings.settings.Movement.settings.AutoCampRadius)
campData.AutoCampX, campData.AutoCampZ, RGMercConfig.SubModuleSettings.Movement.settings.AutoCampRadius)
return false, string.format("%s Beyond AutoCampRadius", member.CleanName())
end
else
Expand Down Expand Up @@ -1218,7 +1219,7 @@ function Module:GiveTime(combat_state)
while mq.TLO.Navigation.Active() and mq.TLO.Navigation.Velocity() > 0 do
RGMercsLogger.log_super_verbose("Pathing to pull id...")
if self:IsPullMode("Chain") then
if RGMercUtils.GetXTHaterCount() > self.settings.ChainCount then
if RGMercUtils.GetXTHaterCount() >= self.settings.ChainCount then
RGMercsLogger.log_info("\awNOTICE:\ax Gained aggro -- aborting chain pull!")
abortPull = true
break
Expand Down Expand Up @@ -1270,7 +1271,7 @@ function Module:GiveTime(combat_state)
local successFn = function() return RGMercUtils.GetXTHaterCount() > 0 end

if self:IsPullMode("Chain") then
successFn = function() return RGMercUtils.GetXTHaterCount() > self.settings.ChainCount end
successFn = function() return RGMercUtils.GetXTHaterCount() >= self.settings.ChainCount end
end

if self.settings.PullAbility == PullAbilityIDToName.PetPull then -- PetPull
Expand Down

0 comments on commit 18c91cf

Please sign in to comment.