Add more spell effects

This commit is contained in:
2026-02-26 02:09:38 -08:00
parent a686ce2fbc
commit fadb1652d4
20 changed files with 163 additions and 49 deletions
+3 -1
View File
@@ -44,7 +44,9 @@ public class ItemDatabase
rng.Randomize();
if (itemsToExclude.Any())
itemsToSelectFrom.Except(itemsToExclude);
itemsToSelectFrom = itemsToSelectFrom.Except(itemsToExclude);
itemsToSelectFrom = itemsToSelectFrom.Where(x => x.ItemTag != ItemTag.MysteryItem);
var weights = itemsToSelectFrom.Select(x => x.SpawnRate).ToArray();
var selectedItem = itemsToSelectFrom.ToArray()[rng.RandWeighted(weights)];