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

◆ TryFindingPaintInplayerInventory()

static void Terraria.GameContent.SmartCursorHelper.TryFindingPaintInplayerInventory ( SmartCursorUsageInfo providedInfo,
out int paintLookup,
out int coatingLookup )
inlinestaticprivate

Definition at line 162 of file SmartCursorHelper.cs.

163 {
164 _ = providedInfo.player.inventory;
165 paintLookup = 0;
166 coatingLookup = 0;
167 if (providedInfo.item.type == 1071 || providedInfo.item.type == 1543 || providedInfo.item.type == 1072 || providedInfo.item.type == 1544)
168 {
169 Item item = providedInfo.player.FindPaintOrCoating();
170 if (item != null)
171 {
172 coatingLookup = item.paintCoating;
173 paintLookup = item.paint;
174 }
175 }
176 }

References Terraria.Item.paint, and Terraria.Item.paintCoating.

Referenced by Terraria.GameContent.SmartCursorHelper.SmartCursorLookup().

+ Here is the caller graph for this function: