Commit of decompiled and "updated" code.

This commit is contained in:
Big Duckie
2022-07-03 14:13:26 -06:00
parent 3d34e53842
commit e1441e74a5
731 changed files with 18423 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
using Terraria;
using Terraria.DataStructures;
using Terraria.ModLoader;
using Terraria.ID;
namespace FabusMod.Items;
public class BossBags : GlobalItem
{
public override void OpenVanillaBag(string context, Player player, int arg)
{
if (context == "bossBag" && arg == ItemID.KingSlimeBossBag && Utils.NextFloat(Main.rand) < 0.5f && Main.expertMode)
{
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Items.CraftingIngredients.OminousBook>());
}
if (context == "bossBag" && arg == ItemID.QueenBeeBossBag && Utils.NextFloat(Main.rand) < 0.4f)
{
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Items.CraftingIngredients.NatureToken>());
}
if (context == "bossBag" && arg == ItemID.SkeletronBossBag && Utils.NextFloat(Main.rand) < 0.4f)
{
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Weapons.Ranged.Bows.StormBows.StormBow>());
}
if (context == "bossBag" && arg == ItemID.QueenBeeBossBag && Utils.NextFloat(Main.rand) < 0.2f)
{
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyHat>());
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyChest>());
player.QuickSpawnItem(new EntitySource_Misc(""), ModContent.ItemType<Vanity.Leafy.LeafyLegs>());
}
}
}