mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-29 03:52:10 +00:00
Reverts e38665d7a6 (excepting the buildtime part of iberian and macedonian fortress templates) as #3818 must be fixed in a cleaner way. Fixes a typo. Refs #3818.
This was SVN commit r18632.
This commit is contained in:
@@ -24,10 +24,10 @@ Cost.prototype.Schema =
|
||||
"</element>" +
|
||||
"<element name='Resources' a:help='Resource costs to construct/train this unit'>" +
|
||||
"<interleave>" +
|
||||
"<element name='food'><ref name='nonNegativeDecimal'/></element>" +
|
||||
"<element name='wood'><ref name='nonNegativeDecimal'/></element>" +
|
||||
"<element name='stone'><ref name='nonNegativeDecimal'/></element>" +
|
||||
"<element name='metal'><ref name='nonNegativeDecimal'/></element>" +
|
||||
"<element name='food'><data type='nonNegativeInteger'/></element>" +
|
||||
"<element name='wood'><data type='nonNegativeInteger'/></element>" +
|
||||
"<element name='stone'><data type='nonNegativeInteger'/></element>" +
|
||||
"<element name='metal'><data type='nonNegativeInteger'/></element>" +
|
||||
"</interleave>" +
|
||||
"</element>";
|
||||
|
||||
@@ -60,7 +60,7 @@ Cost.prototype.GetResourceCosts = function(owner)
|
||||
{
|
||||
let cmpOwnership = Engine.QueryInterface(this.entity, IID_Ownership);
|
||||
if (!cmpOwnership)
|
||||
error("GetResourceCost called without valid ownership");
|
||||
error("GetResourceCosts called without valid ownership");
|
||||
else
|
||||
owner = cmpOwnership.GetOwner();
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<PopulationBonus>15</PopulationBonus>
|
||||
<BuildTime op="mul">1.5</BuildTime>
|
||||
<Resources>
|
||||
<stone op="mul">1.2</stone>
|
||||
<stone>1200</stone>
|
||||
</Resources>
|
||||
</Cost>
|
||||
<Health>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<Cost>
|
||||
<BuildTime op="mul">0.7</BuildTime>
|
||||
<Resources>
|
||||
<stone op="mul">0.8</stone>
|
||||
<stone>800</stone>
|
||||
</Resources>
|
||||
</Cost>
|
||||
<Footprint>
|
||||
|
||||
Reference in New Issue
Block a user