You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function, names is capitalized after joined together. If there are two entities there only first letter is capitalized.
It is better to capitalize then join them.
From: (Player remains of troll)
names = ", ".join(
entity.name for entity in game_map.entities if entity.x == x and entity.y == y
)
return names.capitalize()
To: (Player Remains of troll)
names = ", ".join(entity.name.capitalize() for entity in game_map.entities
if entity.x == x and entity.y == y)
return names
The text was updated successfully, but these errors were encountered:
In the function, names is capitalized after joined together. If there are two entities there only first letter is capitalized.
It is better to capitalize then join them.
From: (Player remains of troll)
To: (Player Remains of troll)
The text was updated successfully, but these errors were encountered: