@rhyster/wow-casc-dbc 2.13.0 → 2.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1897,7 +1897,7 @@ const castFloat = (value, src, srcSigned) => {
1897
1897
  castBuffer.writeUIntLE(value, 0, src);
1898
1898
  }
1899
1899
  const result = castBuffer.readFloatLE(0);
1900
- return Math.round(result * 100) / 100;
1900
+ return result;
1901
1901
  };
1902
1902
  const castBigInt64 = (value, srcSigned, dstSigned) => {
1903
1903
  const castBuffer = Buffer.alloc(8);
@@ -2062,7 +2062,7 @@ class DBDParser {
2062
2062
  const values = [];
2063
2063
  for (let i = 0; i < column.arraySize; i += 1) {
2064
2064
  const value = castBuffer.readFloatLE(i * 4);
2065
- values.push(Math.round(value * 100) / 100);
2065
+ values.push(value);
2066
2066
  }
2067
2067
  data[column.name] = values;
2068
2068
  } else {
@@ -2175,7 +2175,7 @@ class DBDParser {
2175
2175
  for (let i = 0; i < count; i += 1) {
2176
2176
  if (column.type === "float") {
2177
2177
  const value = buffer.readFloatLE(offset);
2178
- values.push(Math.round(value * 100) / 100);
2178
+ values.push(value);
2179
2179
  offset += 4;
2180
2180
  } else if (size > 6) {
2181
2181
  assert(size === 8, `Unexpected size ${size.toString()} for column ${column.name}`);