It's the easiest way to do something like this. If you are here to criticize then don't help.
my criticism could help, I said don't use a class for every task, which means you could think of something else, such as an enum. (Sorry for not saying to use an enum in the first place)The enum should contain data such as equipment requirements, their combat level, and their attack style (based on the attack style you could fight them using their weakness, e.g. Range beats Mage)