From ef53c2d6725517727034d85687741b0a8c336a93 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Fri, 5 Mar 2021 12:45:51 +0100 Subject: [PATCH 1/2] adapted to changed df-structures enum value names --- docs/changelog.txt | 1 + plugins/strangemood.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index 826c0b65f..ef7485132 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -42,6 +42,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `embark-assistant`: slightly improved performance of surveying - `quickfort`: Dreamfort blueprint set improvements: `significant `_ refinements across the entire blueprint set. Dreamfort is now much faster, much more efficient, and much easier to use. The `checklist `__ now includes a mini-walkthrough for quick reference. The spreadsheet now also includes `embark profile suggestions `__ - `quickfort`: added aliases for configuring masterwork and artifact core quality for all stockpile categories that have them; made it possible to take from multiple stockpiles in the ``quantumstop`` alias +- `strangemood`: adapted to changed enum value names in df-structures ## Documentation - `fortplan`: fortplan has been replaced by `quickfort`. add deprecation warnings to command output and documentation. diff --git a/plugins/strangemood.cpp b/plugins/strangemood.cpp index b1b48f1a5..5050b3621 100644 --- a/plugins/strangemood.cpp +++ b/plugins/strangemood.cpp @@ -185,7 +185,7 @@ void generateName(df::language_name &output, int language, df::language_name_typ if (mode != 10) { case language_name_type::Site: - case language_name_type::Unk37: // this is not a typo + case language_name_type::Monument: if (rng.df_trandom(2)) { selectWord(table2, output.words[0], output.parts_of_speech[0], 0); @@ -268,7 +268,7 @@ void generateName(df::language_name &output, int language, df::language_name_typ case language_name_type::Region: case language_name_type::AdventuringGroup: case language_name_type::SiteGovernment: - case language_name_type::Unk15: + case language_name_type::NomadicGroup: case language_name_type::Vessel: case language_name_type::MilitaryUnit: case language_name_type::Religion: @@ -290,7 +290,7 @@ void generateName(df::language_name &output, int language, df::language_name_typ case language_name_type::Tunnel: case language_name_type::PretentiousEntityPosition: case language_name_type::Tomb: - case language_name_type::MigratingGroup: + case language_name_type::OutcastGroup: selectWord(table1, output.words[5], output.parts_of_speech[5], 2); r3 = rng.df_trandom(3); if (rng.df_trandom(50)) From 1e2289c2c9e7f9ce33bec1f286677871b7cbcd07 Mon Sep 17 00:00:00 2001 From: PatrikLundell Date: Sat, 6 Mar 2021 11:03:00 +0100 Subject: [PATCH 2/2] removed unnecessary log entry --- docs/changelog.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/changelog.txt b/docs/changelog.txt index ef7485132..826c0b65f 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -42,7 +42,6 @@ changelog.txt uses a syntax similar to RST, with a few special sequences: - `embark-assistant`: slightly improved performance of surveying - `quickfort`: Dreamfort blueprint set improvements: `significant `_ refinements across the entire blueprint set. Dreamfort is now much faster, much more efficient, and much easier to use. The `checklist `__ now includes a mini-walkthrough for quick reference. The spreadsheet now also includes `embark profile suggestions `__ - `quickfort`: added aliases for configuring masterwork and artifact core quality for all stockpile categories that have them; made it possible to take from multiple stockpiles in the ``quantumstop`` alias -- `strangemood`: adapted to changed enum value names in df-structures ## Documentation - `fortplan`: fortplan has been replaced by `quickfort`. add deprecation warnings to command output and documentation.