ELLOPERSONH

less broken dynamic buff updater

Jul 22nd, 2024 (edited)
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. eval("Game.gainBuff="+Game.gainBuff.toString().replace(`buff.maxTime=buff.time;`,`buff.maxTime=buff.time;
  2. buff.desc=buff.desc.split(' for ')[0]+' for '+Game.sayTime(buff.time,-1);
  3. var buffTime=buff.time;
  4. var buffName=buff.type.name;
  5. var mult=0;
  6. Game.killBuff(buff.name);
  7. Game.updateBuffs();
  8. if (Game.Has('Dragon fang') && (buff.type.name == 'dragon harvest' && buff.multCpS == 15 || buff.type.name == 'dragonflight' && buff.multClick == 1111)) {
  9. Game.Upgrades['Dragon fang'].unearn();
  10. Game.gainBuff(buffName,Math.ceil(buffTime/30),buff.arg1,buff.arg2,buff.arg3);
  11. Game.Upgrades['Dragon fang'].earn();
  12. }
  13. else {Game.gainBuff(buffName,Math.ceil(buffTime/30),buff.arg1,buff.arg2,buff.arg3);}`))
Advertisement
Add Comment
Please, Sign In to add comment