# HG changeset patch # User snowblizz # Date 1295887363 0 # Node ID 25c47b7ecc993648169cf1c6db10d29a9258d91e # Parent 483b491d18f4fb5724c80318ffcc1877177f9674 Re #99: added points name system to GameSystem diff -r 483b491d18f4 -r 25c47b7ecc99 api/Objects/UnitEquipmentItem.cs --- a/api/Objects/UnitEquipmentItem.cs Mon Jan 17 20:02:41 2011 +0000 +++ b/api/Objects/UnitEquipmentItem.cs Mon Jan 24 16:42:43 2011 +0000 @@ -5,7 +5,8 @@ using System; using IBBoard.CustomMath; using IBBoard.Limits; -using IBBoard.WarFoundry.API.Util; +using IBBoard.WarFoundry.API.Util; +//using IBBoard.WarFoundry.API.Objects; namespace IBBoard.WarFoundry.API.Objects { @@ -23,8 +24,12 @@ private UnitType unitType; private string slotName = ""; private ILimit minLimit; - private ILimit maxLimit; - + private ILimit maxLimit; + public GameSystem CurrentGameSystem + { + get { return WarFoundryCore.CurrentGameSystem; } + set { WarFoundryCore.CurrentGameSystem = value; } + } public UnitEquipmentItem(EquipmentItem equipmentItem, UnitType equipmentFor) : this(equipmentItem, equipmentFor, new string[0]) { @@ -199,7 +204,7 @@ public override string ToString() { - return EquipmentItem.Name + " (" + Cost + "pts each)"; + return CurrentGameSystem.setUnitEquipmentItemName(EquipmentItem.Name, Cost); } public bool HasAlternatives()