mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-27 14:52:29 +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;
|
Events.activeScene = name;
|
||||||
var scene = Events.activeEvent().scenes[name];
|
var scene = Events.activeEvent().scenes[name];
|
||||||
|
|
||||||
|
// Notify the scene change
|
||||||
|
if(scene.notification) {
|
||||||
|
Notifications.notify(null, scene.notification);
|
||||||
|
}
|
||||||
|
|
||||||
// Scene reward
|
// Scene reward
|
||||||
if(scene.reward) {
|
if(scene.reward) {
|
||||||
$SM.addM('stores', scene.reward);
|
$SM.addM('stores', scene.reward);
|
||||||
@@ -52,11 +57,6 @@ var Events = {
|
|||||||
scene.onLoad();
|
scene.onLoad();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify the scene change
|
|
||||||
if(scene.notification) {
|
|
||||||
Notifications.notify(null, scene.notification);
|
|
||||||
}
|
|
||||||
|
|
||||||
$('#description', Events.eventPanel()).empty();
|
$('#description', Events.eventPanel()).empty();
|
||||||
$('#buttons', Events.eventPanel()).empty();
|
$('#buttons', Events.eventPanel()).empty();
|
||||||
if(scene.combat) {
|
if(scene.combat) {
|
||||||
|
|||||||
Reference in New Issue
Block a user