added custom sell value trait. this fixes sell/repair on FACT, and buy/sell exploit on PROC

This commit is contained in:
Chris Forbes
2010-02-11 11:56:07 +13:00
parent f2133458ee
commit eeaf51a859
6 changed files with 31 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenRa.Traits
{
// allow a nonstandard sell/repair value to avoid
// buy-sell exploits like c&c's PROC.
class CustomSellValueInfo : StatelessTraitInfo<CustomSellValue>
{
public readonly int Value = 0;
}
class CustomSellValue {}
}