public override void RightClick(Player player) { if (Main.rand.Next(20) == 0) { if (UnuBattleRods.thoriumPresent) { switch (Main.rand.Next(4)) { case 0: player.QuickSpawnItem(ItemID.BrokenHeroSword, 1); break; case 1: player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:BrokenHeroScythe"), 1); break; case 2: player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:BrokenHeroStaff"), 1); break; default: player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:BrokenHeroBow"), 1); break; } } else { player.QuickSpawnItem(ItemID.BrokenHeroSword, 1); } } base.RightClick(player); }
public override void OpenVanillaBag(string context, Player player, int arg) { if (context == "crate" && arg == ItemID.DungeonFishingCrate) { if (Main.rand.Next(6) == 0) { player.QuickSpawnItem(mod.ItemType("DungeonBattlerod")); } if (UnuBattleRods.thoriumPresent) { if (Main.rand.Next(3) == 0) { if (NPC.downedPlantBoss) { player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:DarkMatter"), Main.rand.Next(1, 4)); } } if (Main.rand.Next(6) == 0) { player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:DarksteelCore"), Main.rand.Next(1, 4)); } } } }
public override void RightClick(Player player) { if (Main.rand.Next(2500) == 0 && Main.hardMode && NPC.downedPlantBoss) { player.QuickSpawnItem(ItemID.RainbowGun); } if (Main.hardMode && Main.rand.Next(25) == 0) { switch (Main.rand.Next(5)) { case 0: player.QuickSpawnItem(ItemID.FlyingKnife); break; case 1: player.QuickSpawnItem(ItemID.CrystalVileShard); break; case 2: player.QuickSpawnItem(ItemID.DaedalusStormbow); break; case 3: player.QuickSpawnItem(ItemID.BlessedApple); break; default: player.QuickSpawnItem(ItemID.IlluminantHook); break; } } switch (Main.rand.Next(5)) { case 0: case 1: player.QuickSpawnItem(ItemID.CrystalShard, Main.rand.Next(4, 13)); break; case 2: case 3: player.QuickSpawnItem(ItemID.PixieDust, Main.rand.Next(4, 13)); break; default: player.QuickSpawnItem(ItemID.UnicornHorn, Main.rand.Next(2, 6)); break; } if (NPC.downedMechBossAny) { player.QuickSpawnItem(ItemID.HallowedBar, Main.rand.Next(2, 13)); if (UnuBattleRods.thoriumPresent && Main.rand.Next(10) == 1) { if (Main.rand.Next(2) == 1) { player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:StrangePlating"), Main.rand.Next(2, 7)); } else { player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:LifeCell"), Main.rand.Next(1, 4)); } } } base.RightClick(player); }
public override void RightClick(Player player) { if (Main.rand.Next(25) == 0) { switch (Main.rand.Next(9)) { case 0: player.QuickSpawnItem(ItemID.Meowmere); break; case 1: player.QuickSpawnItem(ItemID.Terrarian); break; case 2: player.QuickSpawnItem(ItemID.StarWrath); break; case 3: player.QuickSpawnItem(ItemID.LastPrism); break; case 4: player.QuickSpawnItem(ItemID.LunarFlareBook); break; case 5: player.QuickSpawnItem(ItemID.SDMG); break; case 6: player.QuickSpawnItem(ItemID.FireworksLauncher); break; case 7: player.QuickSpawnItem(ItemID.MoonlordTurretStaff); break; default: player.QuickSpawnItem(ItemID.RainbowCrystalStaff); break; } } if (Main.rand.Next(3) == 0) { if (Main.rand.Next(2) == 0) { player.QuickSpawnItem(ItemID.MoonlordBullet, Main.rand.Next(10, 51)); } else { player.QuickSpawnItem(ItemID.MoonlordArrow, Main.rand.Next(10, 51)); } } player.QuickSpawnItem(ItemID.LunarOre, Main.rand.Next(4, 25)); switch (Main.rand.Next(UnuBattleRods.thoriumPresent? 6: 4)) { case 0: player.QuickSpawnItem(ItemID.FragmentSolar, Main.rand.Next(2, 21)); break; case 1: player.QuickSpawnItem(ItemID.FragmentNebula, Main.rand.Next(2, 21)); break; case 2: player.QuickSpawnItem(ItemID.FragmentStardust, Main.rand.Next(2, 21)); break; case 4: player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:CelestialFragment"), Main.rand.Next(2, 21)); break; case 5: player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("ThoriumMod:CometFragment"), Main.rand.Next(2, 21)); break; default: player.QuickSpawnItem(ItemID.FragmentVortex, Main.rand.Next(2, 21)); break; } if (ModLoader.GetMod("SacredTools") != null && Main.rand.Next(8) == 0) { player.QuickSpawnItem(UnuBattleRods.getItemTypeFromTag("SacredTools:FragmentNova"), Main.rand.Next(2, 21)); } base.RightClick(player); }