Closed DMeluca closed 2 weeks ago
IMO just pass all of the extradata there instead of enforcing a specific field name.
An example of what it would look like implemented can be seen on the dev
module on apexlegends here
https://liquipedia.net/apexlegends/Module:NotabilityChecker/dev
The call to the wiki specific dropoff function in the
NotabilityChecker
currently only supports placement and tier/tiertype as the deciding factors for the returned score.However, Apex uses the region in which the tournament was played as a deciding factor to introduce another factor that affects the notability score
The local prizepool has been updated to include this information in lpdb.placement.extradata. Could an additional argument of "placement.extradata.notabilitymod" be passed to allow wikis more customization in the handling of wiki specific drop off function? The below line is the first call where it would need implemented, but this argument would then need passed again to reach the code block that calls the "Config.placementDropOffFunction" function
local weight = NotabilityChecker.calculateTournament( placement.liquipediatier, placement.liquipediatiertype, placement.placement, placement.date, placement.extradata.notabilitymod, placement.mode )
https://liquipedia.net/commons/index.php?title=Module:NotabilityChecker&action=edit#mw-ce-l141