Annotated CM.Sim.CalculateChangeAura

This commit is contained in:
Daniel van Noord
2020-12-13 21:54:29 +01:00
parent 15b859e8b9
commit 6a6a27680f
2 changed files with 12 additions and 0 deletions

View File

@@ -4789,6 +4789,12 @@ CM.Sim.BuyUpgrades = function() {
}
}
/**
* This functions calculates the cps and cost of changing a Dragon Aura
* It is called by CM.Disp.AddAuraInfo()
* @param {number} aura The number of the aura currently selected by the mouse/user
* @returns {[number, number]} [CM.Sim.cookiesPs - Game.cookiesPs, price] The bonus cps and the price of the change
*/
CM.Sim.CalculateChangeAura = function(aura) {
CM.Sim.CopyData();

View File

@@ -628,6 +628,12 @@ CM.Sim.BuyUpgrades = function() {
}
}
/**
* This functions calculates the cps and cost of changing a Dragon Aura
* It is called by CM.Disp.AddAuraInfo()
* @param {number} aura The number of the aura currently selected by the mouse/user
* @returns {[number, number]} [CM.Sim.cookiesPs - Game.cookiesPs, price] The bonus cps and the price of the change
*/
CM.Sim.CalculateChangeAura = function(aura) {
CM.Sim.CopyData();