Halved base chance of obtaining Quality Slop

This commit is contained in:
CongratsIsTrash committed 2026-06-09 22:12:11 -04:00
1 parent 3a877bd810
commit a34df4b2aa
1 file changed
+3 -2
+3 -2
View File
@@ -236,9 +236,10 @@ namespace CalamityMod.Tiles.Furniture
{
Item dummy = new Item();
dummy.SetDefaults(ItemType);
int goodPercent = (int)(dummy.buffTime * (dummy.buffType == BuffID.WellFed3 ? 2f : dummy.buffType == BuffID.WellFed2 ? 1.5f : 1f) / 3600);
// 0.5% per minute of duration, multiplied by 1.5x for T@ food and 2x for T3 food
float goodPercent = dummy.buffTime * (dummy.buffType == BuffID.WellFed3 ? 2f : dummy.buffType == BuffID.WellFed2 ? 1.5f : 1f) / 3600f / 2f;
int itemDrop = Main.rand.Next(100) < goodPercent ? ModContent.ItemType<QualitySlop>() : ModContent.ItemType<DisgustingSlop>();
int itemDrop = Main.rand.NextFloat(100f) < goodPercent ? ModContent.ItemType<QualitySlop>() : ModContent.ItemType<DisgustingSlop>();
int i = Item.NewItem(Projectile.GetItemSource_DropAsItem(), Projectile.Center, itemDrop);
Main.item[i].GetGlobalItem<GluttonyBlenderGlobalItem>().FromGluttonyBlender = true;
}