Code: Select all
	if typ == "use" then
		who:useEnergy(game.energy_to_act * (inven.use_speed or 1))
		if self.use_sound then game:playSoundNear(who, self.use_sound) end
		return self:useObject(who, inven, item)
	endCode: Select all
	if typ == "use" then
		self:useObject(who, inven, item)
		if self.use_sound then game:playSoundNear(who, self.use_sound) end
		return who:useEnergy(game.energy_to_act * (inven.use_speed or 1))
	end