sc2simulator/setup/treeSelection.py
def confirmSelection(unit):
        """apply this unit's properties against rule accumulations"""
        rules.mineral -= unit.cost.mineral
        rules.vespene -= unit.cost.vespene
        rules.supply  += unit.cost.supply
        rules.maxdps  -= unit.dps
        rules.maxhp   -= unit.healthMax
        return unit
apply this unit's properties against rule accumulations
apply this unit's properties against rule accumulations
apply this unit ' s properties against rule accumulations
def confirmSelection(unit):
        rules.mineral -= unit.cost.mineral
        rules.vespene -= unit.cost.vespene
        rules.supply  += unit.cost.supply
        rules.maxdps  -= unit.dps
        rules.maxhp   -= unit.healthMax
        return unit
def confirmSelection ( unit ) : rules . mineral -= unit . cost . mineral rules . vespene -= unit . cost . vespene rules . supply += unit . cost . supply rules . maxdps -= unit . dps rules . maxhp -= unit . healthMax return unit
apply this unit's properties against rule accumulations
apply this unit ' s properties against rule accumulations
"""apply this unit's properties against rule accumulations"""
unit