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.
This commit is contained in:
Andrea Rendine
2015-05-08 01:22:37 +02:00
committed by Blake Grotewold
parent 7fd474d3c0
commit fb13f6e808
+5 -5
View File
@@ -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) {