@rhyster/wow-casc-dbc 2.13.1 → 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.cjs CHANGED
@@ -1909,7 +1909,7 @@ const castFloat = (value, src, srcSigned) => {
1909
1909
  castBuffer.writeUIntLE(value, 0, src);
1910
1910
  }
1911
1911
  const result = castBuffer.readFloatLE(0);
1912
- return Math.round(result * 100) / 100;
1912
+ return result;
1913
1913
  };
1914
1914
  const castBigInt64 = (value, srcSigned, dstSigned) => {
1915
1915
  const castBuffer = Buffer.alloc(8);
@@ -2074,7 +2074,7 @@ class DBDParser {
2074
2074
  const values = [];
2075
2075
  for (let i = 0; i < column.arraySize; i += 1) {
2076
2076
  const value = castBuffer.readFloatLE(i * 4);
2077
- values.push(Math.round(value * 100) / 100);
2077
+ values.push(value);
2078
2078
  }
2079
2079
  data[column.name] = values;
2080
2080
  } else {
@@ -2187,7 +2187,7 @@ class DBDParser {
2187
2187
  for (let i = 0; i < count; i += 1) {
2188
2188
  if (column.type === "float") {
2189
2189
  const value = buffer.readFloatLE(offset);
2190
- values.push(Math.round(value * 100) / 100);
2190
+ values.push(value);
2191
2191
  offset += 4;
2192
2192
  } else if (size > 6) {
2193
2193
  assert__default(size === 8, `Unexpected size ${size.toString()} for column ${column.name}`);