29 if (nameOverride !=
null)
46 return text +
" (" + text2 +
")";
216 int num = this.
netID;
1034 int num = this.
type;
1059 int num = this.
alpha;
1144 int num = this.
type;
1185 byte liquid = tile.
liquid;
1257 int num = this.
stack;
1327 int num = this.
type;
1361 int num = this.
type;
1370 int num = this.
type;
1390 int num = this.
stack;
1449 int num = this.
type;
1476 int num = this.
stack;
1570 int num = this.
type;
1632 public static int NewItem(
IEntitySource source,
int X,
int Y,
int Width,
int Height,
int Type,
int Stack = 1,
bool noBroadcast =
false,
int pfix = 0,
bool noGrabDelay =
false,
bool reverseLookup =
false)
1710 if (
base.MemberwiseClone() !=
null)
1719 int num = this.
netID;
1761 if (
base.MemberwiseClone() !=
null)
1797 int num = this.
netID;
1823 int num = this.
type;
1837 if (
item.shopCustomPrice !=
null)
1858 int num = this.
netID;
1870 int num = this.
type;
1880 int num = this.
type;
1899 int num = this.
type;
2403 [Old(
"This is used to allow items to be discerned as vanity even if they didn't have visual slots to poll against")]
class f__AnonymousType0<< Count > j__TPar
static ItemVariant SelectVariant(int itemId)
static bool IsItemTransformLocked(int type)
static int GetDecraftingRecipeIndex(int type)
static bool IsCustomCurrency(Item item)
int timeSinceTheItemHasBeenReservedForSomeone
void DefaultToPlaceableTile(ushort tileIDToPlace, int tileStyleToPlace=0)
void FindOwner(int whoAmI, bool ignoreDistance=true)
static void ShimmerEffect(Vector2 shimmerPositon)
bool IsNotTheSameAs(Item compareItem)
static int buyPrice(int platinum=0, int gold=0, int silver=0, int copper=0)
Item clientClone(Item cloneDestination)
static bool IsAGolfingItem(Item item)
static int numberOfNewItems
void DefaultTokite(int projId)
Color GetColor(Color newColor)
void CheckLavaDeath(int i)
void DespawnIfMeetingConditions(int i)
void MoveInWorld(float gravity, float maxFallSpeed, Vector2 wetVelocity, int i)
void SetDefaults2(int type)
void SetDefaults3(int type)
void SetDefaults(int Type, bool noMatCheck=false, [Optional] ItemVariant variant)
static void StartCachingType(int t)
void netDefaults(int type)
static readonly int dungeonPrice
void ResetStats(int Type)
const int treasureGrabRange
static int PickAnItemSlotToSpawnItemOn(bool reverseLookup, int nextItem)
void DefaultToMagicWeapon(int projType, int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
void OnPurchase(Item item)
bool CanRollPrefix(int prefix)
void DefaultToRangedWeapon(int baseProjType, int ammoID, int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
static int BannerToItem(int banner)
const int luckPotionDuration2
bool Prefix(int prefixWeWant)
bool IsTheSameAs(Item compareItem)
static int[] cachedItemSpawnsByType
int GetShimmerEquivalentType()
bool CanCombineStackInWorld()
void DefaultToHeadgear(int newwidth, int newheight, int helmetArtID)
static bool MechSpawn(float x, float y, int type)
void SetWeaponValues(int dmg, float knockback, int bonusCritChance=0)
void DefaultToCapturedCritter(short npcIdToSpawnOnUse)
ItemVariant< Variant > k__BackingField
void DefaultToPlaceableWall(ushort wallToPlace)
FlexibleTileWand GetFlexibleTileWand()
static readonly int queenBeePrice
void DefaultToStaff(int projType, float pushForwardSpeed, int singleShotTime, int manaPerShot)
void TryCombiningIntoNearbyItems(int i)
static void DropCache(IEntitySource reason, Vector2 pos, Vector2 spread, int t, bool stopCaching=true)
void DefaultToWhip(int projectileId, int dmg, float kb, float shootspeed, int animationTotalTime=30)
static int sellPrice(int platinum=0, int gold=0, int silver=0, int copper=0)
IEntitySource GetNPCSource_FromThis()
static int restorationDelay
void OnCreated(ItemCreationContext context)
static int CommonMaxStack
void DefaultToQuestFish()
static int NewItem(IEntitySource source, Vector2 pos, int Width, int Height, int Type, int Stack=1, bool noBroadcast=false, int prefixGiven=0, bool noGrabDelay=false, bool reverseLookup=false)
void DefaultToHealingPotion(int newwidth, int newheight, int healingAmount, int animationTime=17)
int[] GetRollablePrefixes()
static int NPCtoBanner(int i)
void DefaultToAccessory(int newwidth=24, int newheight=24)
void DefaultToTorch(int tileStyleToPlace, bool allowWaterPlacement=false)
static int NewItem(IEntitySource source, int X, int Y, int Width, int Height, int Type, int Stack=1, bool noBroadcast=false, int pfix=0, bool noGrabDelay=false, bool reverseLookup=false)
Color GetAlpha(Color newColor)
bool canBePlacedInVanityRegardlessOfConditions
void Serialize(BinaryWriter writer, ItemSerializationContext context)
void SetFoodDefaults(int type)
void DefaultToSpear(int projType, float pushForwardSpeed, int animationTime)
static int NewItem(int X, int Y, int Width, int Height, int Type, int Stack=1, bool noBroadcast=false, int pfix=0, bool noGrabDelay=false, bool reverseLookup=false)
bool TryGetPrefixStatMultipliersForItem(int rolledPrefix, [Out] float dmg, [Out] float kb, [Out] float spd, [Out] float size, [Out] float shtspd, [Out] float mcst, [Out] int crt)
int playerIndexTheItemIsReservedFor
void ChangeItemType(int to)
bool chlorophyteExtractinatorConsumable
void DefaultToPlaceableTile(int tileIDToPlace, int tileStyleToPlace=0)
void DefaultToGuitar(int newwidth=24, int newheight=24)
void DefaultToMount(int mount)
bool FitsAccessoryVanitySlot
int timeLeftInWhichTheItemCannotBeTakenByEnemies
static readonly int eclipseMothronPrice
void SetShopValues(ItemRarityColor rarity, int coinValue)
static int NewItem(Vector2 pos, Vector2 randomBox, int Type, int Stack=1, bool noBroadcast=false, int prefixGiven=0, bool noGrabDelay=false, bool reverseLookup=false)
static readonly int shadowOrbPrice
void DefaultToThrownWeapon(int baseProjType, int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
Color GetAlphaFaded(Color newColor)
const int WALL_PLACEMENT_USETIME
bool RollAPrefix(UnifiedRandom random, int rolledPrefix)
const int goldCritterRarityColor
void CombineWithNearbyItems(int myItemIndex)
static readonly int hellPrice
void DefaultToBow(int singleShotTime, float shotVelocity, bool hasAutoReuse=false)
IEntitySource GetItemSource_Misc(int itemSourceId)
void DefaultToMusicBox(int style)
bool CanFillEmptyAmmoSlot()
const int luckPotionDuration1
void Refresh(bool onlyIfVariantChanged=true)
void GetPickedUpByMonsters_Special(int i)
const int luckPotionDuration3
static readonly int eclipsePostPlanteraPrice
void MakeUsableWithChlorophyteExtractinator()
void DefaultToGolfClub(int newwidth, int newheight)
void TurnToAir(bool fullReset=false)
override string ToString()
void UpdateItem_VisualEffects()
static Rectangle GetDrawHitbox(int type, Player user)
static readonly int eclipsePrice
void DeserializeFrom(BinaryReader reader, ItemSerializationContext context)
void DefaultToSolution(int projectileId)
void DefaultToVanitypet(int projId, int buffID)
void SetDefaults4(int type)
void SetDefaults(int Type=0)
void DefaultToLawnMower(int newwidth, int newheight)
bool CanApplyPrefix(int prefix)
static int NewItem(IEntitySource source, Vector2 pos, Vector2 randomBox, int Type, int Stack=1, bool noBroadcast=false, int prefixGiven=0, bool noGrabDelay=false, bool reverseLookup=false)
void SetDefaults5(int type)
bool IsAPrefixableAccessory()
void SetDefaults1(int type)
void SetNameOverride(string name)
void DefaultToFood(int newwidth, int newheight, int foodbuff, int foodbuffduration, bool useGulpSound=false, int animationTime=17)
LegacySoundStyle UseSound
static int BannerToNPC(int i)
void GetPickedUpByMonsters_Money(int i)
void DefaultToGolfBall(int projid)
static string GetItemNameValue(int id)
static ItemTooltip GetTooltip(int itemId)
static bool NetClientOnly
static bool InWorld(int x, int y, int fluff=0)
void Intersects(Rectangle value, [Out] bool result)