예제 #1
0
        public override string ToString()
        {
            string armorString = base.ToString() + ", ";

            armorString += location.ToString() + ", ";
            armorString += defenseValue.ToString() + ", ";
            armorString += defenseModifier.ToString();
            return(armorString);
        }
예제 #2
0
 public static void RecordMechDamage(Mech __instance, ArmorLocation aLoc, float totalDamage)
 {
     if (aLoc == ArmorLocation.None || aLoc == ArmorLocation.Invalid)
     {
         return;
     }
     RecordUnitDamage(aLoc.ToString(), totalDamage,
                      __instance.GetCurrentArmor(aLoc), __instance.GetCurrentStructure(MechStructureRules.GetChassisLocationFromArmorLocation(aLoc)));
 }
예제 #3
0
        public override string ToString()
        {
            string toString = Name + ", ";

            toString += Type + ", ";
            toString += Price.ToString() + ", ";
            toString += Weight.ToString() + ", ";
            toString += ArmorLocation.ToString() + ", ";
            toString += DefenseValue.ToString() + ", ";
            toString += DefenseModifier.ToString();

            foreach (string s in AllowableClasses)
            {
                toString += ", " + s;
            }

            return(toString);
        }