This commit is contained in:
Renan LE CARO 2025-03-20 21:24:25 +01:00
parent 775ca54b49
commit 322e927589
10 changed files with 28 additions and 28 deletions

View file

@ -1,5 +1,5 @@
// The version of the cache.
const VERSION = "29041687";
const VERSION = "29041704";
// The name of the cache
const CACHE_NAME = `breakout-71-${VERSION}`;

View file

@ -1 +1 @@
"29041687"
"29041704"

View file

@ -520,7 +520,7 @@ export async function setLevel(gameState: GameState, l: number) {
gameState.combo += Math.round(
Math.max(
0,
((finalCombo - gameState.combo) * 25 * gameState.perks.shunt) / 100,
((finalCombo - gameState.combo) * 20 * gameState.perks.shunt) / 100,
),
);
}
@ -1364,16 +1364,16 @@ export function ballTick(gameState: GameState, ball: Ball, delta: number) {
ball.hitItem = [];
if (!ball.hitSinceBounce) {
gameState.runStatistics.misses++;
gameState.levelMisses++;
if (gameState.perks.forgiving) {
const indexes = gameState.bricks
.map((b, i) => (b ? i : -1))
.filter((i) => i > -1);
const pick = sample(indexes);
explodeBrick(gameState, pick, ball, false);
const loss = Math.floor(
(gameState.levelMisses / 10) *
(gameState.combo - baseCombo(gameState)),
);
decreaseCombo(gameState, loss, ball.x, ball.y - gameState.ballSize);
} else {
resetCombo(gameState, ball.x, ball.y);
}
gameState.levelMisses++;
makeText(
gameState,
gameState.puckPosition,

View file

@ -138,8 +138,8 @@
"upgrades.extra_life.help": "The ball will bounce once on the bottom line before being lost.",
"upgrades.extra_life.help_plural": "The ball will bounce on the bottom {{lvl}} times before being lost.",
"upgrades.extra_life.name": "+1 life",
"upgrades.forgiving.fullHelp": "The brick destruction is to avoid infinite combo farming combined with \"Trampoline\"",
"upgrades.forgiving.help": "Missing breaks a random brick but does not reset combo",
"upgrades.forgiving.fullHelp": "The first miss per level is free, then 10% of the combo, then 20% .. ",
"upgrades.forgiving.help": "Missing breaks reduces combo progressively instead of all at once.",
"upgrades.forgiving.name": "Forgiving",
"upgrades.ghost_coins.fullHelp": "It's not a bug, it's a feature ! ",
"upgrades.ghost_coins.help": "Coins pass through bricks",

View file

@ -138,8 +138,8 @@
"upgrades.extra_life.help": "La balle rebondit une fois avant d'être perdue.",
"upgrades.extra_life.help_plural": "La balle rebondit {{lvl}} fois avant d'être perdue.",
"upgrades.extra_life.name": "+1 vie",
"upgrades.forgiving.fullHelp": "La destruction de la brique évite le combo infini si on combine ça avec trampoline",
"upgrades.forgiving.help": "Rater les briques en supprime une au hasard mais ne RAZ par le combo",
"upgrades.forgiving.fullHelp": " La première brique ratée par niveau ne coûte rien, la suivante 10%, 20%, etc.",
"upgrades.forgiving.help": "Rater les briques fait perdre un portion progressivement plu importante du combo",
"upgrades.forgiving.name": "L'erreur est humaine",
"upgrades.ghost_coins.fullHelp": "Ce n'est pas une bug, c'est une fonctionnalité",
"upgrades.ghost_coins.help": "Les pièces traversent les briques",

View file

@ -443,7 +443,7 @@ export const rawUpgrades = [
id: "shunt",
max: 3,
name: t("upgrades.shunt.name"),
help: (lvl: number) => t("upgrades.shunt.help", { percent: lvl * 25 }),
help: (lvl: number) => t("upgrades.shunt.help", { percent: lvl * 20 }),
fullHelp: t("upgrades.shunt.fullHelp"),
},
{
@ -516,7 +516,7 @@ export const rawUpgrades = [
threshold: 115000,
giftable: false,
id: "trampoline",
max: 3,
max: 1,
name: t("upgrades.trampoline.name"),
help: (lvl: number) => t("upgrades.trampoline.help", { lvl }),
fullHelp: t("upgrades.trampoline.fullHelp"),