mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Fix translation of damage types.
Broken in d28a91b83d.
Due to not checking for `template_helpers` in the game's files.
Patch by: @nwtour
Differential revision: https://code.wildfiregames.com/D3850
This was SVN commit r25265.
This commit is contained in:
@@ -11,7 +11,7 @@ class DamageTypesMetadata
|
||||
{
|
||||
this.damageTypeData = {};
|
||||
|
||||
let files = Engine.ListDirectoryFiles("simulation/data/template_helpers/damage_types", "*.json", false);
|
||||
let files = Engine.ListDirectoryFiles("simulation/data/damage_types", "*.json", false);
|
||||
for (let filename of files)
|
||||
{
|
||||
let data = Engine.ReadJSONFile(filename);
|
||||
|
||||
@@ -587,7 +587,7 @@
|
||||
{
|
||||
"extractor": "json",
|
||||
"filemasks": [
|
||||
"simulation/data/template_helpers/damage_types/*.json"
|
||||
"simulation/data/damage_types/*.json"
|
||||
],
|
||||
"options": {
|
||||
"keywords": [
|
||||
|
||||
Reference in New Issue
Block a user