From 7bd3c0177657a41e2face8644c7a3e91b6645e27 Mon Sep 17 00:00:00 2001 From: Maxence Bazin Date: Tue, 19 Apr 2022 22:14:30 +0200 Subject: [PATCH] Fix spawn book on chest #2 --- generation/generator.py | 4 ++-- utils/book.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/generation/generator.py b/generation/generator.py index b162ace..c89555e 100644 --- a/generation/generator.py +++ b/generation/generator.py @@ -30,8 +30,8 @@ def createSettlementData(area: list, village_model: Village, resources: Resource # Per default, chosen color is white loreMaker.fillSettlementDataWithColor(settlement_data, "white") - # settlement_data.structure_number_goal = 12 - settlement_data.structure_number_goal = random.randint(25, 55) + settlement_data.structure_number_goal = 12 + #settlement_data.structure_number_goal = random.randint(25, 55) return settlement_data diff --git a/utils/book.py b/utils/book.py index 87f9203..77fb7c5 100644 --- a/utils/book.py +++ b/utils/book.py @@ -57,7 +57,7 @@ def createTextOfPresentationVillage(villageName: str, structuresNumber: int, str text_village_presentation_book += f'{deadVillagersNumber} villagers have died since their arrival.\\\\n' text_village_presentation_book += ('There are ' f'{structuresNumber} structures.\\\\n') - text_village_presentation_book += '---------------\\\\n\f' + text_village_presentation_book += '---------------\\\\n\f\\\\s' for structure in structures: text_village_presentation_book += f'Villagers built the {structure.name}.\\\\n'