예제 #1
0
        private MasterMod CreateMasterMod(CraftingBenchJson masterModJson, Dictionary <CraftingBenchJson, int> modTiers)
        {
            MasterMod masterMod = new MasterMod();

            masterMod.Name         = masterModJson.BenchGroup + masterModJson.BenchTier;
            masterMod.Master       = masterModJson.Master;
            masterMod.Group        = masterModJson.BenchGroup;
            masterMod.ItemClasses  = new HashSet <string>(masterModJson.ItemClasses);
            masterMod.CurrencyType = _itemFactory.Items.First(x => x.FullName == masterModJson.Cost.First().Key).Name;
            masterMod.CurrencyCost = (int)masterModJson.Cost.First().Value;
            masterMod.Tier         = modTiers[masterModJson];
            masterMod.FullName     = masterModJson.ModId;
            masterMod.Affix        = _affixFactory.GetMasterAffix(masterModJson.ModId, modTiers[masterModJson]);
            return(masterMod);
        }
예제 #2
0
 public MasterCraft(MasterMod masterMod, IRandom random)
 {
     _masterMod = masterMod;
     Random     = random;
 }