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

            armorString += location.ToString() + ", ";
            armorString += defenseValue.ToString() + ", ";
            armorString += defenseModifier.ToString();
            return(armorString);
        }
 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)));
 }
        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);
        }