< 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.CreateByKey("makarov"),
 238            ItemCatalog.CreateByKey("ppsh"),
 239            ItemCatalog.CreateByKey("ak74"),
 240            ItemCatalog.CreateByKey("svds"),
 241            ItemCatalog.CreateByKey("ak47"),
 242            ItemCatalog.CreateByKey("pkp")
 243        ]);
 44    }
 45
 46    public static LootTable ArmourCrate()
 47    {
 248        return new LootTable(ArmourCrateProfile,
 249        [
 250            ItemCatalog.CreateByKey("6b2_body_armor"),
 251            ItemCatalog.CreateByKey("small_backpack"),
 252            ItemCatalog.CreateByKey("bnti_kirasa_n"),
 253            ItemCatalog.CreateByKey("large_backpack"),
 254            ItemCatalog.CreateByKey("6b13_assault_armor"),
 255            ItemCatalog.CreateByKey("tactical_backpack"),
 256            ItemCatalog.CreateByKey("fort_defender_2"),
 257            ItemCatalog.CreateByKey("tasmanian_tiger_trooper_35"),
 258            ItemCatalog.CreateByKey("6b43_zabralo_sh_body_armor"),
 259            ItemCatalog.CreateByKey("nfm_thor"),
 260            ItemCatalog.CreateByKey("6sh118")
 261        ]);
 62    }
 63
 64    public static LootTable MixedCache()
 65    {
 566        return new LootTable(MixedCacheProfile,
 567        [
 568            ItemCatalog.CreateByKey("bandage"),
 569            ItemCatalog.CreateByKey("ammo_box"),
 570            ItemCatalog.CreateByKey("scrap_metal"),
 571            ItemCatalog.CreateByKey("medkit"),
 572            ItemCatalog.CreateByKey("ppsh"),
 573            ItemCatalog.CreateByKey("rare_scope"),
 574            ItemCatalog.CreateByKey("ak74"),
 575            ItemCatalog.CreateByKey("svds"),
 576            ItemCatalog.CreateByKey("legendary_trigger_group")
 577        ]);
 78    }
 79
 80    public static LootTable EnemyLoadout()
 81    {
 282        return new LootTable(EnemyLoadoutProfile,
 283        [
 284            ItemCatalog.CreateByKey("makarov"),
 285            ItemCatalog.CreateByKey("bandage"),
 286            ItemCatalog.CreateByKey("ppsh"),
 287            ItemCatalog.CreateByKey("6b2_body_armor"),
 288            ItemCatalog.CreateByKey("bnti_kirasa_n"),
 289            ItemCatalog.CreateByKey("ak74"),
 290            ItemCatalog.CreateByKey("6b13_assault_armor"),
 291            ItemCatalog.CreateByKey("svds"),
 292            ItemCatalog.CreateByKey("fort_defender_2"),
 293            ItemCatalog.CreateByKey("ak47"),
 294            ItemCatalog.CreateByKey("pkp"),
 295            ItemCatalog.CreateByKey("nfm_thor")
 296        ]);
 97    }
 98}
 99