projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo fix.
[open-adventure.git]
/
make_dungeon.py
diff --git
a/make_dungeon.py
b/make_dungeon.py
index 8ab149ec458e6575f849a7480b6f89f059279e9d..8d7f71960d9954b16cd76e93fe51103d76ce175d 100755
(executable)
--- a/
make_dungeon.py
+++ b/
make_dungeon.py
@@
-1,5
+1,5
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
-# SPDX-FileCopyrightText:
Copyright
Eric S. Raymond <esr@thyrsus.com>
+# SPDX-FileCopyrightText:
(C)
Eric S. Raymond <esr@thyrsus.com>
# SPDX-License-Identifier: BSD-2-Clause
"""
This is the open-adventure dungeon generator. It consumes a YAML description of
# SPDX-License-Identifier: BSD-2-Clause
"""
This is the open-adventure dungeon generator. It consumes a YAML description of
@@
-626,6
+626,7
@@
if __name__ == "__main__":
tkeys=bigdump(tkey),
travel=get_travel(travel),
ignore=ignore,
tkeys=bigdump(tkey),
travel=get_travel(travel),
ignore=ignore,
+ dwarflocs=", ".join(db["dwarflocs"]) + ",",
)
# 0-origin index of birds's last song. Bird should
)
# 0-origin index of birds's last song. Bird should
@@
-650,6
+651,7
@@
if __name__ == "__main__":
motions=get_refs(db["motions"]),
actions=get_refs(db["actions"]),
state_definitions=statedefines,
motions=get_refs(db["motions"]),
actions=get_refs(db["actions"]),
state_definitions=statedefines,
+ ndwarflocs=str(len(db["dwarflocs"])),
)
with open(H_NAME, "w", encoding="ascii", errors="surrogateescape") as hf:
)
with open(H_NAME, "w", encoding="ascii", errors="surrogateescape") as hf: