Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
11
src/Cache/CPS/GetCPSBuffMult.js
Normal file
11
src/Cache/CPS/GetCPSBuffMult.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* This function returns the current CPS buff
|
||||
* @returns {number} mult The multiplier
|
||||
*/
|
||||
export default function GetCPSBuffMult() {
|
||||
let mult = 1;
|
||||
for (const i of Object.keys(Game.buffs)) {
|
||||
if (typeof Game.buffs[i].multCpS !== 'undefined') mult *= Game.buffs[i].multCpS;
|
||||
}
|
||||
return mult;
|
||||
}
|
||||
Reference in New Issue
Block a user