Advertisement
Ragnifer

Untitled

Jan 27th, 2020
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. _loc1.showGaugeMode = function ()
  2. {
  3. if(this.api.datacenter.Game.isFight)
  4. {
  5. return;
  6. }
  7. var _loc2_ = this.api.kernel.OptionsManager.getOption("BannerGaugeMode");
  8. if(_loc2_ == "none")
  9. {
  10. this.setXtraFightMask(false);
  11. this._ccChrono.setGaugeChrono(0, undefined);
  12. if(this._sCurrentCircleXtra == "map") {
  13. this._mcXtra.setMask(this._mcCircleXtraMaskBig);
  14. }
  15. return;
  16. }
  17. this.setXtraFightMask(true);
  18. switch(_loc2_)
  19. {
  20. case "xp":
  21. {
  22. var _loc3_ = Math.floor((this.api.datacenter.Player.XP - this.api.datacenter.Player.XPlow) / (this.api.datacenter.Player.XPhigh - this.api.datacenter.Player.XPlow) * 100);
  23. var _loc4_ = 104615;
  24. break;
  25. }
  26. case "xpmount":
  27. {
  28. if(this.api.datacenter.Player.mount == undefined)
  29. {
  30. _loc3_ = 0;
  31. }
  32. else
  33. {
  34. _loc3_ = Math.floor((this.api.datacenter.Player.mount.xp - this.api.datacenter.Player.mount.xpMin) / (this.api.datacenter.Player.mount.xpMax - this.api.datacenter.Player.mount.xpMin) * 100);
  35. }
  36. _loc4_ = 10441125;
  37. break;
  38. }
  39. case "pods":
  40. {
  41. _loc3_ = Math.floor(this.api.datacenter.Player.currentWeight / this.api.datacenter.Player.maxWeight * 100);
  42. _loc4_ = 6340148;
  43. break;
  44. }
  45. case "energy":
  46. {
  47. if(this.api.datacenter.Player.EnergyMax == -1)
  48. {
  49. _loc3_ = 0;
  50. }
  51. else
  52. {
  53. _loc3_ = Math.floor(this.api.datacenter.Player.Energy / this.api.datacenter.Player.EnergyMax * 100);
  54. }
  55. _loc4_ = 10944769;
  56. break;
  57. }
  58. }
  59. if(!_global.isNaN(_loc4_))
  60. {
  61. if(_global.isNaN(_loc3_))
  62. {
  63. _loc3_ = 0;
  64. }
  65. this._ccChrono.setGaugeChrono(_loc3_, _loc4_);
  66. }
  67. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement