Skip to content

Improved WeaponClass, WeaponID, WeaponType, and WeaponSlot for CS:GO/CS:S. #478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 19, 2025
Prev Previous commit
Next Next commit
Fixed a bug in WeaponClass.item_definition_index.
  • Loading branch information
CookStar committed Jun 10, 2023
commit 4bd787748c9a6cac6508dc71d3341a6802e88fd1
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def item_definition_index(self):
None if the item defition index data is missing.
:rtype: int
"""
return int(self._id)
return int(self._id) if self._id is not None else None

@property
def tags(self):
Expand Down