Fix value of infantry emitted on sell

This commit is contained in:
reaperrr
2016-04-05 16:28:33 +02:00
parent 39cb519c1a
commit fb84dab660

View File

@@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits
var cost = csv != null ? csv.Value : (valued != null ? valued.Cost : 0);
var health = self.TraitOrDefault<Health>();
var dudesValue = info.ValuePercent * cost;
var dudesValue = info.ValuePercent * cost / 100;
if (health != null)
{
if (100 * health.HP >= info.MinHpPercent * health.MaxHP)