Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)