|
IEntitySource | GetNPCSource_FromThis () |
|
IEntitySource | GetItemSource_Misc (int itemSourceId) |
|
override string | ToString () |
|
bool | Prefix (int prefixWeWant) |
|
bool | CanRollPrefix (int prefix) |
|
bool | CanApplyPrefix (int prefix) |
|
int[] | GetRollablePrefixes () |
|
bool | IsAPrefixableAccessory () |
|
string | AffixName () |
|
void | RebuildTooltip () |
|
Rectangle | getRect () |
|
bool | checkMat () |
|
void | netDefaults (int type) |
|
bool | FitsAmmoSlot () |
|
bool | CanFillEmptyAmmoSlot () |
|
void | SetDefaults1 (int type) |
|
void | SetDefaults2 (int type) |
|
void | SetDefaults3 (int type) |
|
void | DefaultToQuestFish () |
|
void | SetDefaults4 (int type) |
|
void | DefaultToGolfBall (int projid) |
|
void | SetDefaults5 (int type) |
|
void | DefaultToSolution (int projectileId) |
|
void | DefaultToWhip (int projectileId, int dmg, float kb, float shootspeed, int animationTotalTime=30) |
|
void | DefaultTokite (int projId) |
|
void | ChangeItemType (int to) |
|
void | DefaultToVanitypet (int projId, int buffID) |
|
void | DefaultToCapturedCritter (short npcIdToSpawnOnUse) |
|
void | DefaultToStaff (int projType, float pushForwardSpeed, int singleShotTime, int manaPerShot) |
|
void | DefaultToSpear (int projType, float pushForwardSpeed, int animationTime) |
|
void | DefaultToMount (int mount) |
|
void | DefaultToPlaceableWall (ushort wallToPlace) |
|
void | SetWeaponValues (int dmg, float knockback, int bonusCritChance=0) |
|
void | DefaultToBow (int singleShotTime, float shotVelocity, bool hasAutoReuse=false) |
|
void | DefaultToMagicWeapon (int projType, int singleShotTime, float shotVelocity, bool hasAutoReuse=false) |
|
void | DefaultToRangedWeapon (int baseProjType, int ammoID, int singleShotTime, float shotVelocity, bool hasAutoReuse=false) |
|
void | DefaultToThrownWeapon (int baseProjType, int singleShotTime, float shotVelocity, bool hasAutoReuse=false) |
|
void | DefaultToPlaceableTile (int tileIDToPlace, int tileStyleToPlace=0) |
|
void | DefaultToPlaceableTile (ushort tileIDToPlace, int tileStyleToPlace=0) |
|
void | MakeUsableWithChlorophyteExtractinator () |
|
void | DefaultToGolfClub (int newwidth, int newheight) |
|
void | DefaultToLawnMower (int newwidth, int newheight) |
|
void | DefaultToFood (int newwidth, int newheight, int foodbuff, int foodbuffduration, bool useGulpSound=false, int animationTime=17) |
|
void | DefaultToHealingPotion (int newwidth, int newheight, int healingAmount, int animationTime=17) |
|
void | SetShopValues (ItemRarityColor rarity, int coinValue) |
|
void | DefaultToHeadgear (int newwidth, int newheight, int helmetArtID) |
|
void | DefaultToAccessory (int newwidth=24, int newheight=24) |
|
void | DefaultToGuitar (int newwidth=24, int newheight=24) |
|
void | DefaultToMusicBox (int style) |
|
void | SetDefaults (int Type=0) |
|
void | SetDefaults (int Type, bool noMatCheck=false, ItemVariant variant=null) |
|
void | OnCreated (ItemCreationContext context) |
|
void | ResetStats (int Type) |
|
Color | GetAlpha (Color newColor) |
|
Color | GetColor (Color newColor) |
|
bool | CanShimmer () |
|
void | FixAgainstExploit () |
|
void | UpdateItem (int i) |
|
void | TryCombiningIntoNearbyItems (int i) |
|
FlexibleTileWand | GetFlexibleTileWand () |
|
bool | CanCombineStackInWorld () |
|
void | FindOwner (int whoAmI) |
|
Item | Clone () |
|
Item | DeepClone () |
|
bool | IsTheSameAs (Item compareItem) |
|
bool | IsNotTheSameAs (Item compareItem) |
|
void | SetNameOverride (string name) |
|
void | ClearNameOverride () |
|
void | TurnToAir (bool fullReset=false) |
|
void | OnPurchase (Item item) |
|
int | GetStoreValue () |
|
void | Serialize (BinaryWriter writer, ItemSerializationContext context) |
|
void | DeserializeFrom (BinaryReader reader, ItemSerializationContext context) |
|
void | ResetPrefix () |
|
void | Refresh (bool onlyIfVariantChanged=true) |
|
float | AngleTo (Vector2 Destination) |
|
float | AngleFrom (Vector2 Source) |
|
float | Distance (Vector2 Other) |
|
float | DistanceSQ (Vector2 Other) |
|
Vector2 | DirectionTo (Vector2 Destination) |
|
Vector2 | DirectionFrom (Vector2 Source) |
|
bool | WithinRange (Vector2 Target, float MaxRange) |
|
|
static void | StartCachingType (int t) |
|
static void | DropCache (IEntitySource reason, Vector2 pos, Vector2 spread, int t, bool stopCaching=true) |
|
static int | BannerToItem (int banner) |
|
static int | NPCtoBanner (int i) |
|
static int | BannerToNPC (int i) |
|
static bool | IsAGolfingItem (Item item) |
|
static bool | MechSpawn (float x, float y, int type) |
|
static int | buyPrice (int platinum=0, int gold=0, int silver=0, int copper=0) |
|
static int | sellPrice (int platinum=0, int gold=0, int silver=0, int copper=0) |
|
static void | ShimmerEffect (Vector2 shimmerPositon) |
|
static Rectangle | GetDrawHitbox (int type, Player user) |
|
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) |
|
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) |
|
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) |
|
Definition at line 21 of file Item.cs.