The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Redemption Community Pack [ON HIATUS]
 此主题已被置顶,因此可能具有重要性
Magpie Smoking a Cig  [开发者] 2022 年 9 月 18 日 下午 6:36
Mod Documentation
Note that I can't set the Github repository to public currently. For the time being, I will include the mod's documentation here if you want to add compatibility.

This mod exposes a single global variable, named "RedemptionExports"
最后由 Magpie Smoking a Cig 编辑于; 2022 年 9 月 18 日 下午 6:39
< >
正在显示第 1 - 1 条,共 1 条留言
Magpie Smoking a Cig  [开发者] 2022 年 9 月 18 日 下午 6:50 
Adding a rune to Galdrabok

To add a rune to Galdrabok, you must run the following function in ModCallbacks.MC_POST_GAME_STARTED

RedemptionExports.addGaldrabokRune(rune Card, chargeCount number, sprite: string, player PlayerType | nil, canBreak: boolean | nil, brokenSprite: string | nil

  • The rune argument is the rune you want to add to Galdrabok.
  • The chargeCount argument is the amount of charges the item will be set to upon using the rune. Note that this must be between 1 - 12, otherwise it'll be set to 4 by default.
  • The sprite argument is the path to the image that will be displayed. Note that the image must be 32x32 px.
  • The player argument is what player you must be to use the rune. If it's set to nil, everyone can use the rune. Otherwise, the player's type must match the argument for the rune to be usable.
  • The canBreak argument will cause the rune to break and remain unusable for the rest of the floor if it's set to true.
  • The brokenSprite argument is the path to the image that will be displayed for the rune if it's broken. Note that the image must be 32x32 px.

Do not worry about the callback running more than once, the mod will account for this automatically and not add duplicates.
最后由 Magpie Smoking a Cig 编辑于; 2022 年 9 月 18 日 下午 6:50
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50