Compare commits
1 Commits
sprint/iss
...
burn/fix-b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b819fc068a |
16
js/engine.js
16
js/engine.js
@@ -77,13 +77,15 @@ function updateRates() {
|
|||||||
G.userRate += 5 * timmyCount * (timmyMult - 1);
|
G.userRate += 5 * timmyCount * (timmyMult - 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bilbo randomness: 10% chance of massive creative burst
|
// Bilbo randomness: flags are set per-tick in tick(), not here
|
||||||
if (G.buildings.bilbo > 0 && Math.random() < CONFIG.BILBO_BURST_CHANCE) {
|
// updateRates() is called from many non-tick contexts (buy, resolve, sprint)
|
||||||
G.creativityRate += 50 * G.buildings.bilbo;
|
if (G.buildings.bilbo > 0) {
|
||||||
}
|
if (G.bilboBurstActive) {
|
||||||
// Bilbo vanishing: 5% chance of zero creativity this tick
|
G.creativityRate += 50 * G.buildings.bilbo;
|
||||||
if (G.buildings.bilbo > 0 && Math.random() < CONFIG.BILBO_VANISH_CHANCE) {
|
}
|
||||||
G.creativityRate = 0;
|
if (G.bilboVanishActive) {
|
||||||
|
G.creativityRate = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Allegro requires trust
|
// Allegro requires trust
|
||||||
|
|||||||
Reference in New Issue
Block a user