TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OriginalDefense

int Terraria.Item.OriginalDefense
get

Definition at line 938 of file Item.cs.

939 {
940 get
941 {
942 if (!ContentSamples.ItemsByType.TryGetValue(type, out var item))
943 {
944 return 0;
945 }
946 return item.defense;
947 }
948 }
static Dictionary< int, Item > ItemsByType
The default T:Terraria.Item for a given item type (F:Terraria.Item.type).
This class stores instances of various content types in a number of dictionaries. These instances ser...
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
Definition Item.cs:345