Skip to content

Commit

Permalink
#noissue chore: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbuechner committed Mar 15, 2024
1 parent 3e41dba commit c4d2859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 1 addition & 12 deletions src/services.lua
Original file line number Diff line number Diff line change
Expand Up @@ -150,18 +150,7 @@ function TitanPanelReputation.GetChangedName(factionDetails)
-- earnedAmount .. " = " .. earnedValue .. " - " .. TitanPanelReputation.TABLE[factionID].earnedValue)
else
-- TitanDebug("<TitanPanelReputation> else")

-- Fix for renown/friendship rep change showing negative RTS values
if adjustedID >= 8 then
-- TitanDebug("<TitanPanelReputation> if isMajorFactionHeader then")
earnedAmount = earnedValue
-- TitanDebug("<TitanPanelReputation> earnedAmount = earnedValue - TitanPanelReputation.TABLE[factionID].earnedValue: " ..
-- earnedAmount .. " = " .. earnedValue .. " - " .. TitanPanelReputation.TABLE[factionID].earnedValue)
else
earnedAmount = earnedValue - TitanPanelReputation.TABLE[factionID].earnedValue
-- TitanDebug("<TitanPanelReputation> earnedAmount = earnedValue - TitanPanelReputation.TABLE[factionID].earnedValue: " ..
-- earnedAmount .. " = " .. earnedValue .. " - " .. TitanPanelReputation.TABLE[factionID].earnedValue)
end
earnedAmount = earnedValue
end
end

Expand Down
4 changes: 3 additions & 1 deletion src/ui/button.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ function TitanPanelReputation.BuildButtonText(factionDetails)
end
end

TitanPanelReputation.BUTTON_TEXT = TitanPanelReputation.BUTTON_TEXT .. " - " .. TTL_STRING
if TTL_STRING ~= "" then
TitanPanelReputation.BUTTON_TEXT = TitanPanelReputation.BUTTON_TEXT .. " - " .. TTL_STRING
end
end
end

Expand Down

0 comments on commit c4d2859

Please sign in to comment.