Quote:
Originally Posted by Devil_Lord2
D: So why is .name added to it?
Does it make a difference for levels?
|
Well,
player.level is an object which represents the level, so
player.level.name gets the
name attribute of the level object. The
name attribute is
already a string, so it does not result in the object being coerced (the example I posted above shows why relying on object-to-string coercion is a really bad idea).