pyscreeps-arena 0.6.0__tar.gz → 0.6.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/PKG-INFO +1 -1
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/compiler.py +15 -3
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/const.py +1 -1
- pyscreeps_arena-0.6.0.1/pyscreeps_arena/project.7z +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/PKG-INFO +1 -1
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/setup.py +1 -1
- pyscreeps_arena-0.6.0/pyscreeps_arena/project.7z +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/afters/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/afters/after_config.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/afters/after_custom.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/afters/after_empty.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/afters/after_prefab.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/build.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/basic.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/config.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/core.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/main.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/core/utils.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/localization.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/P2PY.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/creeplogic_edit.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/map_render.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/mapviewer.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/project_ui.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qcreeplogic/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qcreeplogic/model.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qcreeplogic/qcreeplogic.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/qmapmarker.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/qvariable.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/test_compact_variable.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/test_qmapmarker.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/test_qvariable.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/to_code.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/qcinfo.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/qco.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/qmapv.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_array_drag.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_drag.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_qcinfo.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_qco_drag.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_qmapv.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_simple_array.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qprefabs/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qprefabs/model.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qprefabs/qprefabs.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qprefabs/test.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qrecipe/__init__.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qrecipe/model.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qrecipe/qrecipe.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/rs_icon.py +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/SOURCES.txt +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/dependency_links.txt +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/entry_points.txt +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/requires.txt +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/top_level.txt +0 -0
- {pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/setup.cfg +0 -0
|
@@ -202,7 +202,7 @@ class GameConstructionBoost{{
|
|
|
202
202
|
constructor(){{
|
|
203
203
|
}}
|
|
204
204
|
}};
|
|
205
|
-
import {{ BodyPart as GameBodyPart }} from 'arena/
|
|
205
|
+
import {{ BodyPart as GameBodyPart }} from 'arena/season_{config.season}/{const.ARENA_BLUE}/{"advanced" if config.level in ["advance", "advanced"] else "basic"}/prototypes';
|
|
206
206
|
""",
|
|
207
207
|
const.ARENA_RED: lambda: f"""
|
|
208
208
|
const ARENA_COLOR_TYPE = "RED";
|
|
@@ -1318,6 +1318,16 @@ class Compiler(CompilerBase):
|
|
|
1318
1318
|
"""
|
|
1319
1319
|
return re.sub(r'import[^\n]*\n', '', raw)
|
|
1320
1320
|
|
|
1321
|
+
@staticmethod
|
|
1322
|
+
def remove_transcrypt_comments(raw) -> str:
|
|
1323
|
+
"""
|
|
1324
|
+
将日期替换为固定日期,确保输出一致
|
|
1325
|
+
匹配模式: ... 2026-02-03 11:11:15 ... -> ... 1990-01-01 00:00:00 ...
|
|
1326
|
+
:param raw:
|
|
1327
|
+
:return:
|
|
1328
|
+
"""
|
|
1329
|
+
return re.sub(r"\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}", '2099-01-01 00:00:00', raw)
|
|
1330
|
+
|
|
1321
1331
|
def generate_total_js(self, usr_modules, t_imps: list[str], f_sorts, f_replaces, g_replaces, min_js_files=None) -> str:
|
|
1322
1332
|
"""
|
|
1323
1333
|
生成总的main.js
|
|
@@ -1346,8 +1356,8 @@ const __PYTHON_VERSION__ = '{python_version_info}';""" + self.TOTAL_INSERT_AT_HE
|
|
|
1346
1356
|
export var LANGUAGE = '{config.language}';
|
|
1347
1357
|
"""
|
|
1348
1358
|
|
|
1349
|
-
total_js += f"export var TIMESTAMP = {timestamp_ms};\n"
|
|
1350
|
-
total_js += f"export var TIMESTRING = '{timestring}';\n"
|
|
1359
|
+
# total_js += f"export var TIMESTAMP = {timestamp_ms};\n"
|
|
1360
|
+
# total_js += f"export var TIMESTRING = '{timestring}';\n"
|
|
1351
1361
|
total_js += f"""const __AUTHOR__ = '{const.AUTHOR}';
|
|
1352
1362
|
const __AUTHOR_CN__ = '{const.BILIBILI_NAME}';"""
|
|
1353
1363
|
|
|
@@ -1373,6 +1383,7 @@ const __AUTHOR_CN__ = '{const.BILIBILI_NAME}';"""
|
|
|
1373
1383
|
for module in usr_modules:
|
|
1374
1384
|
content = self.auto_read(os.path.join(self.target_dir, module))
|
|
1375
1385
|
content = self.remove_js_import(content)
|
|
1386
|
+
content = self.remove_transcrypt_comments(content)
|
|
1376
1387
|
for old, new in f_replaces.get(module, {}).items():
|
|
1377
1388
|
content = re.sub(old, new, content)
|
|
1378
1389
|
for old, new in self.TRANSCRYPT_ERROR_REPLACE.items():
|
|
@@ -1385,6 +1396,7 @@ const __AUTHOR_CN__ = '{const.BILIBILI_NAME}';"""
|
|
|
1385
1396
|
|
|
1386
1397
|
# write main.js
|
|
1387
1398
|
content = self.auto_read(self.target_js)
|
|
1399
|
+
content = self.remove_transcrypt_comments(content)
|
|
1388
1400
|
for old, new in self.TRANSCRYPT_ERROR_REPLACE.items():
|
|
1389
1401
|
content = re.sub(old, new, content)
|
|
1390
1402
|
total_js += content
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ with open(r"T:\New_PC\Import_Project\uploads\pyscreeps-arena_upload\pyscreeps-ar
|
|
|
7
7
|
long_description = f.read()
|
|
8
8
|
setup(
|
|
9
9
|
name='pyscreeps-arena',
|
|
10
|
-
version='0.6.0',
|
|
10
|
+
version='0.6.0.1',
|
|
11
11
|
description='Python api|interface to play game: Screeps: Arena.',
|
|
12
12
|
long_description=long_description,
|
|
13
13
|
long_description_content_type='text/markdown',
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qcreeplogic/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qcreeplogic/qcreeplogic.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/test_qmapmarker.py
RENAMED
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapker/test_qvariable.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_array_drag.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena/ui/qmapv/test_simple_array.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyscreeps_arena-0.6.0 → pyscreeps_arena-0.6.0.1}/pyscreeps_arena.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|