Implements an AcknowledgesUpgrade method in UpgradeManager to allow checking for truly applicable upgrades - AcceptsUpgrade returns false if the upgrade has reached max level.
This commit is contained in:
@@ -166,7 +166,7 @@ namespace OpenRA.Mods.RA.Traits
|
||||
{
|
||||
foreach (var u in info.Upgrades)
|
||||
{
|
||||
if (!um.Value.AcceptsUpgrade(self, u))
|
||||
if (!um.Value.AcknowledgesUpgrade(self, u))
|
||||
continue;
|
||||
|
||||
if (Disguised)
|
||||
|
||||
Reference in New Issue
Block a user