You have at least understood one part of your own question - royalties come out of "FUTURE" profits. If and when they occur. They are not a cost to the company today, and will be within the company's future EBIT.
Now think about the rest and re-read the Company's announcement on the deal terms, and then repeat.