public static void Init(InitParams initParams) { mod = initParams.Mod; var go = new GameObject(mod.Title); go.AddComponent <LousyLycans>(); instance = go.AddComponent <LousyLycans>(); EntityEffectBroker.OnNewMagicRound += WereBuffs_OnNewMagicRound; EntityEffectBroker.OnNewMagicRound += WaxingMoon_OnNewMagicRound; EntityEffectBroker.OnNewMagicRound += FullMoon_OnNewMagicRound; }
public static void Init(InitParams initParams) { mod = initParams.Mod; var go = new GameObject(mod.Title); go.AddComponent <LousyLycans>(); instance = go.AddComponent <LousyLycans>(); EntityEffectBroker.OnNewMagicRound += WereBuffs_OnNewMagicRound; EntityEffectBroker.OnNewMagicRound += WaxingMoon_OnNewMagicRound; EntityEffectBroker.OnNewMagicRound += FullMoon_OnNewMagicRound; GameManager.Instance.RegisterPreventRestCondition(() => { return(FullMoonWake()); }, "You awake with a snarl!"); }