def determineRange(): commandRange = generic.rangeFactors.standard() commandRange['range'] = shapes.diamond(3, 1) commandRange['specialSpaces'] = shapes.single() generic.range.free(commandRange)
def determineRange(): commandRange = generic.rangeFactors.spear() commandRange['range'] = shapes.single() commandRange['aoe'] = shapes.ring(2) generic.range.free(commandRange)
def determineRange(): commandRange = generic.rangeFactors.standard() reach = generic.extentInfluence.polynomial(1, 1) commandRange['range'] = shapes.diamond(reach, 1) commandRange['specialSpaces'] = shapes.single() generic.range.free(commandRange)
def determineRange(): commandRange = generic.rangeFactors.standard() # Single space pushed X spaces away offset = [0, generic.extentInfluence.polynomial(0, 1)] commandRange['range'] = shapes.push(shapes.single(), offset) # Space beyond target commandRange['specialSpaces'] = [[0,1]] generic.range.rigid(commandRange)
def determineRange(): commandRange = generic.rangeFactors.sword() # Hit units in sightline from actor that are not adjacent (to actor) offset = [0, generic.extentInfluence.polynomial(0, 1)] commandRange['range'] = shapes.push(shapes.single(), offset) # Space to move to # TODO(kgeffen) Allow 'specialSpace' to be in same space as user if logic.globalDict['extent'] > 0: commandRange['specialSpaces'] = [[0,-1]] generic.range.rigid(commandRange)
def determineRange(): commandRange = generic.rangeFactors.standard() # How far from user center of aoe can be reach = extentInfluence.polynomial(2, 2) commandRange['range'] = shapes.diamond(reach, 1) # How large the meteor is length = generic.extentInfluence.polynomial(1, 1) commandRange['aoe'] = shapes.diamond(length, 1) # Center of diamond is where user moves to commandRange['specialSpaces'] = shapes.single() generic.range.free(commandRange)
def lightning(): return {'okDz' : {'max' : 10.0, 'min' : -10.0}, # {'max' : 10, 'min' : -10}, 'range' : shapes.diamond(2, 1), 'aoe' : shapes.single(), 'specialSpaces' : []}
def standard(): return {'okDz' : {'max' : 10.0, 'min' : -10.0}, # {'max' : 1.2, 'min' : -1.2}, 'range' : shapes.single(), 'aoe' : shapes.single(), 'specialSpaces' : []}
def bow(): return {'okDz' : {'max' : 10.0, 'min' : -10.0}, # {'max' : 1.2, 'min' : -1.2}, 'range' : shapes.diamond(5, 1), 'aoe' : shapes.single(), 'specialSpaces' : []}
def axe(): return {'okDz' : {'max' : 10.0, 'min' : -10.0}, # {'max' : 1.2, 'min' : -1.2}, 'range' : shapes.single(), 'aoe' : shapes.single(), 'specialSpaces' : [[0, -2]]}
def determineRange(): commandRange = generic.rangeFactors.standard() commandRange['specialSpaces'] = shapes.single() generic.range.rigid(commandRange)