Ohhh, I read that as, for each card he discards, he gains an action card costing $0 or $1. So like, if I discard three cards, I would gain 3 Ruins, unless Poor House is available or Highway shenanigans. I guess you mean, I pick a numer X, then discard X cards and gain an action costing up to $X.