Apotheosis

Apotheosis

70M Downloads

Enchants from Strange are unobtainable

Akaitatsu opened this issue ยท 2 comments

commented

The default settings for certain enchantments from the Strange mod make them unobtainable. I can't tell what the default formula for min and max power for these enchantments are. The documentation in the config file doesn't provide enough information to fix this myself. It would help if the default formulas were added to the config file in addition to the min and max levels.

Config file with no changes (except for extension to satisfy github): enchantments.txt

[09Nov2020 09:12:29.953] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:ice_aspect has min/max power 255/200 at level 1, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:ice_aspect has min/max power 255/200 at level 2, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:shulking has min/max power 255/200 at level 1, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:shulking has min/max power 255/200 at level 2, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:growth has min/max power 255/200 at level 1, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:repel has min/max power 255/200 at level 1, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:repel has min/max power 255/200 at level 2, making this level unobtainable.
[09Nov2020 09:12:29.954] [modloading-worker-7/ERROR] [Apotheosis : Enchantment/]: Enchantment strange:repel has min/max power 255/200 at level 3, making this level unobtainable.
commented

I dug further in the code for Strange and it looks like these enchantments aren't intended to be obtainable other than from the loot provided by the mod.

Thanks for the fast response!

commented

The default enchanting scaling just doesn't always work, it's a fundamental incompatibility with some things.
Same reason why there is no default entry in the enchanting power formulas, they cannot be determined.
Each enchantment object defines it's own formula in-code, and that is not accessible at runtime other than querying the result. To truly transform the class's enchantment power formula methods would require running a decompiler at runtime, which is not really plausible.

If you want to know the formulas for those mod's enchantments, you would have to go check it's source code to see what the formulas are.