The bonus scene is based on hidden affection points, you can follow the ending guide if you don't want to use trial and error