mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-04-28 08:20:44 +00:00
refactor(loldle): source all champion data from loldle.net
loldle.net's JS bundle ships the complete set of classic-mode axes in plaintext, so ddragon merging is no longer needed. Scraper now produces the final schema directly. Schema changes: drop title, skinCount, image, and genre (ddragon-only). Replace genre (class tags like Fighter/Mage) with species (Human/Darkin/ Vastayan) — the axis loldle.net actually uses. Promote region to a multi-value field so multi-region champions compare correctly. Handlers no longer show "Name — Title" on win/giveup.
This commit is contained in:
@@ -4,7 +4,7 @@ import { renderBoard, renderGuess } from "../../../src/modules/loldle/render.js"
|
||||
/** Mirror the shape compareChampions returns — only the fields render.js reads. */
|
||||
const sampleResults = [
|
||||
{ key: "gender", label: "Gender", result: "correct", guessValue: "Male" },
|
||||
{ key: "genre", label: "Genre", result: "correct", guessValue: "Mage, Support" },
|
||||
{ key: "species", label: "Species", result: "correct", guessValue: "Human, Darkin" },
|
||||
{ key: "attackType", label: "Range", result: "correct", guessValue: "Ranged" },
|
||||
{ key: "resource", label: "Resource", result: "correct", guessValue: "Mana" },
|
||||
{ key: "region", label: "Region", result: "correct", guessValue: "Runeterra" },
|
||||
|
||||
Reference in New Issue
Block a user