davedotluebke / old-skool-text-game

Coding project used to learn Python
5 stars 4 forks source link

Players can attack inanimate objects #166

Closed 1Bayshore closed 2 years ago

1Bayshore commented 4 years ago

It is currently possible for players to attack inanimate objects. When they do, it raises a lot of errors and does not work. We should probably disallow this, however there may be some scenarios where it makes sense to swing sword at rope or hit tree with axe. Maybe we should have an attackable indicator and a when_attacked function for certain non-creatures?