I’m gonna buck the trend here and say “meh” to theory. I know music theory and I also write a lot of bass lines for original music BUT I never use the first to do the second. I just do what sounds right to me. I don’t even know what notes I’m using when I’m composing because I’m doing it all by ear. I wrote a line the other day and when we played the song a theory guru member of the band said “why are you using a B there?”. I said “it’s a B?” (I didn’t know at that point because I compose/play on an unlined fretless). The B is still there and it sounds great

. My point is: use your EARS. And don’t be afraid to TRY stuff. If you’ve listened to enough music in your life you already have a huge built-in archive of what sounds good. Trust that it’s there and that it WILL come out if you have the courage to experiment and make “mistakes”. Go you good thing!!
Music Theory has two main components: a) the science of sound, which is ultimately how the 12 notes have come to us today and how they interact, and b) the art of putting those sounds together.
If you are strictly a solo creator, perhaps you don’t need theory. I can even see where it might get in the way of free expression.
But if you are a collaborator, and especially if you’re a working pro, it’s a tool you need. I’ve seen plenty of folks who lack the tool struggle endlessly with harmonizing their melodies. Doesn’t mean you need attend Berklee; heck, such fantastic composers as Zappa have been self-taught. But if I’m a songwriter and looking for a collaborator, I’m going to seek someone who is familiar with the basics. And if I’m auditioning players for a working band, I absolutely want folks to whom I don’t need to explain chord substitutions.
“But what about ______ band? They did it all without theory.” Actually, you might be surprised. Take a
just a rock and roll band such as Aerosmith. Two of the five spent time in music school! Deep Purple? The band with the simplest riff in history? The guitarist took lessons for over a year from the best guitar player in England, and the keyboardist wrote classical-style concertos.
How about punk - new wave band The Cars? Their lead guitarist Eliot Easton actually attended Berklee! Think it’s a coincidence that they had such a string of hits in varied styles, while many of their contemporaries were one-dimensional (the Ramones)??
Back to the OP: the one thing I would say that can make your bass lines more interesting, without delving into theory, is
chromatic approach notes. There are solid theoretical reasons why these, particularly descending ones, tend to work. But you don’t really need to know why. Just try ‘em, and see what happens.