Skip to content

Instantly share code, notes, and snippets.

@Dimillian
Last active September 15, 2017 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Dimillian/113a217cf21dc5626ab3b4919312a1ee to your computer and use it in GitHub Desktop.
Save Dimillian/113a217cf21dc5626ab3b4919312a1ee to your computer and use it in GitHub Desktop.
public string LongNameAndData
{
get {
string[] description = new String[4];
description[0] = LongName;
if (itemGroup == ItemGroups.Armor) {
description[1] = "Armor Rating: " + GetMaterialArmorValue();
} else if (itemGroup == ItemGroups.Weapons) {
description[1] = "Damage: " + GetBaseDamageMin() + "-" + GetBaseDamageMax();
}
// Find other interesting data for other item groups. For now it's a blank line.
description[2] = "Condition: " + currentCondition + "/" + maxCondition;
description[3] = "Weight: " + weightInKg + " Kg";
return String.Join("\r", description);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment