pyscreeps-arena 0.4a0__tar.gz → 0.4a2__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.4a0 → pyscreeps-arena-0.4a2}/PKG-INFO +1 -1
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/compiler.py +18 -4
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/config.py +1 -1
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/const.py +1 -1
- pyscreeps-arena-0.4a2/pyscreeps_arena/project.7z +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/PKG-INFO +1 -1
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/setup.py +1 -1
- pyscreeps-arena-0.4a0/pyscreeps_arena/project.7z +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/__init__.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/build.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/__init__.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/basic.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/core.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/main.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/core/utils.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena/localization.py +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/SOURCES.txt +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/dependency_links.txt +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/entry_points.txt +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/requires.txt +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/top_level.txt +0 -0
- {pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/setup.cfg +0 -0
|
@@ -56,7 +56,7 @@ import {searchPath, CostMatrix} from "game/path-finder"
|
|
|
56
56
|
|
|
57
57
|
TOTAL_APPEND_ATEND = """
|
|
58
58
|
export var sch = Scheduler();
|
|
59
|
-
var monitor = Monitor(
|
|
59
|
+
var monitor = Monitor(1);
|
|
60
60
|
know.now = 0;
|
|
61
61
|
|
|
62
62
|
StageMachineLogicMeta.__types__ = []; // 清空js首次构造时引入的数据
|
|
@@ -75,6 +75,7 @@ export var loop = function () {
|
|
|
75
75
|
if (know.now === 1) {
|
|
76
76
|
std.show_welcome();
|
|
77
77
|
init (know);
|
|
78
|
+
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
timeLine = get.cpu_us();
|
|
@@ -139,6 +140,9 @@ class GameFlag{{
|
|
|
139
140
|
}}
|
|
140
141
|
}};
|
|
141
142
|
const GameScoreCollector = GameStructureSpawn;
|
|
143
|
+
const RESOURCE_SCORE_X = "undefined";
|
|
144
|
+
const RESOURCE_SCORE_Y = "undefined";
|
|
145
|
+
const RESOURCE_SCORE_Z = "undefined";
|
|
142
146
|
""",
|
|
143
147
|
const.ARENA_BLUE: lambda: f"""
|
|
144
148
|
const GameScoreCollector = GameStructureSpawn;
|
|
@@ -146,7 +150,10 @@ class GameAreaEffect{{
|
|
|
146
150
|
constructor(){{
|
|
147
151
|
}}
|
|
148
152
|
}};
|
|
149
|
-
|
|
153
|
+
const RESOURCE_SCORE_X = "undefined";
|
|
154
|
+
const RESOURCE_SCORE_Y = "undefined";
|
|
155
|
+
const RESOURCE_SCORE_Z = "undefined";
|
|
156
|
+
import {{ Flag as GameFlag, BodyPart as GameBodyPart}} from 'arena/season_{config.season}/capture_the_flag/{"advanced" if config.level in ["advance", "advanced"] else "basic"}';
|
|
150
157
|
""",
|
|
151
158
|
const.ARENA_RED: lambda: f"""
|
|
152
159
|
class GameBodyPart{{
|
|
@@ -159,9 +166,13 @@ class GameFlag{{
|
|
|
159
166
|
}};
|
|
160
167
|
import {{ RESOURCE_SCORE, ScoreCollector as GameScoreCollector, AreaEffect as GameAreaEffect, EFFECT_DAMAGE, EFFECT_FREEZE }} from 'arena/season_{config.season}/collect_and_control/basic';
|
|
161
168
|
|
|
162
|
-
import ("arena/season_{config.season}/collect_and_control/
|
|
169
|
+
{'''import ("arena/season_{config.season}/collect_and_control/advanced")
|
|
163
170
|
.then((module) => {{ const RESOURCE_SCORE_X = module.RESOURCE_SCORE_X; const RESOURCE_SCORE_Y = module.RESOURCE_SCORE_Y; const RESOURCE_SCORE_Z = module.RESOURCE_SCORE_Z; }})
|
|
164
|
-
.catch((error) => {{ }});
|
|
171
|
+
.catch((error) => {{ const RESOURCE_SCORE_X = "undefined"; const RESOURCE_SCORE_Y = "undefined"; const RESOURCE_SCORE_Z = "undefined"; }});''' if config.level in ['advanced', 'advanced'] else '''
|
|
172
|
+
const RESOURCE_SCORE_X = "undefined";
|
|
173
|
+
const RESOURCE_SCORE_Y = "undefined";
|
|
174
|
+
const RESOURCE_SCORE_Z = "undefined";
|
|
175
|
+
'''}
|
|
165
176
|
""",
|
|
166
177
|
const.ARENA_GRAY: lambda: f"""
|
|
167
178
|
class GameBodyPart{{
|
|
@@ -173,6 +184,9 @@ class GameAreaEffect{{
|
|
|
173
184
|
}}
|
|
174
185
|
}};
|
|
175
186
|
const GameScoreCollector = GameStructureSpawn;
|
|
187
|
+
const RESOURCE_SCORE_X = "undefined";
|
|
188
|
+
const RESOURCE_SCORE_Y = "undefined";
|
|
189
|
+
const RESOURCE_SCORE_Z = "undefined";
|
|
176
190
|
import("game/prototypes")
|
|
177
191
|
.then((module) => {{ const GameFlag = module.Flag; }})
|
|
178
192
|
.catch((error) => {{ const GameFlag = undefined; }});
|
|
@@ -15,5 +15,5 @@ season = "beta"
|
|
|
15
15
|
language = 'cn'
|
|
16
16
|
# 默认路径: 用户 + ScreepsArena + beta-spawn_and_swamp + main.mjs
|
|
17
17
|
target = None
|
|
18
|
-
TARGET_GETTER = lambda: os.path.join(os.path.expanduser('~'), 'ScreepsArena', f'{season}-{const.ARENA_NAMES.get(arena, "spawn_and_swamp")}', 'main.mjs')
|
|
18
|
+
TARGET_GETTER = lambda: os.path.join(os.path.expanduser('~'), 'ScreepsArena', f'{season}-{const.ARENA_NAMES.get(arena, "spawn_and_swamp")}{"-advanced" if level in ["advance", "advanced"] else ""}', 'main.mjs')
|
|
19
19
|
|
|
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.
|
|
10
|
+
version='0.4a2',
|
|
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
|
{pyscreeps-arena-0.4a0 → pyscreeps-arena-0.4a2}/pyscreeps_arena.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|