much better sub behavior

This commit is contained in:
Chris Forbes
2009-12-13 13:32:19 +13:00
parent 5eb373790b
commit e4c9073884
7 changed files with 21 additions and 4 deletions

View File

@@ -129,6 +129,7 @@ namespace OpenRa.Game.Traits
{
if (lmb || underCursor == null) return null;
if (underCursor.Owner == self.Owner) return null;
if (!Combat.HasAnyValidWeapons(self, underCursor)) return null;
return Order.Attack(self, underCursor);
}

View File

@@ -18,7 +18,7 @@ namespace OpenRa.Game.Traits
if (remainingSurfaceTime <= 0)
OnSurface();
remainingSurfaceTime = (int)(Rules.General.SubmergeDelay * 60 / 25);
remainingSurfaceTime = (int)(Rules.General.SubmergeDelay * 60 * 25);
}
public override IEnumerable<Tuple<Sprite, float2, int>> Render(Actor self)