Merge pull request #740 from DanielNoord/bugfixes

Fixed bug in Dragon Aura cps change display #734
This commit is contained in:
Daniël van Noord
2021-04-02 20:11:32 +02:00
committed by GitHub
6 changed files with 6 additions and 6 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

@@ -19,7 +19,7 @@ export function AddAuraInfo(aura) {
const timeToRecover = FormatTime( const timeToRecover = FormatTime(
priceOfChange / (bonusCPS + Game.cookiesPs), priceOfChange / (bonusCPS + Game.cookiesPs),
); );
const bonusCPSPercentage = Beautify(bonusCPS / Game.cookiesPs); const bonusCPSPercentage = Beautify((bonusCPS / Game.cookiesPs) * 100);
l('dragonAuraInfo').style.minHeight = '60px'; l('dragonAuraInfo').style.minHeight = '60px';
l('dragonAuraInfo').style.margin = '8px'; l('dragonAuraInfo').style.margin = '8px';

View File

@@ -38,7 +38,7 @@ export default function CalculateChangeAura(aura) {
SimDragonAura2 !== CacheDragonAura2 SimDragonAura2 !== CacheDragonAura2
) { ) {
for (let i = Game.ObjectsById.length - 1; i > -1; --i) { for (let i = Game.ObjectsById.length - 1; i > -1; --i) {
if (Game.ObjectsById[i - 1].amount > 0) { if (Game.ObjectsById[i].amount > 0) {
const highestBuilding = SimObjects[Game.ObjectsById[i].name].name; const highestBuilding = SimObjects[Game.ObjectsById[i].name].name;
SimObjects[highestBuilding].amount -= 1; SimObjects[highestBuilding].amount -= 1;
SimBuildingsOwned -= 1; SimBuildingsOwned -= 1;

View File

@@ -3,7 +3,7 @@ const path = require('path');
module.exports = function (env) { module.exports = function (env) {
return { return {
mode: 'production', mode: 'production',
devtool: env.production ? 'source-map' : 'eval-source-map', devtool: env.production ? 'source-map' : 'inline-source-map',
optimization: { optimization: {
minimize: !!env.production, minimize: !!env.production,
}, },