Skip to content

refactor(Infobox): Update Naraka Custom Infobox Person - #8344

Open
WRYTian wants to merge 4 commits into
Liquipedia:mainfrom
WRYTian:patch-4
Open

WRYTian wants to merge 4 commits into
Liquipedia:mainfrom
WRYTian:patch-4

Conversation

@WRYTian

@WRYTian WRYTian commented Nov 2, 2026

Copy link
Copy Markdown

This is my latest update. I am currently the sole core editor of Naraka (as I am also an associated member of the Naraka Pro League). This update has been made after careful reconsideration. I have removed any redundant variable names and HTML code. All retained and deleted features are deemed necessary by me. The previous "coming game" feature was not applicable and contained bugs, while the "common heroes" feature was also not practical. As for why I deleted some comments, it's because I mainly reconstructed the code from other game events, primarily from Warcraft. I used to be an editor there and I am quite familiar with it. The code was reconstructed based on that division, rather than being modified from the Naraka codebase. I sincerely hope to be applied or improved

This is my latest update. I am currently the sole core editor of Naraka (as I am also an associated member of the Naraka Pro League). This update has been made after careful reconsideration. I have removed any redundant variable names and HTML code. All retained and deleted features are deemed necessary by me. The previous "coming game" feature was not applicable and contained bugs, while the "common heroes" feature was also not practical.
As for why I deleted some comments, it's because I mainly reconstructed the code from other game events, primarily from Warcraft. I used to be an editor there and I am quite familiar with it. The code was reconstructed based on that division, rather than being modified from the Naraka codebase.
I sincerely hope to be applied or improved
@WRYTian
WRYTian requested review from a team as code owners November 2, 2026 10:05
@ElectricalBoy ElectricalBoy added c: infobox g: naraka NARAKA: BLADEPOINT labels Nov 2, 2026
@steve020607 steve020607 changed the title Update Custom.lua from wrytian ver.3 Refactor(Infobox): Update Naraka Custom Infobox Person Nov 2, 2026
@steve020607 steve020607 changed the title Refactor(Infobox): Update Naraka Custom Infobox Person refactor(Infobox): Update Naraka Custom Infobox Person Nov 2, 2026

@steve020607 steve020607 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on my POV, it's fine, but let's see what other reviewer that more good at lua says


---@param lpdbData table
---@param args table
---@param personType string

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-add

lpdbData.extradata['signatureHero' .. heroIndex] = CharacterNames[hero:lower()]
end

function CustomPlayer:adjustLPDB(lpdbData, args)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
function CustomPlayer:adjustLPDB(lpdbData, args)
function CustomPlayer:adjustLPDB(lpdbData, args, personType)

even if you do not use the param it gets passed from the caller

local CURRENT_YEAR = DateExt.getYearOf()

-- T1 and T2 tournament champions
local CHAMPION_CONDITIONS = {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it called CHAMPION_CONDITIONS?

Comment on lines +60 to +63
-- Uppercase first letter in status
if args.status then
args.status = mw.getContentLanguage():ucfirst(args.status)
end

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed?

end

local currentYearEarningsDisplay =
'$' .. mw.getContentLanguage():formatNum(Math.round(currentYearEarnings))

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo use Currency.formatMoney

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: infobox g: naraka NARAKA: BLADEPOINT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants