def __init__(self, section, progress, preBattleCond): self.__preBattleCond = weakref.proxy(preBattleCond) super(BonusConditions, self).__init__(section, rootName="bonusBattle") dictSec = dict(section) self._isDaily = conditions._getNodeValue(dictSec, "daily", False) self._bonusLimit = conditions._getNodeValue(dictSec, "bonusLimit") self._groupBy = None if "groupBy" in dictSec: self._groupBy = conditions._getNodeValue(dict(dictSec["groupBy"]), "groupName") self._inRow = conditions._getNodeValue(dictSec, "inrow", False) self._progress = progress
def __init__(self, section, progress, preBattleCond): self.__preBattleCond = weakref.proxy(preBattleCond) super(BonusConditions, self).__init__(section, rootName='bonusBattle') dictSec = dict(section) self._isDaily = conditions._getNodeValue(dictSec, 'daily', False) self._bonusLimit = conditions._getNodeValue(dictSec, 'bonusLimit') self._groupBy = None if 'groupBy' in dictSec: self._groupBy = conditions._getNodeValue(dict(dictSec['groupBy']), 'groupName') self._inRow = conditions._getNodeValue(dictSec, 'inrow', False) self._progress = progress return
def __init__(self, section, progress, preBattleCond): self.__preBattleCond = weakref.proxy(preBattleCond) super(BonusConditions, self).__init__(section, rootName='bonusBattle') dictSec = dict(section) self._isDaily = conditions._getNodeValue(dictSec, 'daily', False) self._bonusLimit = conditions._getNodeValue(dictSec, 'bonusLimit') self._groupBy = None if 'groupBy' in dictSec: self._groupBy = conditions._getNodeValue(dict(dictSec['groupBy']), 'groupName') self._inRow = conditions._getNodeValue(dictSec, 'inrow', False) self._progress = progress