“…Terminal investment reallocates resources from other somatic functions to current reproductive effort and should therefore rely heavily on the acquisition of dietary nutrients, their transformation into energy resources and the appropriate allocation of these resources to different life-history traits (Schwenke et al, 2016). Diet is known to affect both fecundity and immunity across a wide range of species (Jensen, McClure, Priest, & Hunt, 2015;Lee, Simpson, & Wilson, 2008;Maklakov et al, 2008;Rapkin et al, 2018;Schwenke et al, 2016), and protein in particular is a key resource for growth, development and reproduction (Mirth, Nogueira Alves, & Piper, 2019). Fruit flies (Drosophila melanogaster) produce more eggs on protein-rich diets, and these eggs are more likely to be viable (Drummond-Barbosa & Spradling, 2001;Lee et al, 2008;Lihoreau, Poissonnier, Isabel, & Dussutour, 2016;Mirth et al, 2019).…”