Skip to content

Commit

Permalink
minor gm tool change
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed Aug 24, 2024
1 parent 0f1c1cb commit 43cbf5d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gm/items/id_99_lockpicks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1597,8 +1597,9 @@ local function viewActivityForPlayer(user, chosenPlayer)
local currentMonth = common.getTime("month")
local activityTrackerID = 84
local found, tracker = chosenPlayer.effects:find(activityTrackerID)
local totalTicks = 0

for i = 1, 15 do --check each month
for i = 1, 16 do --check each month

local monthInString = common.Month_To_String(i)

Expand All @@ -1613,9 +1614,13 @@ local function viewActivityForPlayer(user, chosenPlayer)
end
end

totalTicks = totalTicks + activeTicks

textToList = textToList.."Month "..monthInString..": "..tostring(activeTicks*5).." minutes.\n"
end

textToList = textToList.."\n Total activity over the past IG year: "..tostring(totalTicks*5).." minutes."

local interactionTicks = chosenPlayer:getQuestProgress(activityTracker.reputationTrackerQuestID)

if found then
Expand Down

0 comments on commit 43cbf5d

Please sign in to comment.