29230 {
29231
29232
29233
29234
29238 {
29240 }
29242 {
29244 {
29246 Rectangle
hitbox = projectile.Hitbox;
29247 if (((Rectangle)(
ref hitbox)).Contains(Main.MouseWorld.ToPoint()) || Main.SmartInteractProj == projectile.whoAmI)
29248 {
29251 break;
29252 }
29253 }
29254 }
29256 {
29258 int type = 7;
29260 {
29261 case 5324:
29263 type = 22;
29264 break;
29265 case 5329:
29267 type = 22;
29268 break;
29269 case 5330:
29271 type = 22;
29272 break;
29273 case 4346:
29275 type = 22;
29276 break;
29277 case 5391:
29279 type = 22;
29280 break;
29281 case 5325:
29283 break;
29284 case 4131:
29286 break;
29287 case 5323:
29289 break;
29290 case 5455:
29292 break;
29293 case 4767:
29295 break;
29296 case 5453:
29298 break;
29299 case 5309:
29301 break;
29302 case 5454:
29304 break;
29305 case 5358:
29307 type = 22;
29308 break;
29309 case 5360:
29311 type = 22;
29312 break;
29313 case 5361:
29315 type = 22;
29316 break;
29317 case 5359:
29319 type = 22;
29320 break;
29321 case 5437:
29323 type = 22;
29324 break;
29325 }
29327 {
29329 Main.mouseRightRelease = false;
29332 Recipe.FindRecipes();
29333 }
29334 }
29336 {
29339 }
29341 {
29344 }
29346 {
29349 }
29351 {
29354 }
29356 {
29359 }
29361 {
29364 }
29366 {
29369 }
29371 {
29373 }
29375 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
static bool[] ItemsThatAllowRepeatedRightClick
If true for a given item type (F:Terraria.Item.type), then that item has a right-click features that ...
static bool[] MinionTargettingFeature
If true for a given projectile type (F:Terraria.Projectile.type), then any item that shoots that proj...
static bool[] TurretFeature
If true for a given projectile type (F:Terraria.Projectile.type), then any item that shoots that proj...
int shoot
The ID of the projectile that is fired by this item on use. Either a T:Terraria.ID....
void ChangeItemType(int to)
int type
The Item ID of this item. The Item ID is a unique number assigned to each Item loaded into the game....
static bool AltFunctionUse(Item item, Player player)
Calls ModItem.AltFunctionUse, then all GlobalItem.AltFunctionUse hooks, until one of them returns tru...
This serves as the central class from which item-related functions are carried out....
void ItemCheck_ManageRightClickFeatures_ShieldRaise(bool theGeneralCheck)
List< int > _projectilesToInteractWith
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
bool tileInteractionHappened