Allow replace with 0.
This was SVN commit r11726.
This commit is contained in:
parent
5b7027ec53
commit
825e1ec7a3
@ -343,7 +343,7 @@ TechnologyManager.prototype.ApplyModificationsWorker = function(valueName, curVa
|
||||
retValue += (modification.multiplier - 1) * curValue;
|
||||
else if (modification.add)
|
||||
retValue += modification.add;
|
||||
else if (modification.replace) // This will depend on ordering because there is no choice
|
||||
else if (modification.replace !== undefined) // This will depend on ordering because there is no choice
|
||||
retValue = modification.replace;
|
||||
else
|
||||
warn("modification format not recognised (modifying " + valueName + "): " + uneval(modification));
|
||||
|
Loading…
Reference in New Issue
Block a user