def onUnitPillage(self, argsList): unit, iImprovement, iRoute, iPlayer, iGold = argsList iUnit = unit.getUnitType() if (iPlayer == iVikings or iPlayer == iMoors ) and iGold > 0 and iImprovement != -1 and iGold < 1000: vic.onUnitPillage(iPlayer, iGold, iUnit)
def onUnitPillage(self, argsList): unit, iImprovement, iRoute, iPlayer, iGold = argsList iUnit = unit.getUnitType() if iImprovement >= 0: vic.onUnitPillage(iPlayer, iGold, iUnit)
def onUnitPillage(self, argsList): unit, iImprovement, iRoute, iPlayer, iGold = argsList iUnit = unit.getUnitType() if (iPlayer == iVikings or iPlayer == iMoors) and iGold > 0 and iImprovement != -1 and iGold < 1000: vic.onUnitPillage(iPlayer, iGold, iUnit)
def onUnitPillage(self, argsList): unit, iImprovement, iRoute, iPlayer, iGold = argsList if iPlayer == con.iVikings and iGold > 0 and iImprovement != -1 and iGold < 1000: vic.onUnitPillage(iPlayer, iGold)