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

◆ useFragment()

bool Terraria.Recipe.useFragment ( int invType,
int reqType )
inline

Definition at line 396 of file Recipe.cs.

397 {
398 if (reqType != 3458 && reqType != 3456 && reqType != 3457 && reqType != 3459)
399 {
400 return false;
401 }
402 if (anyFragment && (invType == 3458 || invType == 3456 || invType == 3457 || invType == 3459))
403 {
404 return true;
405 }
406 return false;
407 }
bool anyFragment
Definition Recipe.cs:53

References Terraria.Recipe.anyFragment.

Referenced by Terraria.Recipe.CollectGuideRecipes(), and Terraria.Recipe.Create().