Hacker News new | ask | show | jobs
by shultays 214 days ago
Or more generalized "ammo += (maxAmmo * percentageToFill) / 100"