Skip to content

Commit ac50cb4

Browse files
correcting a typo in Task2 types.
1 parent 05d3f35 commit ac50cb4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ classifiers = [
2222
keywords=['helldivers2','api']
2323
requires-python = ">=3.8.1"
2424

25-
version = '0.0.1.19.7'
25+
version = '0.0.1.19.8'
2626
dependencies= [
2727
"pydantic>=2.9.2",
2828
"httpx>=0.27.2"

src/hd2api/constants/constants.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@
147147
"R": "Extract from a successful #MTYPE against #RACE #DIFF_PRE#DIFF#DIFF_POST#COUNT_PRE#COUNT#COUNT_POST#MULTI#LOCATION_PRE#LOCATION#LOCATION_POST"
148148
},
149149
9: {
150-
"R": "Complete an Operation against #RACE #DIFF_PRE#DIFF#DIFF_POST#COUNT_PRE#COUNT#COUNT_POST"
150+
"C": "Complete an Operation #DIFF_PRE#DIFF#DIFF_POST#COUNT_PRE#COUNT#COUNT_POST",
151+
"R": "Complete an Operation against #RACE #DIFF_PRE#DIFF#DIFF_POST#COUNT_PRE#COUNT#COUNT_POST",
151152
},
152153
11: {
153154
"L": "Liberate **#LOCATION**",

src/hd2api/models/Task2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ def format_task_str(
149149
params = taskdata.make_params(planets)
150150
if self.type == 9:
151151
if "#COUNT" in params and "#RACE" in params:
152+
if params["#RACE"] == "Anything":
153+
return taskstr + makeline(lines[9]["C"], params)
152154
return taskstr + makeline(lines[9]["R"], params)
153-
return taskstr + makeline(lines[9]["R"], params)
155+
return taskstr + makeline(lines[9]["C"], params)
154156
elif self.type == 7:
155157
if "#COUNT" in params and "#RACE" in params:
156158
return taskstr + makeline(lines[7]["R"], params)

0 commit comments

Comments
 (0)