Custom calculate contexts - larswijn/CardSleeves GitHub Wiki
This mod creates some custom contexts for sleeves to use in calculate
.
Any context that gets passed to Back:calculate()
will also be received by Sleeve:calculate()
.
These contexts do not have a base game equivalent, but might be useful.
- On any card creation, with context:
create_card = true
card = <card>
- On playing card modification (one using
set_base
), with context:
modify_playing_card = true
card = <playing_card>
- Right before a consumable gets used, with context:
before_use_consumable = true
card = <consumable>
- Directly after a consumable's effect has finished, with context:
after_use_consumable = true
- 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
If necessary, you can always create new contexts yourself. If there are any issues or obviously lacking contexts for sleeves, let me know.