Archive eaglerforge-builder (tool, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:15:01 -06:00
parent 7f05345f49
commit 5f406cdc02
53 changed files with 11985 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
Array.prototype.bake = function () {
this.originalState = structuredClone(this);
this.modifiers = [];
this.useDynamic = true;
return this;
}
Array.prototype.calculate = function () {
this.splice(0, this.length, ...this.originalState);
this.modifiers.forEach(x=>x.apply(this, []));
return this;
}
Array.prototype.dynamicConcat = function (datablockType, propname, interim) {
interim ||= (x)=>x;
this.modifiers.push(function () {
this.push(...state.nodes.filter(x=>x.type === datablockType).map(x=>interim(x.tags[propname])));
});
return this;
}