(A) Partner’s merit and need altered generosity in the altruism task. High (vs. low) need contexts elicited more generosity (p < 0.001). Compared to a low merit partner (circle), generosity was enhanced towards a high merit (diamond, p < 0.001) and an unknown merit partner (triangle, p < 0.001). (B) Condition-specific attribute weights (wself, wother, wfairness) for low, unknown, and high merit partner contexts. (C) Condition-specific attribute weights for low and high need contexts. All p’s ≤ 0.01, FDR corrected, for the six pair-wise comparisons of changes in attribute weights (high vs. low merit/need). Dots represent participant-specific estimates from the computational model of altruistic choice (see Supplemental Note S3 for detail); black lines illustrate the estimated means and 95% confidence intervals.