Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getNecrocornTime = function(log=false){//true to also output necrocorns per second
- var numAlicorns = gamePage.resPool.get("alicorn").value;
- var curCorruption = gamePage.religion.corruption;
- var corruptionRate = 1;
- if(gamePage.resPool.get("necrocorn").value > 0)
- corruptionRate = 0.25 * (1+ gamePage.getEffect("corruptionBoostRatio"));
- corruptionRate *= gamePage.getEffect("corruptionRatio");
- if(numAlicorns <= 0){
- curCorruption = 0;
- corruptionRate = 0;
- }
- if(log)
- console.log("Current corruption rate: " + (corruptionRate * gamePage.getRateUI()) + "/sec");
- return gamePage.toDisplaySeconds( (1 + corruptionRate - curCorruption) / (corruptionRate * gamePage.getRateUI()) );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement