Skip to content

Commit

Permalink
0 health refresh bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Trimps committed Apr 28, 2022
1 parent 255c966 commit 83073c1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions css/gradient.css
Original file line number Diff line number Diff line change
Expand Up @@ -530,3 +530,7 @@
#grid.gridOverlayGreenGradient .battleRow, #grid.gridOverlayGreenGradientliquid .battleRow, #grid.gridOverlayGreenGradientliquid .cellColorCurrent {
background: none !important;
}

.battleRow{
margin: -2px -2px;
}
11 changes: 11 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1079,6 +1079,17 @@ body {

}

#togglesaveAndExit.settingBtn0{
background-color: black;
color: red;
border-color: white !important;
}

#togglesaveAndExit.settingBtn0:hover{
background-color: #292929;
border-color: #dedbdb !important;
}

.settingBtntrue, .settingBtn1{
background-color: #5cb85c;
}
Expand Down
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,8 @@ function load(saveString, autoLoad, fromPf) {
if (game.buildings.Tribute.locked === 0 || game.options.menu.useAverages.enabled) fadeIn("gemsPs", 10);
if (game.global.autoCraftModifier > 0)
document.getElementById("foremenCount").innerHTML = (game.global.autoCraftModifier * 4) + " Foremen";
if (game.global.fighting) startFight();
if (game.global.fighting && game.global.soldierHealth <= 0) fight();
else if (game.global.fighting) startFight();
if (game.options.menu.darkTheme.enabled != 1) game.options.menu.darkTheme.onToggle();
updateLabels();
if (game.global.viewingUpgrades){
Expand Down

0 comments on commit 83073c1

Please sign in to comment.