Merge pull request #783 from DanielNoord/fix/upgradesorting

Fix upgrade sorting on firefox #780
This commit is contained in:
Daniël van Noord
2021-05-01 23:18:50 +02:00
committed by GitHub
5 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -72,6 +72,7 @@ export default function UpdateUpgrades() {
o.name = Game.UpgradesInStore[x].name; o.name = Game.UpgradesInStore[x].name;
o.price = Game.UpgradesInStore[x].basePrice; o.price = Game.UpgradesInStore[x].basePrice;
o.pp = CacheUpgrades[o.name].pp; o.pp = CacheUpgrades[o.name].pp;
o.color = CacheUpgrades[o.name].color;
arr.push(o); arr.push(o);
} }

View File

@@ -23,7 +23,6 @@ export const ColourGray = 'Gray';
export const ColourPink = 'Pink'; export const ColourPink = 'Pink';
export const ColourBrown = 'Brown'; export const ColourBrown = 'Brown';
export const ColoursOrdering = [ export const ColoursOrdering = [
ColourGray,
ColourBlue, ColourBlue,
ColourGreen, ColourGreen,
ColourYellow, ColourYellow,
@@ -32,6 +31,7 @@ export const ColoursOrdering = [
ColourPurple, ColourPurple,
ColourPink, ColourPink,
ColourBrown, ColourBrown,
ColourGray,
]; ];
/** /**