feat(TeamCard): add mobilelegends Legacy wrapper Custom#7624
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a Mobile Legends–specific Module:TeamCard/Legacy/Custom wrapper to support the Legacy TeamCard → TeamParticipants migration by normalizing position args and applying per-slot role defaults for the main roster.
Changes:
- Introduces
lua/wikis/mobilelegends/TeamCard/Legacy/Custom.luawrapper delegating toModule:TeamCard/Legacy. - Adds
preprocessCardhook to (a) aliasposN→pNposand (b) defaultp1pos–p5posviaInGameRoles.sortOrder. - Normalizes
t2posN/t3posNintot2pNpos/t3pNposfor tab players.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Can we do the same thing with MLBB as we did with HOK? |
as in convert ENC pages to TP before roll out? |
ENC "qualifier" (tournaments giving ENC points), yeah (without using import=true on those, in order to preserve the order of playerS) |
Yes that was the plan, I'll ask for some help for this |
Summary
Module:TeamCard/Legacy/Customfor mobilelegends, part of the TC → TeamParticipants migration.preprocessCardapplies slot-index role defaulting for the main roster (p1–p5: exp/jungler/mid/gold/roamer fromInGameRolessortOrder) so cards without explicitpNposkeep their auto role icons.tNposMstaff-tab position form totNpMposfor the t2/t3 tabs.How did you test this change?
dev