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
}
408
bool
? flag =
ItemID
.
Sets
.
CanBeQuickusedOnGamepad
[
type
];
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
}
Terraria.ID.ItemID.Sets.CanBeQuickusedOnGamepad
static ? bool[] CanBeQuickusedOnGamepad
Definition
ItemID.cs:82
Terraria.ID.ItemID.Sets
Definition
ItemID.cs:46
Terraria.ID.ItemID
Definition
ItemID.cs:9
Terraria.Item.healMana
int healMana
Definition
Item.cs:173
Terraria.Item.IsAir
bool IsAir
Definition
Item.cs:377
Terraria.Item.healLife
int healLife
Definition
Item.cs:171
Terraria.Item.buffTime
int buffTime
Definition
Item.cs:273
Terraria.Item.buffType
int buffType
Definition
Item.cs:271
Terraria.Item.type
int type
Definition
Item.cs:133
Referenced by
Terraria.UI.ItemSlot.TryEnteringFastUseMode()
.
Terraria
Item
Generated by
1.10.0