Merge pull request #481 from DanielNoord/popbutton

Another hotfix for levelup tooltip
This commit is contained in:
DanielNoord
2020-12-28 13:02:49 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ CM.Cache.UpdateCurrWrinklerCPS = function() {
*/
CM.Cache.CacheDragonCost = function() {
if (CM.Cache.lastDragonLevel != Game.dragonLevel || CM.Sim.DoSims) {
if (Game.dragonLevels[Game.dragonLevel].buy.toString().includes("sacrifice")) {
if (Game.dragonLevel < 25 && Game.dragonLevels[Game.dragonLevel].buy.toString().includes("sacrifice")) {
var target = Game.dragonLevels[Game.dragonLevel].buy.toString().match(/Objects\[(.*)\]/)[1];
var amount = Game.dragonLevels[Game.dragonLevel].buy.toString().match(/sacrifice\((.*?)\)/)[1];
if (target != "i") {

View File

@@ -299,7 +299,7 @@ CM.Cache.UpdateCurrWrinklerCPS = function() {
*/
CM.Cache.CacheDragonCost = function() {
if (CM.Cache.lastDragonLevel != Game.dragonLevel || CM.Sim.DoSims) {
if (Game.dragonLevels[Game.dragonLevel].buy.toString().includes("sacrifice")) {
if (Game.dragonLevel < 25 && Game.dragonLevels[Game.dragonLevel].buy.toString().includes("sacrifice")) {
var target = Game.dragonLevels[Game.dragonLevel].buy.toString().match(/Objects\[(.*)\]/)[1];
var amount = Game.dragonLevels[Game.dragonLevel].buy.toString().match(/sacrifice\((.*?)\)/)[1];
if (target != "i") {