My while loop keeps on looping even though requirments were met for the loop to stop

So I’m making this random loadout generator for a game that I play to spice things up a bit.
You can type in the amount of money you have and it generates a loadout based on that.
I have this code:
if float(total_loadout_price) <= float(wealth):
in which it keeps generating loadouts until one costs less or the same as the amount of money that you have.
My issue is that it keeps generating loadouts infinitely even though it is supposed to break out of the loop after one that works is found.
The project code is located here: