mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 14:06:16 -04:00
Shunt now only keeps 25% / 50%/ 75%
This commit is contained in:
parent
d2266de792
commit
e8621614ee
6 changed files with 19 additions and 15 deletions
|
@ -501,8 +501,10 @@ export async function setLevel(gameState: GameState, l: number) {
|
|||
gameState.runStatistics.levelsPlayed++;
|
||||
|
||||
// Reset combo silently
|
||||
const finalCombo=gameState.combo
|
||||
gameState.combo = baseCombo(gameState);
|
||||
if (!gameState.perks.shunt) {
|
||||
gameState.combo = baseCombo(gameState);
|
||||
gameState.combo += Math.round(Math.max(0,(finalCombo-gameState.combo)*25*gameState.perks.shunt/100))
|
||||
}
|
||||
gameState.combo += gameState.perks.hot_start * 15;
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@
|
|||
"upgrades.shocks.help": "Explosive balls collisions",
|
||||
"upgrades.shocks.name": "Shocks",
|
||||
"upgrades.shunt.fullHelp": "If you also have hot start, the hot start is just added to the current combo",
|
||||
"upgrades.shunt.help": "Combo no longer resets between levels",
|
||||
"upgrades.shunt.help": "Keep {{percent}}% of your combo between levels",
|
||||
"upgrades.shunt.name": "Shunt",
|
||||
"upgrades.skip_last.fullHelp": "You need to break all bricks to go to the next level. However, it can be hard to get the last ones. \n\nClearing a level early brings extra choices when upgrading. Never missing the bricks is also very beneficial. \n\nSo if you find it difficult to break the last bricks, getting this perk a few time can help.",
|
||||
"upgrades.skip_last.help": "The last brick will explode.",
|
||||
|
|
|
@ -199,7 +199,7 @@
|
|||
"upgrades.shocks.help": "Collision explosive entre balles",
|
||||
"upgrades.shocks.name": "Choc",
|
||||
"upgrades.shunt.fullHelp": "Démarrage à chaud sera simplement ajouté au combo actuel",
|
||||
"upgrades.shunt.help": "Le combo ne se remet plus à zéro en début de niveau",
|
||||
"upgrades.shunt.help": "Garer {{percent}}% du combo au changement de niveau ",
|
||||
"upgrades.shunt.name": "Shunt",
|
||||
"upgrades.skip_last.fullHelp": "Vous devez casser toutes les briques pour passer au niveau suivant. \n\nCependant, il peut être difficile d'obtenir les dernières briques.\n\nTerminer un niveau plus tôt permet d'obtenir des choix supplémentaires lors de la mise à niveau. \n\nNe jamais manquer de briques est également très avantageux.\n\nDonc, si vous avez du mal à casser les dernières briques, obtenir cet avantage plusieurs fois peut vous aider.",
|
||||
"upgrades.skip_last.help": "La dernière brique s'autodétruit.",
|
||||
|
|
|
@ -406,9 +406,9 @@ export const rawUpgrades = [
|
|||
threshold: 80000,
|
||||
giftable: false,
|
||||
id: "shunt",
|
||||
max: 1,
|
||||
max: 3,
|
||||
name: t("upgrades.shunt.name"),
|
||||
help: (lvl: number) => t("upgrades.shunt.help"),
|
||||
help: (lvl: number) => t("upgrades.shunt.help",{percent:lvl*25}),
|
||||
fullHelp: t("upgrades.shunt.fullHelp"),
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue