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

◆ CanBeQuickUsed

bool Terraria.Item.CanBeQuickUsed
get

Definition at line 400 of file Item.cs.

401 {
402 get
403 {
404 if (IsAir)
405 {
406 return false;
407 }
409 if (flag.HasValue)
410 {
411 return flag.Value;
412 }
413 if (healLife > 0)
414 {
415 return true;
416 }
417 if (healMana > 0)
418 {
419 return true;
420 }
421 if (buffType > 0 && buffTime > 0)
422 {
423 return true;
424 }
425 return false;
426 }
427 }
static ? bool[] CanBeQuickusedOnGamepad
Definition ItemID.cs:82
int healMana
Definition Item.cs:173
bool IsAir
Definition Item.cs:377
int healLife
Definition Item.cs:171
int buffTime
Definition Item.cs:273
int buffType
Definition Item.cs:271

Referenced by Terraria.UI.ItemSlot.TryEnteringFastUseMode().