コード例 #1
0
ファイル: _base.py プロジェクト: njanke96/Source.Python
 def is_weapon_restricted(self, weapon):
     """Return whether the player is restricted from the given weapon.
     :param str weapon: The name of the weapon to check against restriction.
     :rtype: bool
     """
     from weapons.restrictions import weapon_restriction_manager
     return weapon_restriction_manager.is_player_restricted(self, weapon)
コード例 #2
0
ファイル: _base.py プロジェクト: KirillMysnik/Source.Python
 def is_weapon_restricted(self, weapon):
     """Return whether the player is restricted from the given weapon.
     :param str weapon: The name of the weapon to check against restriction.
     :rtype: bool
     """
     from weapons.restrictions import weapon_restriction_manager
     return weapon_restriction_manager.is_player_restricted(self, weapon)