< Summary

Information
Class: RaidLoop.Core.LootTables
Assembly: RaidLoop.Core
File(s): /home/runner/work/RaidLoop/RaidLoop/src/RaidLoop.Core/LootTables.cs
Line coverage
100%
Covered lines: 74
Uncovered lines: 0
Coverable lines: 74
Total lines: 99
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.cctor()100%11100%
WeaponsCrate()100%11100%
ArmourCrate()100%11100%
MixedCache()100%11100%
EnemyLoadout()100%11100%

File(s)

/home/runner/work/RaidLoop/RaidLoop/src/RaidLoop.Core/LootTables.cs

#LineLine coverage
 1namespace RaidLoop.Core;
 2
 3public static class LootTables
 4{
 15    private static readonly LootTierProfile WeaponsCrateProfile = new(
 16        commonWeight: 40,
 17        uncommonWeight: 12,
 18        rareWeight: 6,
 19        epicWeight: 3,
 110        legendaryWeight: 2);
 11
 112    private static readonly LootTierProfile ArmourCrateProfile = new(
 113        commonWeight: 40,
 114        uncommonWeight: 12,
 115        rareWeight: 6,
 116        epicWeight: 3,
 117        legendaryWeight: 2);
 18
 119    private static readonly LootTierProfile MixedCacheProfile = new(
 120        commonWeight: 40,
 121        uncommonWeight: 12,
 122        rareWeight: 6,
 123        epicWeight: 3,
 124        legendaryWeight: 2);
 25
 126    private static readonly LootTierProfile EnemyLoadoutProfile = new(
 127        commonWeight: 55,
 128        uncommonWeight: 10,
 129        rareWeight: 3,
 130        epicWeight: 1,
 131        legendaryWeight: 1);
 32
 33    public static LootTable WeaponsCrate()
 34    {
 235        return new LootTable(WeaponsCrateProfile,
 236        [
 237            ItemCatalog.Create("Makarov"),
 238            ItemCatalog.Create("PPSH"),
 239            ItemCatalog.Create("AK74"),
 240            ItemCatalog.Create("SVDS"),
 241            ItemCatalog.Create("AK47"),
 242            ItemCatalog.Create("PKP")
 243        ]);
 44    }
 45
 46    public static LootTable ArmourCrate()
 47    {
 248        return new LootTable(ArmourCrateProfile,
 249        [
 250            ItemCatalog.Create("6B2 body armor"),
 251            ItemCatalog.Create("Small Backpack"),
 252            ItemCatalog.Create("BNTI Kirasa-N"),
 253            ItemCatalog.Create("Large Backpack"),
 254            ItemCatalog.Create("6B13 assault armor"),
 255            ItemCatalog.Create("Tactical Backpack"),
 256            ItemCatalog.Create("FORT Defender-2"),
 257            ItemCatalog.Create("Tasmanian Tiger Trooper 35"),
 258            ItemCatalog.Create("6B43 Zabralo-Sh body armor"),
 259            ItemCatalog.Create("NFM THOR"),
 260            ItemCatalog.Create("6Sh118")
 261        ]);
 62    }
 63
 64    public static LootTable MixedCache()
 65    {
 566        return new LootTable(MixedCacheProfile,
 567        [
 568            ItemCatalog.Create("Bandage"),
 569            ItemCatalog.Create("Ammo Box"),
 570            ItemCatalog.Create("Scrap Metal"),
 571            ItemCatalog.Create("Medkit"),
 572            ItemCatalog.Create("PPSH"),
 573            ItemCatalog.Create("Rare Scope"),
 574            ItemCatalog.Create("AK74"),
 575            ItemCatalog.Create("SVDS"),
 576            ItemCatalog.Create("Legendary Trigger Group")
 577        ]);
 78    }
 79
 80    public static LootTable EnemyLoadout()
 81    {
 282        return new LootTable(EnemyLoadoutProfile,
 283        [
 284            ItemCatalog.Create("Makarov"),
 285            ItemCatalog.Create("Bandage"),
 286            ItemCatalog.Create("PPSH"),
 287            ItemCatalog.Create("6B2 body armor"),
 288            ItemCatalog.Create("BNTI Kirasa-N"),
 289            ItemCatalog.Create("AK74"),
 290            ItemCatalog.Create("6B13 assault armor"),
 291            ItemCatalog.Create("SVDS"),
 292            ItemCatalog.Create("FORT Defender-2"),
 293            ItemCatalog.Create("AK47"),
 294            ItemCatalog.Create("PKP"),
 295            ItemCatalog.Create("NFM THOR")
 296        ]);
 97    }
 98}
 99