Merge pull request #751 from DanielNoord/hotfixes

Hotfixes
This commit is contained in:
Daniël van Noord
2021-04-04 22:16:27 +02:00
committed by GitHub
7 changed files with 7 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

@@ -67,7 +67,7 @@ export default function CreateUpgradeBar() {
const UpgradeBar = document.createElement('div'); const UpgradeBar = document.createElement('div');
UpgradeBar.id = 'CMUpgradeBar'; UpgradeBar.id = 'CMUpgradeBar';
UpgradeBar.style.width = '100%'; UpgradeBar.style.width = '100%';
UpgradeBar.style.backgroundColour = 'black'; UpgradeBar.style.backgroundColor = 'black';
UpgradeBar.style.textAlign = 'center'; UpgradeBar.style.textAlign = 'center';
UpgradeBar.style.fontWeight = 'bold'; UpgradeBar.style.fontWeight = 'bold';
UpgradeBar.style.display = 'none'; UpgradeBar.style.display = 'none';

View File

@@ -32,7 +32,7 @@ export function CreateBotBar() {
BotBar.style.width = '100%'; BotBar.style.width = '100%';
BotBar.style.position = 'absolute'; BotBar.style.position = 'absolute';
BotBar.style.display = 'none'; BotBar.style.display = 'none';
BotBar.style.backgroundColour = '#262224'; BotBar.style.backgroundColor = '#262224';
BotBar.style.backgroundImage = 'linear-gradient(to bottom, #4d4548, #000000)'; BotBar.style.backgroundImage = 'linear-gradient(to bottom, #4d4548, #000000)';
BotBar.style.borderTop = '1px solid black'; BotBar.style.borderTop = '1px solid black';
BotBar.style.overflow = 'auto'; BotBar.style.overflow = 'auto';

View File

@@ -23,7 +23,7 @@ export function CreateTimerBar() {
TimerBar.style.height = '0px'; TimerBar.style.height = '0px';
TimerBar.style.fontSize = '10px'; TimerBar.style.fontSize = '10px';
TimerBar.style.fontWeight = 'bold'; TimerBar.style.fontWeight = 'bold';
TimerBar.style.backgroundColour = 'black'; TimerBar.style.backgroundColor = 'black';
// Create standard Golden Cookie bar // Create standard Golden Cookie bar
const CMTimerBarGC = CreateTimer('CMTimerBarGC', 'Next Cookie', [ const CMTimerBarGC = CreateTimer('CMTimerBarGC', 'Next Cookie', [

View File

@@ -17,6 +17,7 @@ import {
* @returns {number} CM.Sim.cookiesPs - Game.cookiesPs The bonus cps and the price of the change * @returns {number} CM.Sim.cookiesPs - Game.cookiesPs The bonus cps and the price of the change
*/ */
export default function CalculateChangeGod(god, slot) { export default function CalculateChangeGod(god, slot) {
if (!Game.Objects.Temple.minigameLoaded) return 0;
CopyData(); CopyData();
const { minigame } = Game.Objects.Temple; const { minigame } = Game.Objects.Temple;
const CurrentSlot = minigame.godsById[god].slot; const CurrentSlot = minigame.godsById[god].slot;