--[[
    Increments specified value by amount. Using negative numbers will cause the value to decrease - however, there
    is a floor of 0. If a maxAmount is specified, the value will increment up to the maxAmount, but not over.
]]

function BaseValueStore:incrementValue(name, amount)
	local valueData = self._data[name]

	if valueData then
		valueData.value = optionalClamp(valueData.value, valueData.min, valueData.max)

		self._changedBindable:Fire(name, newValue)
	end
end
