Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Dec 30, 2024
1 parent 58794b9 commit 39c49f2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CS2Interface/CSClient/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ internal async Task<CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse> In
}
}

internal async Task<CMsgGCCStrike15_v2_PlayersProfile> RequestPlayerProfile(ulong steam_id) { //uint account_id) {
internal async Task<CMsgGCCStrike15_v2_PlayersProfile> RequestPlayerProfile(ulong steam_id) {
if (!HasGCSession) {
throw new ClientException(EClientExceptionType.Failed, Strings.ClientNotConnectedToGC);
}
Expand Down
2 changes: 1 addition & 1 deletion CS2Interface/GameData/GameObjects/Items/InspectItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ internal InspectItem(CMsgGCCStrike15_v2_Client2GCEconPreviewDataBlockResponse it
m = param_m.ToString();

DefIndex = ItemInfo.defindex;
PaintIndex = ItemInfo.paintindex;
PaintIndex = ItemInfo.paintindex;
StickerID = ItemInfo.stickers.FirstOrDefault()?.sticker_id;
TintID = ItemInfo.stickers.FirstOrDefault()?.tint_id;
KeychainID = ItemInfo.keychains.FirstOrDefault()?.sticker_id;
Expand Down
2 changes: 0 additions & 2 deletions CS2Interface/GameData/GameObjects/Items/InventoryItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Text.Json.Serialization;
using SteamKit2.GC.CSGO.Internal;
using Swashbuckle.AspNetCore.Annotations;

namespace CS2Interface {
public sealed class InventoryItem : Item {
Expand All @@ -21,7 +20,6 @@ public sealed class InventoryItem : Item {

[JsonInclude]
[JsonPropertyName("moveable")]
[SwaggerParameter(Description = "The S value from the item's inspect link (not needed if using the url parameter)")]
public bool? Moveable { get; private set; }

public bool ShouldSerializeAttributes() => Attributes != null && ShouldSerializeAdditionalProperties;
Expand Down
2 changes: 0 additions & 2 deletions CS2Interface/GameData/GameObjects/Items/Item.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,9 @@ protected override bool SetAdditionalProperties() {
}

{ // Set the full name and type
// bool displayQualityName = Quality != 4; // Hide "Unique" quality from item names and types
string? displayQualityName = Quality == 4 ? "" : QualityName; // Hide "Unique" quality from item names and types

FullTypeName = String.Format("{0} {1} {2}", displayQualityName, RarityName, TypeName).Trim();
// FullTypeName = String.Format(GameData.CsgoEnglish.Format("ItemTypeDescKillEater") ?? "{0} {1} {2}", displayQualityName, RarityName, TypeName).Trim();

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
Expand Down

0 comments on commit 39c49f2

Please sign in to comment.