Update: CC - Before Render - Moorcow (a2ow5l92js.js) 185 bytes modified
parent
7b65240854
commit
865661bd99
|
@ -769,11 +769,21 @@ GameLib.Event.Emit(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//console.log('used : ' + Math.round(used * 100) + '%');
|
||||||
|
|
||||||
if (this.kanisterTime > this.kanisterLife) {
|
if (this.kanisterTime > this.kanisterLife) {
|
||||||
|
|
||||||
this.kanisterTime = 0;
|
this.kanisterTime = 0;
|
||||||
this.kanisters -= 1;
|
this.kanisters -= 1;
|
||||||
|
|
||||||
|
GameLib.Event.Emit(
|
||||||
|
GameLib.Event.GAME_DATA,
|
||||||
|
{
|
||||||
|
event : 'kanisterCountUpdate',
|
||||||
|
kanisters : this.kanisters
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
if (kanisters < 0) {
|
if (kanisters < 0) {
|
||||||
GameLib.Event.Emit(
|
GameLib.Event.Emit(
|
||||||
GameLib.Event.GAME_OVER,
|
GameLib.Event.GAME_OVER,
|
||||||
|
|
Loading…
Reference in New Issue