def METHOD_NAME(self, projectile, value):
    """Set the player's ammo value for the given projectile.
    :param str projectile:
        The name of the projectile to set the ammo of.
    :param int value:
        The value to set the projectile's ammo to.
    """
    self.set_property_ushort(
        '{base}{prop:03d}'.format(
            base=weapon_manager.ammoprop,
            prop=weapon_manager[projectile].ammoprop,
        ),
        value,
    )