Ejemplo n.º 1
0
 public override void Unload()
 {
     mod = null;
     ClickerCompat.Unload();
     CalamityCompat.Unload();
     ClickerAddonCompat.Unload();
 }
Ejemplo n.º 2
0
        public override void Load()
        {
            mod = this;
            ClickerCompat.Load();
            if (ModLoader.GetMod("SacredTools") != null)
            {
                LunarCoinCloneID = CustomCurrencyManager.RegisterCurrency((CustomCurrencySystem) new LunarCoinClone(ModLoader.GetMod("SacredTools").ItemType("LunarCoin"), 999L));
            }

            if (!Main.dedServ)
            {
                MiceSky.PlanetTexture = GetTexture("NPCs/Bosses/MicePlanet");
                Filters.Scene["ClickerAddon:Mice"]       = new Filter(new MiceData("FilterMiniTower").UseColor(0.45f, 0.5f, 0.85f).UseOpacity(0.82f), EffectPriority.VeryHigh);
                SkyManager.Instance["ClickerAddon:Mice"] = new MiceSky();
            }
            ClickerClassGlobalItemStats.astralArmor = new bool[3] {
                false, false, false
            };
        }
Ejemplo n.º 3
0
        public override void PostUpdateEquips()
        {
            /*Player player = Main.LocalPlayer;*/
            clickerAddonTime++;
            lunarColor = fragmentColors[lunarColorNum];
            if (bloodflareCapsuit)
            {
                float bloodflareRadius = 0.25f * (player.statLifeMax2 / player.statLife);
                ClickerCompat.SetClickerRadiusAdd(player, bloodflareRadius);
            }
            if (setAbilityDelayTimer > 0)
            {
                setAbilityDelayTimer--;
            }

            if (clickerAddonTime >= 60)
            {
                if (lunarColorNum >= 4)
                {
                    lunarColorNum = 0;
                }
                else
                {
                    lunarColorNum++;
                }
                clickerAddonTime = 0;
            }
            if (bandOfClicking)
            {
                player.accRunSpeed += (float)(ClickerCompat.GetClickerPerSecond(player) * 0.15f);
            }

            if (bigRedButton)
            {
                float fluct = 1f + (float)Math.Sin(2 * Math.PI * (Main.GameUpdateCount % 60) / 60f);
                ClickerCompat.SetClickerRadiusAdd(player, fluct / 2);
            }
        }
Ejemplo n.º 4
0
 internal static void SetClickerBaseStats(Player player, float damage, int crit = 0, float clicksForEffect = 0f)
 {
     ClickerCompat.SetDamageAdd(player, damage);
     ClickerCompat.SetClickerCritAdd(player, crit);
     ClickerCompat.SetClickerBonusPercentAdd(player, clicksForEffect);
 }
Ejemplo n.º 5
0
 internal static void SetRadiusInfo(Item item, float radius, Color color)
 {
     ClickerCompat.SetRadius(item, radius);
     ClickerCompat.SetColor(item, color);
 }