flackr / dungeon

A D&D based multiplayer role playing game.
13 stars 4 forks source link

Attack messages in game log should include character name. #5

Closed flackr closed 12 years ago

flackr commented 12 years ago

Summary

The attack messages in the game log should include the character names. I.e.

Luna hit Orc for 8 hit points!

Implementation

The attackResult function in dungeon-client.js constructs attack related log messages when computing the attack result. The message names should be available in the character's name attribute.

kellis commented 12 years ago

The game logs now indicate who attacked whom and with what power. Damage and misses are shown in both the game log and banner message.

Luna Hartfavor attacks Young Green Dragon with Storm of Spirit Shards.

Rolling attack...

Luna Hartfavor hits Young Green Dragon for 15 damage.

The final log message also appears as a banner message.