From fb84dab6601897a59e17d802c9bbc977fb6ec169 Mon Sep 17 00:00:00 2001 From: reaperrr Date: Tue, 5 Apr 2016 16:28:33 +0200 Subject: [PATCH] Fix value of infantry emitted on sell --- OpenRA.Mods.Common/Traits/EmitInfantryOnSell.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Traits/EmitInfantryOnSell.cs b/OpenRA.Mods.Common/Traits/EmitInfantryOnSell.cs index 60ab45657a..6090b6f151 100644 --- a/OpenRA.Mods.Common/Traits/EmitInfantryOnSell.cs +++ b/OpenRA.Mods.Common/Traits/EmitInfantryOnSell.cs @@ -57,7 +57,7 @@ namespace OpenRA.Mods.Common.Traits var cost = csv != null ? csv.Value : (valued != null ? valued.Cost : 0); var health = self.TraitOrDefault(); - var dudesValue = info.ValuePercent * cost; + var dudesValue = info.ValuePercent * cost / 100; if (health != null) { if (100 * health.HP >= info.MinHpPercent * health.MaxHP)