mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-23 23:13:42 +02:00
Merge branch 'beta' into fix/ditto-tm-gen
This commit is contained in:
commit
062be85e71
11
biome.jsonc
11
biome.jsonc
@ -254,16 +254,9 @@
|
||||
},
|
||||
|
||||
// Overrides to prevent unused import removal inside `overrides.ts`, enums & `.d.ts` files (for TSDoc linkcodes),
|
||||
// as well as inside script boilerplate files.
|
||||
// as well as inside script boilerplate files (whose imports will _presumably_ be used in the generated file).
|
||||
{
|
||||
// TODO: Rename existing boilerplates in the folder and remove this last alias
|
||||
"includes": [
|
||||
"**/src/overrides.ts",
|
||||
"**/src/enums/**/*",
|
||||
"**/*.d.ts",
|
||||
"scripts/**/*.boilerplate.ts",
|
||||
"**/boilerplates/*.ts"
|
||||
],
|
||||
"includes": ["**/src/overrides.ts", "**/src/enums/**/*", "**/*.d.ts", "scripts/**/*.boilerplate.ts"],
|
||||
"linter": {
|
||||
"rules": {
|
||||
"correctness": {
|
||||
|
@ -47,6 +47,6 @@ describe("{{description}}", () => {
|
||||
await game.toEndOfTurn();
|
||||
|
||||
expect(feebas).toHaveUsedMove({ move: MoveId.SPLASH, result: MoveResult.SUCCESS });
|
||||
expect(game.textInterceptor.logs).toContain(i18next.t("moveTriggers:splash"));
|
||||
expect(game).toHaveShownMessage(i18next.t("moveTriggers:splash"));
|
||||
});
|
||||
});
|
@ -102,9 +102,9 @@ async function promptFileName(selectedType) {
|
||||
function getBoilerplatePath(choiceType) {
|
||||
switch (choiceType) {
|
||||
// case "Reward":
|
||||
// return path.join(__dirname, "boilerplates/reward.ts");
|
||||
// return path.join(__dirname, "boilerplates/reward.boilerplate.ts");
|
||||
default:
|
||||
return path.join(__dirname, "boilerplates/default.ts");
|
||||
return path.join(__dirname, "boilerplates/default.boilerplate.ts");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -23,11 +23,13 @@ export function getCookie(cName: string): string {
|
||||
}
|
||||
const name = `${cName}=`;
|
||||
const ca = document.cookie.split(";");
|
||||
// Check all cookies in the document and see if any of them match, grabbing the first one whose value lines up
|
||||
for (const c of ca) {
|
||||
const cTrimmed = c.trim();
|
||||
if (cTrimmed.startsWith(name)) {
|
||||
return c.slice(name.length, c.length);
|
||||
for (let c of ca) {
|
||||
// ⚠️ DO NOT REPLACE THIS WITH C = C.TRIM() - IT BREAKS IN NON-CHROMIUM BROWSERS ⚠️
|
||||
while (c.charAt(0) === " ") {
|
||||
c = c.substring(1);
|
||||
}
|
||||
if (c.indexOf(name) === 0) {
|
||||
return c.substring(name.length, c.length);
|
||||
}
|
||||
}
|
||||
return "";
|
||||
|
Loading…
Reference in New Issue
Block a user