Skip to content

Commit

Permalink
fix undead spawn chance.
Browse files Browse the repository at this point in the history
disable commands for EX.
  • Loading branch information
ennorehling committed Oct 4, 2020
1 parent 670cf57 commit 82abe1d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion conf/ex/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"config://res/eressea/spellbooks/tybied.xml"
],
"disabled": [
"number",
"destroy",
"steal",
"number",
"jsreport"
],
"settings": {
Expand Down
2 changes: 2 additions & 0 deletions conf/ex/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
- NUMMER Befehl abgeschafft.
- Ebene und Hochland haben 20%, alle anderen Regionen 10% der Arbeitsplätze von E2.
- Keine Zufallsmonster
- ZERSTÖRE Befehl abgeschafft.
- BEKLAUE Befehl abgeschafft.
2 changes: 1 addition & 1 deletion src/monsters.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ void spawn_undead(void)
{
region *r;
faction *monsters = get_monsters();
int spawn_chance = config_get_int("monsters.spawn.chance", 100) * 10;
int spawn_chance = config_get_int("monsters.spawn.chance", 100) * 100;

if (spawn_chance <= 0) {
return;
Expand Down

0 comments on commit 82abe1d

Please sign in to comment.