You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 line
221 B

  1. define([
  2. ], function (
  3. ) {
  4. return {
  5. generate: function (item, blueprint) {
  6. item.worth = ~~(Math.pow(item.level, 1.5) + (Math.pow((item.quality + 1), 2) * 10));
  7. if (item.spell)
  8. item.worth *= 5;
  9. }
  10. };
  11. });