mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-29 00:31:53 +08:00
Check for delayed events
This triggers onload for all those events whose (possible) reward is registered with a time delay.
This commit is contained in:
committed by
Blake Grotewold
parent
cb717b41d0
commit
da0d39b579
@@ -725,6 +725,16 @@
|
||||
}
|
||||
},
|
||||
|
||||
setInterval: function(callback, interval, skipDouble){
|
||||
if( Engine.options.doubleTime && !skipDouble ){
|
||||
Engine.log('Double time, cutting interval in half');
|
||||
interval /= 2;
|
||||
}
|
||||
|
||||
return setInterval(callback, interval);
|
||||
|
||||
},
|
||||
|
||||
setTimeout: function(callback, timeout, skipDouble){
|
||||
|
||||
if( Engine.options.doubleTime && !skipDouble ){
|
||||
|
||||
Reference in New Issue
Block a user