Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust the way monster upgrade times are calculated. [Balance] #14077

Merged
merged 1 commit into from Nov 20, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -233,7 +233,7 @@ void monster::hasten_upgrade() {
// Checking for return value of -1 is necessary.
int monster::next_upgrade_time() {
const int scaled_half_life = type->half_life * ACTIVE_WORLD_OPTIONS["MONSTER_UPGRADE_FACTOR"];
int day = 0;
int day = scaled_half_life;
for (int i = 0; i < UPGRADE_MAX_ITERS; i++) {
if (one_in(2)) {
day += rng(0, scaled_half_life);
@@ -1124,7 +1124,7 @@ void options_manager::init()
);
OPTIONS["MONSTER_UPGRADE_FACTOR"] = cOpt("world_default", _("Monster evolution scaling factor"),
_("A scaling factor that determines the time between monster upgrades. A higher number means slower evolution. Set to 0.00 to turn off monster upgrades."),
0.0, 100, 1.0, 0.01
0.0, 100, 4.0, 0.01
);

mOptionsSort["world_default"]++;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.