Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ useSand()

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

Definition at line 383 of file Recipe.cs.

384 {
385 if (reqType != 169 && reqType != 408 && reqType != 1246 && reqType != 370 && reqType != 3272 && reqType != 3338 && reqType != 3274 && reqType != 3275)
386 {
387 return false;
388 }
389 if (anySand && (invType == 169 || invType == 408 || invType == 1246 || invType == 370 || invType == 3272 || invType == 3338 || invType == 3274 || invType == 3275))
390 {
391 return true;
392 }
393 return false;
394 }

References Terraria.Recipe.anySand.

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