Skip to content

Commit

Permalink
Merge pull request #50 from EvenTorset/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
EvenTorset authored Aug 14, 2024
2 parents be5fae9 + e359e07 commit f3cf456
Show file tree
Hide file tree
Showing 5 changed files with 265 additions and 32 deletions.
1 change: 1 addition & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
target-branch: "dev"
schedule:
interval: "weekly"
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## [14.1.0] - 2024-08-14

### Highlights
- Added a `find` method to FXR objects, which finds and returns a value at a given path in the FXR. For example, a path like `root/nodes/0` would be the first child node of the root node.
- Added a `getActiveEffect` method to nodes that contain effects, which returns the effect that would be active when a given state index is active.
- Added a `clamp` method to properties. This slices off peaks and troughs outside of a given range to make sure the property value stays within the range.
- Added a `minify` method to modifiers. This does nothing for most of the modifier types, but for the external value modifiers this will minify the `factor` property.
- The `minify` method on properties now also minify the modifiers.
- The `minify` method on Stepped and Linear properties now removes keyframes that aren't doing anything. For example, if you have a linear scalar property with these keyframe values: `0, 1, 1, 1, 0`, then the middle keyframe is not doing anything, because it has two equivalent ones surrounding it, so when minified, this property would end up having these keyframe values: `0, 1, 1, 0`.

## [14.0.1] - 2024-08-11

### Highlights
Expand Down Expand Up @@ -141,6 +151,7 @@
- External values 2000 and 70200 for AC6 have been documented thanks to lugia19.
- Fixed action 301 (EqualDistanceEmitter) missing a type for one of its fields, potentially causing issues when writing to DS3's structure.

[14.1.0]: https://github.com/EvenTorset/fxr/compare/v14.0.1...v14.1.0
[14.0.1]: https://github.com/EvenTorset/fxr/compare/v14.0.0...v14.0.1
[14.0.0]: https://github.com/EvenTorset/fxr/compare/v13.0.0...v14.0.0
[13.0.0]: https://github.com/EvenTorset/fxr/compare/v12.2.0...v13.0.0
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cccode/fxr",
"version": "14.0.1",
"version": "14.1.0",
"description": "JavaScript library for creating and editing FXR files for Dark Souls 3, Sekiro, Elden Ring, and Armored Core 6.",
"author": "CCCode",
"type": "module",
Expand Down
Loading

0 comments on commit f3cf456

Please sign in to comment.