Пример #1
0
 def __getInvisibilityValues(self):
     camouflageFactor = self.__factors.get('camouflage', 1)
     moving, still = getClientInvisibility(self._itemDescr, camouflageFactor, self.__factors)
     moving *= ONE_HUNDRED_PERCENTS
     still *= ONE_HUNDRED_PERCENTS
     movingAtShot = moving * self.invisibilityFactorAtShot
     stillAtShot = still * self.invisibilityFactorAtShot
     return (_Invisibility(moving, movingAtShot), _Invisibility(still, stillAtShot))
 def __getInvisibilityValues(self, itemDescription):
     camouflageFactor = self.__factors.get('camouflage', 1)
     moving, still = items_utils.getClientInvisibility(itemDescription, self.__vehicle, camouflageFactor, self.__factors)
     moving *= ONE_HUNDRED_PERCENTS
     still *= ONE_HUNDRED_PERCENTS
     movingAtShot = moving * self.invisibilityFactorAtShot
     stillAtShot = still * self.invisibilityFactorAtShot
     return (_Invisibility(moving, movingAtShot), _Invisibility(still, stillAtShot))