I was interesting in looking up how fast learner is implemented in code. But I have searched for a lot of things and still can only find a reference to the trait in the mutations.json file. Nothing in code. Where should I look?
The json says the id of the trait is “FASTLEARNER” - you always want to search for what is listed as id / ident in json. The name etc. are just strings that are displayed in the game. You also want to use the “search in all files” feature of your preferred editor/IDE and search all .cpp/.h files in the src directory.
There is one appearance of that id in player.cpp.