The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Zodiac Planetariums | Extra Planetarium Choices
 此主題已被置頂,因此它可能很重要
AgentCucco  [開發人員] 2021 年 6 月 13 日 下午 6:16
Compatibility Example
I realized a bunch of people aren't gonna download this mod just to add compat to it, so I'd be better if I just post the example here :P

local NewStarSigns = RegisterMod(...) NewStarSigns.Items = { Sign1 = Isaac.GetItemIdByName("Sign 1"), Sign2 = Isaac.GetItemIdByName("Sign 2"), Sign3 = Isaac.GetItemIdByName("Sign 3"), } ---- Zodiac Planetariums compat CCO = CCO or {} -- Stands for Cucco :) CCO.ZodiacPlanetariums = CCO.ZodiacPlanetariums or {} CCO.ZodiacPlanetariums.Items = CCO.ZodiacPlanetariums.Items or {} table.insert(CCO.ZodiacPlanetariums.Items, {ID = NewStarSigns.Items.Sign1, Weight = 1}) table.insert(CCO.ZodiacPlanetariums.Items, {ID = NewStarSigns.Items.Sign2, Weight = 1}) table.insert(CCO.ZodiacPlanetariums.Items, {ID = NewStarSigns.Items.Sign3, Weight = 1})