Fix han techs to affect Grain instead of rice

This commit is contained in:
Lancelot de Ferrière 2022-09-28 18:28:34 +00:00 committed by Lancelot de Ferrière
parent 77c4a62114
commit 7e28227fa6
5 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
{
"name": "community-mod",
"version": "0.26.0",
"version": "0.26.1",
"label": "0 A.D. Community Mod",
"url": "https://gitlab.com/wraitii/0ad-community-mod-a26",
"description": "The Community Mod is a community-led effort to improve the gameplay of 0 A.D., officially backed by the 0 A.D. team.",

View File

@ -105,7 +105,7 @@ PETRA.ResearchManager.prototype.researchWantedTechs = function(gameState, techs)
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 };
else if (template.modifications[i].value === "ResourceGatherer/Rates/food.fruit")
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 };
else if (template.modifications[i].value === "ResourceGatherer/Rates/food.grain" || template.modifications[i].value === "ResourceGatherer/Rates/food.rice")
else if (template.modifications[i].value === "ResourceGatherer/Rates/food.grain")
return { "name": tech[0], "increasePriority": false };
else if (template.modifications[i].value === "ResourceGatherer/Rates/wood.tree")
return { "name": tech[0], "increasePriority": this.CostSum(template.cost) < 400 };

View File

@ -15,9 +15,9 @@
"requirementsTooltip": "Unlocked in City Phase.",
"icon": "flood_control.png",
"researchTime": 70,
"tooltip": "Workers +20% rice gather rate.",
"tooltip": "Workers +20% grain gather rate.",
"modifications": [
{ "value": "ResourceGatherer/Rates/food.rice", "multiply": 1.2 }
{ "value": "ResourceGatherer/Rates/food.grain", "multiply": 1.2 }
],
"affects": ["Worker"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"

View File

@ -14,9 +14,9 @@
"requirementsTooltip": "Unlocked in Village Phase.",
"icon": "torsion_springs.png",
"researchTime": 50,
"tooltip": "Workers +20% rice gather rate.",
"tooltip": "Workers +20% grain gather rate.",
"modifications": [
{ "value": "ResourceGatherer/Rates/food.rice", "multiply": 1.2 }
{ "value": "ResourceGatherer/Rates/food.grain", "multiply": 1.2 }
],
"affects": ["Worker"],
"soundComplete": "interface/alarm/alarm_upgradearmory.xml"

View File

@ -15,7 +15,7 @@
"requirementsTooltip": "Unlocked in Town Phase.",
"icon": "irrigation.png",
"researchTime": 60,
"tooltip": "Workers +20% rice gather rate.",
"tooltip": "Workers +20% grain gather rate.",
"modifications": [
{ "value": "ResourceGatherer/Rates/food.grain", "multiply": 1.2 }
],