Skip to content

Commit

Permalink
v1.2.8.4
Browse files Browse the repository at this point in the history
add settings ferment, forcePlow to readconfig(), onPostSaveSavegame()
  • Loading branch information
Mmtrx committed Oct 10, 2023
1 parent d6a9ee2 commit 47b2c49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions betterContracts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
-- v1.2.8.1 17.08.2023 save NPC farmland owners to farmland.xml (#153).
-- v1.2.8.2 22.09.2023 support chaff mission. Insta-ferment only in debug mode (#158)
-- v1.2.8.3 10.10.2023 force plow after root crop harvest (#123). Insta-ferment separate setting (#158)
-- v1.2.8.4 10.10.2023 add settings ferment, forcePlow to readconfig(), onPostSaveSavegame()
--=======================================================================================================
SC = {
FERTILIZER = 1, -- prices index
Expand Down Expand Up @@ -244,6 +245,8 @@ function readconfig(self)
local key = self.baseXmlKey

self.config.debug = xmlFile:getValue(key.."#debug", false)
self.config.ferment = xmlFile:getValue(key.."#ferment", false)
self.config.forcePlow = xmlFile:getValue(key.."#forcePlow", false)
self.config.maxActive = xmlFile:getValue(key.."#maxActive", 3)
self.config.multReward= xmlFile:getValue(key.."#reward", 1.)
self.config.multLease = xmlFile:getValue(key.."#lease", 1.)
Expand Down Expand Up @@ -693,6 +696,8 @@ function BetterContracts:onPostSaveSavegame(saveDir, savegameIndex)
local conf = self.config
local key = self.baseXmlKey
xmlFile:setBool ( key.."#debug", conf.debug)
xmlFile:setBool ( key.."#ferment", conf.ferment)
xmlFile:setBool ( key.."#forcePlow", conf.forcePlow)
xmlFile:setInt ( key.."#maxActive", conf.maxActive)
xmlFile:setFloat( key.."#reward", conf.multReward)
xmlFile:setFloat( key.."#lease", conf.multLease)
Expand Down
6 changes: 3 additions & 3 deletions modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<modDesc descVersion="77">
<author>Mmtrx</author>
<version>1.2.8.3</version>
<version>1.2.8.4</version>
<title>
<en>Better Contracts</en>
</title>
Expand All @@ -24,7 +24,7 @@ Disclaimer: All values shown in details display are ESTIMATES. You should not ta
The mod keeps track of the amount of contracts you completed for each of the NPC farmers (number of completed jobs is displayed below the farmers image, if "Details" on). If you enable the optional discount mode or hard mode options (on the mods settings page), the amount of completed jobs influence gameplay.
Changelog v1.2.8.3
Changelog v1.2.8.4
- Force plow after root crop harvest (#123). Insta-ferment separate setting (#158)
- Save NPC farmland owners to farmland.xml (#153).
- Support chaff mission
Expand Down Expand Up @@ -117,7 +117,7 @@ Warnung: Alle in der Detailanzeige angegebenen Werte sind GESCHÄTZT. Sie sollte
Die Mod merkt sich die Anzahl Verträge, die Sie für jeden der NPC Farmer abgeschlossen haben (die Zahl wird unter dem Bild des Farmers angezeigt, wenn "Details" an ist). Wenn der optionale Discount Modus oder der Hard Modus aktiviert wird, beeinflusst die Anzahl abgeschlossener Jobs das Spielgeschehen.
Changelog v1.2.8.3
Changelog v1.2.8.4
- Wurzelfrüchte erfordern Pflügen (#123). Schnell-gären als separates Setting (#158)
- NPC Farmland-Besitzer speichern, damit nach Restart ein Feld noch den selben Besitzer hat (#153).
- Unterstützung für Häckselaufträge (FS22_ChaffMissions)
Expand Down

0 comments on commit 47b2c49

Please sign in to comment.