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

◆ ApplyEquipVanity() [2/2]

void Terraria.Player.ApplyEquipVanity ( Item currentItem)
inline

Definition at line 12134 of file Player.cs.

12135 {
12136 int type = currentItem.type;
12137 if (currentItem.wingSlot > 0)
12138 {
12139 wings = currentItem.wingSlot;
12140 }
12141 if (type == 861 || type == 3110 || type == 485)
12142 {
12143 hideWolf = false;
12144 forceWerewolf = true;
12145 }
12146 switch (type)
12147 {
12148 case 5452:
12149 remoteVisionForDrone = true;
12150 break;
12151 case 3538:
12153 break;
12154 case 3537:
12155 nebulaMonolithShader = true;
12156 break;
12157 case 3536:
12158 vortexMonolithShader = true;
12159 break;
12160 case 3539:
12161 solarMonolithShader = true;
12162 break;
12163 case 4318:
12165 break;
12166 case 4054:
12168 break;
12169 case 5345:
12170 CanSeeInvisibleBlocks = true;
12171 break;
12172 case 5347:
12173 shimmerMonolithShader = true;
12174 break;
12175 }
12176 if (type == 5113)
12177 {
12179 }
12180 if (((wet && !lavaWet && (!mount.Active || !mount.IsConsideredASlimeMount)) || !forceWerewolf) && (type == 861 || type == 3110 || type == 497))
12181 {
12182 hideMerman = false;
12183 forceMerman = true;
12184 }
12185 if ((!mount.Active || mount.Type != 47) && (type == 4822 || type == 4874))
12186 {
12188 }
12189 if (Main.myPlayer == whoAmI)
12190 {
12192 }
12196 }
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
Definition Entity.cs:57
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
static void UpdateVanity(Item item, Player player)
Hook at the end of Player.ApplyEquipVanity can be called to apply additional code related to accessor...
This serves as the central class from which item-related functions are carried out....
Definition ItemLoader.cs:26
bool IsConsideredASlimeMount
Definition Mount.cs:474
bool Active
Definition Mount.cs:348
bool bloodMoonMonolithShader
Definition Player.cs:2235
bool remoteVisionForDrone
Definition Player.cs:2569
bool forceWerewolf
Definition Player.cs:2535
bool vortexMonolithShader
Definition Player.cs:2229
void UpdateBootVisualEffects(Item item)
Definition Player.cs:35693
bool stardustMonolithShader
Definition Player.cs:2225
bool nebulaMonolithShader
Definition Player.cs:2227
bool solarMonolithShader
Definition Player.cs:2231
void UpdateFishingBobber(Item item)
Definition Player.cs:35662
bool moonLordMonolithShader
Definition Player.cs:2233
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
void ApplyMusicBox(Item currentItem)
Definition Player.cs:13680
bool CanSeeInvisibleBlocks
Definition Player.cs:2913
bool dontStarveShader
Definition Player.cs:2209
void DoBootsEffect(Utils.TileActionAttempt theEffectMethod)
Definition Player.cs:12006
bool DoBootsEffect_PlaceFlamesOnTile(int X, int Y)
Definition Player.cs:12017
bool shimmerMonolithShader
Definition Player.cs:2237

References Terraria.Mount.Active, Terraria.Player.ApplyMusicBox(), Terraria.Player.bloodMoonMonolithShader, Terraria.Player.CanSeeInvisibleBlocks, Terraria.Player.DoBootsEffect(), Terraria.Player.DoBootsEffect_PlaceFlamesOnTile(), Terraria.Player.dontStarveShader, Terraria.Player.forceMerman, Terraria.Player.forceWerewolf, Terraria.Player.hideMerman, Terraria.Player.hideWolf, Terraria.Mount.IsConsideredASlimeMount, Terraria.Entity.lavaWet, Terraria.Player.moonLordMonolithShader, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Player.nebulaMonolithShader, Terraria.Player.remoteVisionForDrone, Terraria.Player.shimmerMonolithShader, Terraria.Player.solarMonolithShader, Terraria.Player.stardustMonolithShader, Terraria.Mount.Type, Terraria.Player.UpdateBootVisualEffects(), Terraria.Player.UpdateFishingBobber(), Terraria.ModLoader.ItemLoader.UpdateVanity(), Terraria.Player.vortexMonolithShader, Terraria.Entity.wet, Terraria.Entity.whoAmI, and Terraria.Player.wings.

+ Here is the call graph for this function: