diff api/Objects/UnitEquipmentItem.cs @ 299:25c47b7ecc99

Re #99: added points name system to GameSystem
author snowblizz
date Mon, 24 Jan 2011 16:42:43 +0000
parents 6fe0cb1bf74f
children 92d10b06ab0f
line wrap: on
line diff
--- 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()