Holybunny tested it: players had to run CMD files to get half the addon, the "not downloaded yet" prompt sent them to the sync helper (which then read 2,929 raid logs for ~50 minutes), and the built-in Chronicle logger started logging for someone who had switched ChronicleCompanion off. - Chronicle\, RollFor\ and DopingControl\ now ship in the repository at their pinned commits, each with a WDI_NOTICE.txt crediting its authors (DopingControl keeps its MIT LICENSE; ChronicleCompanion and RollFor state no licence: not under WhoDidIt's MIT licence, removed on request). The maintainer's decision. - the built-in Chronicle logger logs nothing until the player says yes (asked the first time they enter a raid, or Start logging); until then its auto-logging is off. If the separate ChronicleCompanion is installed but switched off, the built-in copy stays off too. - no player is told to run a CMD any more: missing parts say "download WhoDidIt again"; raid times aren't counted as missing (they come from the master feed); the Rankings bar shows the feed for players, and Sync now / helper states only for the master's characters - the sync helper and AutoSync are maintainer-only: they check the WTF folder for a B.MASTERS character and otherwise explain and stop (-Force overrides; AutoSync-Off works for anyone). The helper no longer installs addons; EmbedUpdate.ps1 is the maintainer tool for moving pins. - README (install = drag and drop), CLAUDE.md Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
820 B
Lua
34 lines
820 B
Lua
if WDI_ROLLFOR_SKIP then return end RollFor = RollFor or {}
|
|
local m = RollFor
|
|
|
|
if m.SoftResAbsentPlayersDecorator then return end
|
|
|
|
local M = {}
|
|
|
|
local filter = m.filter
|
|
local negate = m.negate
|
|
local clone = m.clone
|
|
|
|
-- I decorate given softres class with absent players logic.
|
|
-- Example: "give me all players who soft-ressed but are not in the group".
|
|
function M.new( group_roster, softres )
|
|
local f = negate( group_roster.is_player_in_my_group )
|
|
|
|
local function get( item_id )
|
|
return filter( softres.get( item_id ), f, "name" )
|
|
end
|
|
|
|
local function get_all_rollers()
|
|
return filter( softres.get_all_rollers(), f, "name" )
|
|
end
|
|
|
|
local decorator = clone( softres )
|
|
decorator.get = get
|
|
decorator.get_all_rollers = get_all_rollers
|
|
|
|
return decorator
|
|
end
|
|
|
|
m.SoftResAbsentPlayersDecorator = M
|
|
return M
|