Custom calculate contexts - larswijn/CardSleeves GitHub Wiki

Custom calculate contexts

This mod creates some custom contexts for sleeves to use in calculate.

Base game contexts

Any context that gets passed to Back:calculate() will also be received by Sleeve:calculate().

Custom contexts

These contexts do not have a base game equivalent, but might be useful.

  1. On any card creation, with context:
     create_card = true
     card = <card>
  1. On playing card modification (one using set_base), with context:
    modify_playing_card = true
    card = <playing_card>
  1. Right before a consumable gets used, with context:
    before_use_consumable = true
    card = <consumable>
  1. Directly after a consumable's effect has finished, with context:
    after_use_consumable = true
  1. DEPRECATED, DO NOT USE: On shop enter/reroll (directly after Tag:apply_to_run{type = 'shop_final_pass'}), with context:
    shop_final_pass = true
    deprecated = true

Adding/changing contexts

If necessary, you can always create new contexts yourself. If there are any issues or obviously lacking contexts for sleeves, let me know.

⚠️ **GitHub.com Fallback** ⚠️