Skip to content

Commit 57ec86d

Browse files
committed
Updated some module files and added the new module "NeverEnding_Legacy" to manage the mods of the game
1 parent 78d64b3 commit 57ec86d

File tree

16 files changed

+864
-16
lines changed

16 files changed

+864
-16
lines changed

Module files/Food_Time/Times.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"Will be hungry": 3
1111
},
1212
"Ate": {
13-
"Object": "2025-01-31 20:59:55-03:00",
13+
"Object": "2025-02-10 02:18:09-03:00",
1414
"Time": 0,
15-
"Time text": "20:59",
15+
"Time text": "02:18",
1616
"Unit": {
1717
"en": "hours",
1818
"pt": "horas"
@@ -23,9 +23,9 @@
2323
}
2424
},
2525
"Can drink water": {
26-
"Object": "2025-01-31 21:39:55-03:00",
26+
"Object": "2025-02-10 02:58:09-03:00",
2727
"Time": 40,
28-
"Time text": "21:39",
28+
"Time text": "02:58",
2929
"Unit": {
3030
"en": "minutes",
3131
"pt": "minutos"
@@ -36,9 +36,9 @@
3636
}
3737
},
3838
"Will be hungry": {
39-
"Object": "2025-01-31 23:59:55-03:00",
39+
"Object": "2025-02-10 05:18:09-03:00",
4040
"Time": 3,
41-
"Time text": "23:59",
41+
"Time text": "05:18",
4242
"Unit": {
4343
"en": "hours",
4444
"pt": "horas"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"lists_of_authors_and_their_mods": {
3+
"en": "Lists of authors and their mods",
4+
"pt": "Listas de autores e suas modificações"
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"Testing": true,
3-
"Verbose": true,
2+
"Testing": false,
3+
"Verbose": false,
44
"User information": false,
55
"Has active switches": false
66
}

Module files/Utility/Language/Texts.json

+4
Original file line numberDiff line numberDiff line change
@@ -2070,6 +2070,10 @@
20702070
"en": "Game sessions played",
20712071
"pt": "Sessões de jogo jogadas"
20722072
},
2073+
"mods, title()": {
2074+
"en": "Mods",
2075+
"pt": "Modificações"
2076+
},
20732077
"watched_things": {
20742078
"en": "Watched things",
20752079
"pt": "Coisas assistidas"

Modules/Diary_Slim/Write_On_Diary_Slim/__init__.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,15 @@ def __init__(self):
4646

4747
# If the "Is task" key is inside the text dictionary
4848
# And the task was not registered
49+
# Or the "States" key is inside the "Text" dictionary
50+
# And the current state in the backup is not the first one
4951
if (
5052
"Is task" in self.dictionary["Text"] and
51-
self.task_dictionary["Register task"] == False
53+
self.task_dictionary["Register task"] == False or
54+
"States" in self.dictionary["Text"] and
55+
self.dictionary["Text"]["States (backup)"]["Current state"] != self.dictionary["Text"]["States"]["Dictionary"]["1"]
5256
):
53-
# Define the "Input on end" state as True
57+
# Define the "Input on end" state as False
5458
self.states["Input on end"] = False
5559

5660
# Write the Diary Slim text

Modules/GamePlayer/GamePlayer/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2423,12 +2423,12 @@ def Show_Information(self, dictionary):
24232423
print("\t" + dictionary["States"]["Texts"][key][self.user_language])
24242424

24252425
# If there is a session description, show it
2426-
if "Description" in self.dictionary["Entry"]["Diary Slim"]:
2426+
if "Descriptions" in self.dictionary["Entry"]["Diary Slim"]:
24272427
print()
24282428
print(self.Language.language_texts["description, title()"] + ":")
24292429

2430-
# Define the "description" variable for easier typing and a more beautiful code
2431-
description = self.dictionary["Entry"]["Diary Slim"]["Description"]["lines"]
2430+
# Define the description variable for easier typing and a more beautiful code
2431+
description = self.dictionary["Entry"]["Diary Slim"]["Descriptions"][self.user_language]["lines"]
24322432

24332433
# Show the description lines
24342434
for line in description:

Modules/Modules.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"Stories",
3535
"Tasks",
3636
"Watch_History",
37-
"Years"
37+
"Years",
38+
"NeverEnding_Legacy"
3839
]
3940
}
4041
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Show text": {
3+
"en": "Manage the game \"NeverEnding Legacy\"",
4+
"pt": "Gerenciar o jogo \"NeverEnding Legacy\""
5+
},
6+
"Update_Mods": {
7+
"en": "Update the mods",
8+
"pt": "Atualizar os mods"
9+
}
10+
}
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"Module": "NeverEnding_Legacy",
3+
"Folders": {
4+
"root": "C:/Apps/Modules/NeverEnding_Legacy/",
5+
"Texts": {
6+
"root": "C:/Apps/Module files/NeverEnding_Legacy/"
7+
}
8+
},
9+
"Files": {
10+
"Descriptions": "C:/Apps/Modules/NeverEnding_Legacy/Descriptions.json",
11+
"Module": "C:/Apps/Modules/NeverEnding_Legacy/Module.json"
12+
},
13+
"Descriptions": {
14+
"Show text": "Gerenciar o jogo \"NeverEnding Legacy\"",
15+
"Update_Mods": {
16+
"en": "Update the mods",
17+
"pt": "Atualizar os mods"
18+
}
19+
},
20+
"Classes": {
21+
"Dictionary": {
22+
"Update_Mods": {
23+
"Descriptions": {
24+
"en": "Update the mods",
25+
"pt": "Atualizar os mods"
26+
},
27+
"Description": "Atualizar os mods",
28+
"Object": "<class 'NeverEnding_Legacy.Update_Mods.Update_Mods'>"
29+
}
30+
},
31+
"Descriptions": [
32+
"Atualizar os mods"
33+
]
34+
}
35+
}

0 commit comments

Comments
 (0)