From 6a6a27680f1fd220ca6599b71f083a930d64578f Mon Sep 17 00:00:00 2001 From: Daniel van Noord Date: Sun, 13 Dec 2020 21:54:29 +0100 Subject: [PATCH] Annotated CM.Sim.CalculateChangeAura --- CookieMonster.js | 6 ++++++ src/Sim.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/CookieMonster.js b/CookieMonster.js index 280ac51..119ad03 100644 --- a/CookieMonster.js +++ b/CookieMonster.js @@ -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(); diff --git a/src/Sim.js b/src/Sim.js index f32dbcc..fe9bc60 100644 --- a/src/Sim.js +++ b/src/Sim.js @@ -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();