Modified Capturable to have a capture time; fixes #2002
This commit is contained in:
committed by
Chris Forbes
parent
7187b14459
commit
bc8c433a72
@@ -21,13 +21,13 @@ namespace OpenRA.Mods.RA
|
||||
|
||||
public class Sellable : IResolveOrder
|
||||
{
|
||||
bool selling = false;
|
||||
[Sync] public bool Selling = false;
|
||||
|
||||
public void ResolveOrder(Actor self, Order order)
|
||||
{
|
||||
if (order.OrderString == "Sell" && !selling)
|
||||
if (order.OrderString == "Sell" && !Selling)
|
||||
{
|
||||
selling = true;
|
||||
Selling = true;
|
||||
|
||||
foreach( var ns in self.TraitsImplementing<INotifySold>() )
|
||||
ns.Selling( self );
|
||||
|
||||
Reference in New Issue
Block a user