What should ammomax be decreasing by? I’m surprised curr. Ammo is changing at all as the middle branch in your code is effectively doing (ammomax - curr. Ammo) + curr. Ammo which if I’m right would just be setting curr. Ammo to be ammomax. If you give me specifics of how you want this to work I could help more.