Fixed bug in Dragon Aura cps change display #734
This commit is contained in:
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js
vendored
2
dist/CookieMonster.js
vendored
File diff suppressed because one or more lines are too long
2
dist/CookieMonster.js.map
vendored
2
dist/CookieMonster.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -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';
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user