Chaos has a bigger effect and Incite Violence has diminishing return

This commit is contained in:
Olivier Gagnon 2021-10-22 15:54:14 -04:00
parent a2aa5aa9f3
commit 63939509e5
3 changed files with 8 additions and 4 deletions

@ -206,7 +206,7 @@ export class Action implements IAction {
const city = inst.getCurrentCity(); const city = inst.getCurrentCity();
if (city.chaos > BladeburnerConstants.ChaosThreshold) { if (city.chaos > BladeburnerConstants.ChaosThreshold) {
const diff = 1 + (city.chaos - BladeburnerConstants.ChaosThreshold); const diff = 1 + (city.chaos - BladeburnerConstants.ChaosThreshold);
const mult = Math.pow(diff, 0.1); const mult = Math.pow(diff, 0.5);
return mult; return mult;
} }

@ -1513,8 +1513,12 @@ export class Bladeburner implements IBladeburner {
if (this.logging.general) { if (this.logging.general) {
this.log(`Incited violence in the synthoid communities.`); this.log(`Incited violence in the synthoid communities.`);
} }
const city = this.cities[this.city]; for (const cityName of Object.keys(this.cities)) {
city.chaos = (city.chaos + 100) * 2; const city = this.cities[cityName];
city.chaos += 10;
city.chaos += city.chaos / (Math.log(city.chaos) / Math.log(10));
}
this.startAction(player, this.action); this.startAction(player, this.action);
break; break;
} }

@ -37,7 +37,7 @@ export class Operation extends Action {
const city = inst.getCurrentCity(); const city = inst.getCurrentCity();
if (city.chaos > BladeburnerConstants.ChaosThreshold) { if (city.chaos > BladeburnerConstants.ChaosThreshold) {
const diff = 1 + (city.chaos - BladeburnerConstants.ChaosThreshold); const diff = 1 + (city.chaos - BladeburnerConstants.ChaosThreshold);
const mult = Math.pow(diff, 0.1); const mult = Math.pow(diff, 0.5);
return mult; return mult;
} }