This time I caved in and bought a bar of chocolate, which by that point I convinced myself could be classified as a 'need' rather than a 'want'.
I / caved in . . .and . . . .(I)/ bought / bar.
(the remaining huge clause modifies "bar" because it describes what kind of bar.)