Skip to content

Instantly share code, notes, and snippets.

@YPetremann
Last active October 25, 2024 12:41
Show Gist options
  • Save YPetremann/db5c341b49cfa0d6de14dad1edd65c92 to your computer and use it in GitHub Desktop.
Save YPetremann/db5c341b49cfa0d6de14dad1edd65c92 to your computer and use it in GitHub Desktop.
Constant Price mod for Sixty Four

Constant Price

This is a mod that make machine price to be constant

Follow modding instruction on Sixty Four wiki

label = 'Constant Price';
description = 'Make machine price to be constant';
(function () {
let c = typeof configuration === 'object' ? configuration : {};
if (!c?.enabled) return;
let _abstract_getCodex = abstract_getCodex;
abstract_getCodex = function () {
const dat = _abstract_getCodex();
for (const name in dat.entities) {
const ent = dat.entities[name];
if (ent.priceExponent > 1) ent.priceExponent = 1;
}
return dat;
};
})();
@YPetremann
Copy link
Author

I'm not anymore into modding Sicty Four, so any modder can continue it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment