Skip to content

Commit

Permalink
Update 1.4.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
braeven committed May 4, 2023
1 parent df9882e commit e04aec7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion l10n/l10n_fr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<text name="Revamp_ChooseWoodLogLength" text="Choisir la longueur" />

<!-- Production messages -->
<text name="Revamp_StorageEmpty" text="Le stockage est video" />
<text name="Revamp_StorageEmpty" text="Le stockage est vide" />
<text name="Revamp_CantBuy" text="L'ingrédient %s ne peut pas être acheté" />
<text name="Revamp_ProductionClosed" text="%s est fermé. - Horaires d'ouverture : %s." />
<text name="Revamp_ProductionNotEmpty" text="La production n'est pas vide. Les biens suivants seront également vendus :"/>
Expand Down
2 changes: 1 addition & 1 deletion l10n/l10n_ru.xml
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@
<text name="Revamp_Help_P10_Text_1" text="Внутриигровая справка — это лишь часть того, что есть в Revamp. Она значительно упрощена и сжата. Справку по установке можно найти в подробной документации."/>
<text name="Revamp_Help_P10_Text_2" text="Эта справка находится в Revamp 1.3."/>
</texts>
</l10n>
</l10n>
11 changes: 10 additions & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modDesc descVersion="74">
<author>Braeven</author>
<contributors>Achimobil</contributors>
<version>1.4.1.4</version>
<version>1.4.1.5</version>
<title>
<en>Production Revamp</en>
</title>
Expand Down Expand Up @@ -103,6 +103,9 @@ Version 1.4.1.3
Version 1.4.1.4
* Bugfix with Pump and Hoses Version 1.3
Version 1.4.1.5
* Bugfix with manual spawning and opening hours
]]>
</en>
<de>
Expand Down Expand Up @@ -200,6 +203,9 @@ Version 1.4.1.3
Version 1.4.1.4
* Bugfix mit Pump and Hoses Version 1.3
Version 1.4.1.5
* Bugfix mit manuellen spawnen und Öffnungszeiten
]]>
</de>
<fr>
Expand Down Expand Up @@ -297,6 +303,9 @@ Version 1.4.1.3
Version 1.4.1.4
* Bugfix avec la Pump and Hoses Version 1.3
Version 1.4.1.5
* Correction de bug avec le spawn manuel et les heures d'ouverture
]]>
</fr>
</description>
Expand Down
13 changes: 8 additions & 5 deletions scripts/revamp_spawner.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Copyright (C) braeven, Achimobil, 2022
Author: braeven, Achimobil
Date: 12.04.2023
Version: 1.4.3.1
Date: 04.05.2023
Version: 1.4.3.2
Contact/Help/Tutorials:
discord.gg/gHmnFZAypk
Expand All @@ -33,6 +33,7 @@ Changelog:
1.4.2.0 @ 05.01.2023 - Bugfix - auch kleine Mengen größer 1l können ausgelagert werden
1.4.3.0 @ 10.01.2023 - Bugfix mit Öffnungszeiten und Palettenspawn
1.4.3.1 @ 12.04.2023 - Bugfix mit Spawner und Öffnungszeiten
1.4.3.2 @ 04.05.2023 - Bugfix Öffnungszeiten
Important:.
No changes are allowed to this script without permission from Braeven AND Achimobil.
Expand Down Expand Up @@ -81,6 +82,7 @@ function RevampSpawner:run()
local skip = false
local foundOne = false
local closedTimes = ""

for _, production in pairs (self.productionPoint.productions) do
local modes = string.split(production.mode, " ")
for _, mode in pairs(modes) do
Expand All @@ -97,7 +99,7 @@ function RevampSpawner:run()
end
end

if not skip then
if skip == false then
local availableItemsInStorages = {}
--Production Revamp: Nur anzeigen was im Lager ist und auch OUTPUT ist
for fillTypeIndex, fillLevel in pairs (self.productionPoint.storage.fillLevels) do
Expand Down Expand Up @@ -963,13 +965,14 @@ function InGameMenuProductionFrame:menuconnector()
--Production Revamp: Sollte die Produktion Öffnungszeiten haben, außerhalb der "Zeiten" keine Produktion, dann auch keine Paletten manuell spawnen.
local skip = false
local foundOne = false
local closedTimes = ""

for _, production in pairs (productionPoint.productions) do
local modes = string.split(production.mode, " ")
for _, mode in pairs(modes) do
if mode =="hourly" then
local currentHour = g_currentMission.environment.currentHour
if production.hoursTable[currentMission] == true then
if production.hoursTable[currentHour] == true then
skip = false
foundOne = true
elseif foundOne == false then
Expand All @@ -980,7 +983,7 @@ function InGameMenuProductionFrame:menuconnector()
end
end

if skip then
if skip == true then
--Production Revamp: Fake-Eintrag damit die Produktion geschlossen Meldung angezeigt wird.
local closed = {}
closed.fillTypeIndex = fillType
Expand Down

0 comments on commit e04aec7

Please sign in to comment.