mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
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:
committed by
Blake Grotewold
parent
7fd474d3c0
commit
fb13f6e808
+5
-5
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user