From fb13f6e808e133b793d5f0e42ba514764f7071ca Mon Sep 17 00:00:00 2001 From: Andrea Rendine Date: Fri, 8 May 2015 01:22:37 +0200 Subject: [PATCH] Notification before reward Noticed when buying the compass. I found it weird that *first* the compass points and *then* it appears in good condition. Now event notification precedes event reward, and it should be corrected. --- script/events.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/events.js b/script/events.js index 3682470..170ac03 100644 --- a/script/events.js +++ b/script/events.js @@ -42,6 +42,11 @@ var Events = { Events.activeScene = name; var scene = Events.activeEvent().scenes[name]; + // Notify the scene change + if(scene.notification) { + Notifications.notify(null, scene.notification); + } + // Scene reward if(scene.reward) { $SM.addM('stores', scene.reward); @@ -52,11 +57,6 @@ var Events = { scene.onLoad(); } - // Notify the scene change - if(scene.notification) { - Notifications.notify(null, scene.notification); - } - $('#description', Events.eventPanel()).empty(); $('#buttons', Events.eventPanel()).empty(); if(scene.combat) {