Complete overhaul of code structure and relevant files (#639)
This commit is contained in:
11
src/Disp/HelperFunctions/PopWrinklers.js
Normal file
11
src/Disp/HelperFunctions/PopWrinklers.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* This function pops all normal wrinklers
|
||||
* It is called by a click of the 'pop all' button created by CM.Disp.AddMenuStats()
|
||||
*/
|
||||
export default function PopAllNormalWrinklers() {
|
||||
for (const i of Object.keys(Game.wrinklers)) {
|
||||
if (Game.wrinklers[i].sucked > 0 && Game.wrinklers[i].type === 0) {
|
||||
Game.wrinklers[i].hp = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user