public function setGettingUsedToForTime(Time $gettingUsedToFor)
    {
        $inRounds = $gettingUsedToFor->findRounds();
        if ($inRounds === null) {
            // it can not be expressed by rounds, so definitely get used to it - malus zeroed
            if ($this->isShined()) {
                $this->gettingUsedToForRounds = -$this->malus;
            } else { // if blinded than needs ten more time to get used to it
                $this->gettingUsedToForRounds = -$this->malus * 10;
            }

            return;
        }
        if ($this->isShined()) {
            if ($this->malus + $inRounds->getValue() > 0) { // more time than needed, malus is gone
                $this->gettingUsedToForRounds = -$this->malus; // zeroed malus in fact
            } else {
                $this->gettingUsedToForRounds = $inRounds->getValue(); // not enough to remove whole glare and malus

            }
        } else { // if blinded than needs ten more time to get used to it
            if ($this->malus + $inRounds->getValue() / 10 > 0) { // more time than needed, malus is gone
                $this->gettingUsedToForRounds = -$this->malus * 10; // zeroed malus in fact
            } else {
                $this->gettingUsedToForRounds = $inRounds->getValue(); // not enough to remove whole glare and malus
            }
        }
    }
public function setGettingUsedToForTime(Time $gettingUsedToFor)
    {
        $inRounds = $gettingUsedToFor->findRounds();
        if ($inRounds === null) {
            // it can not be expressed by rounds, so definitely get used to it - malus zeroed
            if ($this->isShined()) {
                $this->gettingUsedToForRounds = -$this->malus;
            } else { // if blinded than needs ten more time to get used to it
                $this->gettingUsedToForRounds = -$this->malus * 10;
            }

            return;
        }
        if ($this->isShined()) {
            if ($this->malus + $inRounds->getValue() > 0) { // more time than needed, malus is gone
                $this->gettingUsedToForRounds = -$this->malus; // zeroed malus in fact
            } else {
                $this->gettingUsedToForRounds = $inRounds->getValue(); // not enough to remove whole glare and malus

            }
        } else { // if blinded than needs ten more time to get used to it
            if ($this->malus + $inRounds->getValue() / 10 > 0) { // more time than needed, malus is gone
                $this->gettingUsedToForRounds = -$this->malus * 10; // zeroed malus in fact
            } else {
                $this->gettingUsedToForRounds = $inRounds->getValue(); // not enough to remove whole glare and malus
            }
        }
    }
public function setGettingUsedToForTime ( Time $ gettingUsedToFor ) { $ inRounds = $ gettingUsedToFor -> findRounds ( ) ; if ( $ inRounds === null ) { // it can not be expressed by rounds, so definitely get used to it - malus zeroed if ( $ this -> isShined ( ) ) { $ this -> gettingUsedToForRounds = - $ this -> malus ; } else { // if blinded than needs ten more time to get used to it $ this -> gettingUsedToForRounds = - $ this -> malus * 10 ; } return ; } if ( $ this -> isShined ( ) ) { if ( $ this -> malus + $ inRounds -> getValue ( ) > 0 ) { // more time than needed, malus is gone $ this -> gettingUsedToForRounds = - $ this -> malus ; // zeroed malus in fact } else { $ this -> gettingUsedToForRounds = $ inRounds -> getValue ( ) ; // not enough to remove whole glare and malus } } else { // if blinded than needs ten more time to get used to it if ( $ this -> malus + $ inRounds -> getValue ( ) / 10 > 0 ) { // more time than needed, malus is gone $ this -> gettingUsedToForRounds = - $ this -> malus * 10 ; // zeroed malus in fact } else { $ this -> gettingUsedToForRounds = $ inRounds -> getValue ( ) ; // not enough to remove whole glare and malus } } }
Total rounds of getting used to current contrast, which lowers glare and malus.

@param Time $gettingUsedToFor
Total rounds of getting used to current contrast which lowers glare and malus .