if ($t->myChange('Bricks') < 0 || $t->myChange('Gems') < 0 || $t->myChange('Recruits') < 0) {
$t->myData()
->addBricks(-min(0, max(-6, $t->myChange('Bricks'))))
->addGems(-min(0, max(-6, $t->myChange('Gems'))))
->addRecruits(-min(0, max(-6, $t->myChange('Recruits'))));
}