Unfail mcv deploy

This commit is contained in:
Paul Chote
2010-07-30 19:57:52 +12:00
parent ede160f1b6
commit 119f85dbf4
8 changed files with 104 additions and 126 deletions

View File

@@ -131,15 +131,6 @@ namespace OpenRA.Traits
Warhead = warhead
});
}
public void TransferHPFromActor(Actor self, Actor from, bool transferPercentage)
{
var fromHealth = from.traits.GetOrDefault<Health>();
if (fromHealth == null)
return;
hp = (transferPercentage) ? (int)(fromHealth.HPFraction*MaxHP) : Math.Min(fromHealth.HP, MaxHP);
}
}
public static class HealthExts