Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show messages when pet is captured or released
When using a pet carrier to capture or release a pet, it was not displaying any kind of success message in the log. Now you will get i.e. "You capture the cat in your pet carrier." "You release the cat." Following the example of similar log messages in these functions, I added one message for successful capture, and one for successful release. This commit was going to be a simple two-line addition, but I discovered that `release_monster` was deleting the name of the contained animal as part of releaseing it, thus I got an empty string when trying to log it. The solution, setting a local `contained_name` variable to remember the animal name, had a nice side-effect of making several other lines a little cleaner and more readable after slight refactoring, so I am including that too.
- Loading branch information