mutate($user, $villageId, function (Simulation $sim, Village $village, CarbonImmutable $now) use ($buildingId, $unit, $count) { Military::of($village, $sim)->recruit($this->building($village, $buildingId), $unit, $count, $now); Quests::bump($village->player_id, "recruited.$unit", $count); }); } }