Skip to content

Commit

Permalink
Show default tint name
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Dec 30, 2024
1 parent f5fb765 commit 23a9299
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CS2Interface/GameData/GameObjects/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ protected override bool SetAdditionalProperties() {
ToolName = GameData.CsgoEnglish[ItemData.ItemDef["item_name"].Value?.Substring(1)];
}

// Set the graffiti color, ignore if tint_id is 0 (Multicolor)
if ((DefIndex == 1348 || DefIndex == 1349) && TintID != null && TintID != 0) {
// Set the graffiti color
if ((DefIndex == 1348 || DefIndex == 1349) && TintID != null) {
TintName = GameData.CsgoEnglish[String.Format("Attrib_SprayTintValue_{0}", TintID)];
}

Expand Down Expand Up @@ -208,7 +208,7 @@ protected override bool SetAdditionalProperties() {

if (PaintIndex == 0 && ItemData.StickerKitDef == null && ItemData.MusicDef == null && ItemData.KeychainDef == null) {
FullName = String.Format("{0} {1}", displayQualityName, ToolName ?? WeaponName ?? ItemName).Trim(); // Collectibles (Pins, Coins), Vanilla Knives
} else if (WearName != null || TintName != null) {
} else if (WearName != null || (TintName != null && TintID != 0)) {
FullName = String.Format("{0} {1} | {2} ({3})", displayQualityName, WeaponName ?? ToolName ?? TypeName, ItemName, WearName ?? TintName).Trim(); // Weapon Skins, Gloves, Graffiti
} else if (ItemName != null) {
FullName = String.Format("{0} {1} | {2}", displayQualityName, WeaponName ?? ToolName ?? TypeName, ItemName).Trim(); // Stickers
Expand Down

0 comments on commit 23a9299

Please sign in to comment.