Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 

33 wiersze
628 B

  1. define([
  2. 'items/config/slots'
  3. ], function(
  4. slots
  5. ) {
  6. return {
  7. slot: null,
  8. type: 'loot',
  9. build: function() {
  10. if (!this.slot) {
  11. var slotNames = slots.slots;
  12. this.slot = slotNames.filter(s => (s != 'tool'));
  13. this.slot = slotNames[~~(Math.random() * slotNames.length)];
  14. this.slotName = this.slot[0].toUpperCase() + this.slot.substr(1);
  15. }
  16. this.description = 'Loot 1x ' + this.slotName + ' slot item';
  17. return true;
  18. },
  19. events: {
  20. afterLootMobItem: function(item) {
  21. if ((this.obj.zoneName != this.zoneName) || (item.slot != this.slot))
  22. return;
  23. this.ready();
  24. }
  25. }
  26. };
  27. });