Skip to content

Commit

Permalink
Oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Feb 6, 2025
1 parent 9d53b86 commit 16e5d52
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion SMODS.Blind.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ refer to the current blind. (The base game uses `self` to refer to the current b
- A boolean value indicating whether any values were changed
- `get_loc_debuff_text(self) -> string`
- Allows modifying text displayed for debuff warnings on invalid hands
- `loc_vars(self) -> { vars ?= table, key ?= string }` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars(self) -> { vars ?= table, key ?= string }` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- Due to various constraints, the functionality of `loc_vars` on blinds is very limited. Only `vars` and `key` returns are supported, and no `info_queue` exists.
- `collection_loc_vars(self) -> { vars ?= table, key ?= string }`
- Used for passing variables to Blind descriptions when viewing the collection. If not defined, the game will use the `vars` field on your object.
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Back.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
- `calculate(self, back, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- This method is called from `Back:trigger_effect()` and incorporated into the standard calculation pipeline. This does not apply to vanilla `trigger_effect` functionality, which can be used as normal from this function by checking for `context.context == 'eval'` or `context.context == 'final_scoring_step` respectively.
- **Defining a `trigger_effect` function on your deck is deprecated.**
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `apply(self, back)`
- Apply modifiers at the start of a run. If you want to modify the starting deck, you must use events to do so.
- `in_pool(self, args) -> bool, { allow_duplicates = bool }`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Consumable.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `use(self, card, area, copier)`
- Defines the behavior of a consumable when used. *(The `copier` argument is a remnant from an effect no longer present in the game and can be ignored.)*
- `can_use(self, card) -> bool`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Edition.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
- `disable_base_shader = false`: Whether the base shader should be applied (`booster` for Booster packs and Spectral cards, `voucher` for Vouchers and Invisible Joker, `dissolve` otherwise). Enable this if your shader modifies card transparency or shape in any way. Example:<br/>![image](https://github.com/user-attachments/assets/c7b32385-e486-40c2-9a83-c8a09a67185c)

## API methods
- `loc_vars` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- Only `vars`, `key` and `set` return values are currently supported for editions.
- `get_weight(self) -> number `
- Used to modify the weight of edition on certain conditions.
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Enhancement.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `get_weight(self) -> number `
- Used to modify the weight of enhancement on certain conditions.
- `set_ability(self, card, initial, delay_sprites)`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Joker.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `calc_dollar_bonus(self, card) -> number`
- For awarding money at the end of the round (e.g. Delayed Gratification, Cloud Nine)
- `set_ability(self, card, initial, delay_sprites)`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Center/SMODS.Voucher.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, locked_loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `redeem(self, card)`
- Defines the behavior of a Voucher when redeemed.
- `set_ability(self, card, initial, delay_sprites)`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Seal.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `get_p_dollars(self, card) -> number`
- Gives money when a card with this seal is played.
- `update(self, card, dt)`
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Sticker.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

## API methods
- `calculate(self, card, context)` [(reference)](https://github.com/Steamodded/smods/wiki/Calculate-Functions)
- `loc_vars` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- Due to some constraints, the functionality of `loc_vars` on stickers is limited. Out of all possible return values, only `vars`, `key` and `set` are supported.
- `should_apply(self, card, center, area, bypass_roll) -> bool`
- Returns true if the sticker can be applied to the card.
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Suit-and-SMODS.Rank.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

## API methods
These methods are available for both suits and ranks.
- `loc_vars` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- This method provides very limited functionality compared to its counterpart on other classes. It has no support for any return values, but it does allow you to add tooltips to `info_queue`.
- `draw(self, card, layer)`
- Draws additional sprites or shaders on cards.
Expand Down
2 changes: 1 addition & 1 deletion SMODS.Tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- `min_ante`: Minimum ante needed for this tag to appear. Use in_pool for more advanced spawn restrictions instead.

## API methods
- `loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/wiki/Localization#Localization-functions)
- `loc_vars, generate_ui` [(reference)](https://github.com/Steamodded/smods/wiki/Localization#Localization-functions)
- `in_pool(self, args) -> bool, { allow_duplicates = bool }`
- Define custom logic for when a tag is allowed to spawn. A tag can spawn if `in_pool` returns true and all other checks are met.
- When called from `generate_card_ui`, the `_append` key is passed as `args.source`.
Expand Down

0 comments on commit 16e5d52

Please sign in to comment.