Skip to content

frostice482/amulet

 
 

Repository files navigation

Amulet

A Talisman continuation that adds support for scoring above vanilla's limit (e308) while providing compatibility by default to most mods.

Additions from Talisman:

  • Backward-compatible high scores
  • BigAnte
  • OmegaNum optimizations

The OmegaNum used is a port of OmegaNum.js by Mathguy23.

Installation

Amulet requires Lovely to be installed in order to be loaded by Balatro.

API

Most Amulet APIs are backward-compatible with talisman, except mostly OmegaNum checking. Internally, Amulet's OmegaNum is cdata and not tables.

Making incompatible with Talisman

Warning

Amulet >= 3.5.1 includes SMODS.Mods.Talisman to add compat for mods that checks Talisman that way. Do not use this method to make a conflict with Talisman, as it will also includes Amulet.

For Amulet >= 3.5.1, simply add conflicts to your JSON file

"conflicts": [ "Talisman (<=2.7)" ]

For Amulet >= 3.2.4, add check in your lua file

(expand for code)
if Talisman and not Talisman.Amulet then
error[[

      !!!!!!!!!!!!!!!

Talisman is not supported, use Amulet instead

Download it here: https://github.com/frostice482/amulet

      !!!!!!!!!!!!!!
]]
end

OmegaNum checking

Use is_big(thing) or Big.is(thing)

Forcing OmegaNum

Using this feature will force-enable OmegaNum and hide the option from the settings

Talisman.forced_features.force_omeganum()

Forcing BigAnte

Using this feature will force-enable BigAnte and hide the option from the settings

Talisman.forced_features.force_bigante()

About

talisman but compatible by default for most mods

Topics

Resources

License

Stars

17 stars

Watchers

2 watching

Forks

Contributors

Languages

  • Lua 99.9%
  • Shell 0.1%