'use strict';

var NPC_DATA = {
  ATK_SPEED: 14,
  ATK_DISTANCE: 26
};

function NpcStats(npcObj) {
  this.object = npcObj;

  var npcList = GDM.getNow('list_npc');
  this.data = npcList.row(npcObj.charIdx);
}

NpcStats.getAttackSpeed = function() {
  return this.data[NPC_DATA.ATK_SPEED];
};

NpcStats.getAttackDistance = function() {
  return this.data[NPC_DATA.ATK_DISTANCE] / 100;
};

'use strict';

var NPC_DATA = {
  ATK_SPEED: 14,
  ATK_DISTANCE: 26
};

function NpcStats(npcObj) {
  this.object = npcObj;

  var npcList = GDM.getNow('list_npc');
  this.data = npcList.row(npcObj.charIdx);
}

NpcStats.prototype.getAttackSpeed = function() {
  return this.data[NPC_DATA.ATK_SPEED];
};

NpcStats.prototype.getAttackDistance = function() {
  return this.data[NPC_DATA.ATK_DISTANCE] / 100;
};

Fix issue with NpcStats with methods being static.
Fix issue with NpcStats with methods being static.
