Update: CC - Before Render - Moorcow (a2ow5l92js.js) 17 bytes modified

beta.r3js.org
-=yb4f310 2017-11-24 15:28:28 +01:00
parent 4a59c1d2c3
commit 7b65240854
1 changed files with 5 additions and 2 deletions

View File

@ -757,12 +757,15 @@ else
this.throwerLight.updateInstance('intensity');
}
var used = this.kanisterTime / this.kanisterLife;
GameLib.Event.Emit(
GameLib.Event.GAME_DATA,
{
used : this.kanisterTime / this.kanisterLife,
event : 'fuelUsed',
percentage : Math.round((this.kanisterTime / this.kanisterLife) * 100) + '%'
used : used,
percentage : Math.round(used * 100) + '%',
kanisters : this.kanisters
}
);