Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Events will be sent when the boss is damaged or killed.
- // Please use event listeners to run functions.
- document.addEventListener('bossDamaged', function(obj) {
- // obj.detail will contain information about the boss and a
- // custom message
- console.log(obj.detail);
- });
- // Similarly for for when a boss is killed
- document.addEventListener('bossKilled', function(obj) {
- console.log(obj.detail);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement