Repository navigation
API Documentation
Boss Jokers are matched to their corresponding Boss Blind through a key-value dictionary, stored in WaffleMod.bossJokerTable, where the key is the blind's key, and the value is the joker's key. For example, if your Boss Blind had the key bl_yourmod_fighter, and you wanted to make it drop a Joker with the key j_yourmod_fighter, you would add to the table like so -
WaffleMod.bossJokerTable[bl_yourmod_fighter] = "j_yourmod_fighter"Jokers for Showdown/Finisher Blinds are also stored in this table.
When making a Boss Joker or Showdown Joker, you can use WaffleMod.BossJoker or WaffleMod.ShowdownJoker, both of which are extensions of SMODS.Joker. These extensions automatically set the rarity, cost (15 for Boss Jokers, 20 for Showdown Jokers), and draw functions for the Joker.
To mark a joker as a pop-culture reference for compatibility with Fuzzy Pickle, simply give it an attribute named reference. This alone will make it functional.
-- somewhere in SMODS.Joker()
attributes = {"reference"}While Fuzzy Pickle is held, Jokers that activate its effect (i.e. have the reference attribute) are given tooltips to indicate that they are a reference, as well as what they are a reference to. To add such a tooltip for your Joker, add a localization key in the Other descriptions set, where the key is r_ followed by your Joker's key. For example, to add a tooltip for a Joker with key j_yourmod_deltarune_joker -
descriptions = {
Other = {
r_j_yourmod_deltarune_joker = {
name = "Reference", -- This is the same across all reference tooltips
text = { "Deltarune" } -- Sub out "Deltarune" for whatever media your Joker is a reference to
}
}
}If the reference attribute is present but a matching localization entry cannot be found, it will still be given a generic tooltip while Fuzzy Pickle is held to denote that it is compatible with Fuzzy Pickle.
The tags that the Mystery Gift Joker is able to give are stored in the table WaffleMod.mysteryGiftTags, an array you can add to like so -
WaffleMod.mysteryGiftTags[#WaffleMod.mysteryGiftTags + 1] = { name = "e_tag_editionname", weight = 0.5 }
This will add a chance for Mystery Gift to create a tag with the key tag_editionname. The reason that e_ is appended at the start is beacuse poll_edition is used for weighted pseudorandom pull.
Currently, this does not modify the Joker's tooltip, but it will add the new Tag to the info_queue.