def __init__(self):
        print 'ScenarioHandler instantiated'

        if utils.getD100() < 50:
            self.currentScenario = self.BASELINE_SCENARIO
            print 'This game is baseline'
        else:
            self.currentScenario = self.DDA_SCENARIO
            print 'This game has DDA'
Example #2
0
    def __init__(self):
        print 'ScenarioHandler instantiated'

        if utils.getD100() < 50:
            self.currentScenario = self.BASELINE_SCENARIO
            print 'This game is baseline'
        else:
            self.currentScenario = self.DDA_SCENARIO
            print 'This game has DDA'
Example #3
0
    def handleHealthGlobe(self):
        global dropChanceFactor
        global dropChance
        global maxDropChance

        # if we drop, create health goblet
        chance = dropChanceFactor + dropChance
        if self._scenarioHandlerRef.getHasDDA():
            chance *= self._ddaHandlerRef.healthGobletModifier

        if utils.getD100() <= chance:
            HealthGoblet(self._mainRef, self)
            print 'dropping health goblet'
        # Otherwise, increase dropChance
        else:
            if dropChance + dropChanceFactor <= maxDropChance:
                dropChance += dropChanceFactor
Example #4
0
    def handleHealthGlobe(self):
        global dropChanceFactor
        global dropChance
        global maxDropChance

        # if we drop, create health goblet
        chance = dropChanceFactor + dropChance
        if self._scenarioHandlerRef.getHasDDA():
            chance *= self._ddaHandlerRef.healthGobletModifier

        if utils.getD100() <= chance:
            HealthGoblet(self._mainRef, self)
            print 'dropping health goblet'
        # Otherwise, increase dropChance
        else:
            if dropChance+dropChanceFactor <= maxDropChance:
                dropChance += dropChanceFactor