forked from github/server
parent
7d874f1606
commit
ecbd0ba83c
|
@ -7,6 +7,7 @@ function setup()
|
|||
eressea.settings.set("nmr.timeout", "0")
|
||||
eressea.settings.set("rules.grow.formula", "0")
|
||||
eressea.settings.set("rules.peasants.growth.factor", "0")
|
||||
eressea.settings.set("volcano.active.percent", "4")
|
||||
end
|
||||
|
||||
function test_snowglobe_fail()
|
||||
|
|
|
@ -284,7 +284,8 @@ void volcano_update(void)
|
|||
}
|
||||
}
|
||||
else if (r->terrain == t_volcano) {
|
||||
if (rng_int() % 100 < 4) {
|
||||
int volcano_chance = config_get_int("volcano.active.percent", 4);
|
||||
if (rng_int() % 100 < volcano_chance) {
|
||||
ADDMSG(&r->msgs, msg_message("volcanostartsmoke", "region", r));
|
||||
r->terrain = t_active;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue