Okay, I'll bite. How would you do this better then? You have a base item class with a function for finding out if the player can eat it and you have a subclass of that item that always can be eaten no matter the circumstance. The easiest way is to override the method and force it to be true.
View all comments
Show parent comment
29
u/[deleted] Jan 15 '23
Okay, I'll bite. How would you do this better then? You have a base item class with a function for finding out if the player can eat it and you have a subclass of that item that always can be eaten no matter the circumstance. The easiest way is to override the method and force it to be true.