Merge pull request #11053 from reaperrr/fix-emitinf

Fix value of infantry emitted on sell
This commit is contained in:
Oliver Brakmann
2016-04-05 22:29:57 +02:00

View File

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