I don't understand how this shows $q$ is true.
I understand we assume $q$ is false. Then in order for $p\to q$ to be true, $p$ must also be false.
Then, in order for $(\lnot p) \to r $ to be true, $r$ must be true because $p$ is already false, so negating it would have it be true; thus $r$ must be true.
But I don't understand the last one.
$ r \to (p \lor q)$, we know $r$ is true, but what about $p \lor q$?

What about $p\lor q$?
Since $q$ is false (by assumption) and $p$ is false (since $p\implies q$ and $q$ is false), $p\lor q$ is false.
And if $r$ is true (as you acknowledged) but $p\lor q$ is false, then $r\implies(p\lor q)$ is false.