I have some fruits here, which are class objects. They shall appear as “a fruit” if it’s just one and “some fruits” if there’s several of them*. The class object also has a “known” flag according to which the printed name shall differ. While the plural objects are listed properly in the inventory, I have problems with the singular.
short_name [;
if(self.known==0)
print "fruit";
else
print "pokenoboy fruit";
],
results in “a fruitFruitclass_5”. Why is that, and what can I do about it?
Thanks!
- I know that’s not proper English.