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

◆ checkMat()

bool Terraria.Item.checkMat ( )
inline

Definition at line 1032 of file Item.cs.

1033 {
1034 if (type >= 71 && type <= 74)
1035 {
1036 material = false;
1037 return false;
1038 }
1039 switch (type)
1040 {
1041 case 408:
1042 case 529:
1043 case 541:
1044 case 542:
1045 case 543:
1046 case 852:
1047 case 853:
1048 case 1151:
1049 case 3272:
1050 case 3274:
1051 case 3275:
1052 case 3338:
1053 case 4261:
1054 case 4282:
1055 case 4286:
1056 case 4290:
1057 case 4295:
1058 case 5277:
1059 case 5278:
1060 case 5453:
1061 case 5454:
1062 material = true;
1063 return true;
1064 case 4076:
1065 case 4131:
1066 case 5325:
1067 material = false;
1068 return false;
1069 default:
1070 {
1071 for (int i = 0; i < Recipe.numRecipes; i++)
1072 {
1073 for (int j = 0; Main.recipe[i].requiredItem[j].type > 0; j++)
1074 {
1075 if (netID == Main.recipe[i].requiredItem[j].netID)
1076 {
1077 material = true;
1078 return true;
1079 }
1080 }
1081 }
1082 material = false;
1083 return false;
1084 }
1085 }
1086 }
bool material
Definition Item.cs:267
int netID
Definition Item.cs:291

References Terraria.Item.material, Terraria.Item.netID, Terraria.Recipe.numRecipes, Terraria.Main.recipe, and Terraria.Item.type.