mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-20 16:05:19 +00:00
units.wesnoth.org update to understand new [difficulty] tag
This commit is contained in:
parent
2aefb78ab7
commit
b0f15a08c4
@ -215,6 +215,13 @@ def list_contents():
|
||||
d3 = campaign.get_text_val("difficulties")
|
||||
if d3:
|
||||
d += "," + d3.split(",")[0]
|
||||
else:
|
||||
difficulty = campaign.get_all(tag = "difficulty")
|
||||
if difficulty:
|
||||
d3 = difficulty[0].get_text_val("define")
|
||||
if d3:
|
||||
d += "," + d3
|
||||
|
||||
append(info, cid, d, c = campaign)
|
||||
|
||||
return info
|
||||
|
Loading…
x
Reference in New Issue
Block a user