JavidPack / BossChecklist

Mod for tModLoader to help with Boss Progression
https://forums.terraria.org/index.php?threads/boss-checklist-in-game-progression-checklist.50668/
60 stars 23 forks source link

validItems check needs rework. Currently checks for english name. #15

Closed SheepishShepherd closed 4 years ago

SheepishShepherd commented 4 years ago

The item checks need to be redone.

foreach (int type in selectedBoss.collection) {
    if (type != -1) {
        Item newItem = new Item();
        newItem.SetDefaults(type);
        if (newItem.Name.Contains("Trophy") && newItem.createTile > 0) validItems[0].Add(type);
        if (newItem.Name.Contains("Mask") && newItem.vanity) validItems[1].Add(type);
        if (newItem.Name.Contains("Music Box") && newItem.createTile > 0) validItems[2].Add(type);
    }
}