Пример #1
0
 public virtual void loadBagInfoFromConfig()
 {
     loadConfig();
     loadLeftClickFromConfig();
     order = BagsOfHoldingMod.getStringListFromConfig(config, "order");
     if (order.Count == 0 && createDefaultItemList())
     {
         config.Put("order", order.ToArray());
         if (Main.netMode != NetmodeID.MultiplayerClient)
         {
             config.Save();
         }
     }
     preventPickup = BagsOfHoldingMod.getStringListFromConfig(config, "noPickup");
 }
Пример #2
0
 public override void loadBagInfoFromConfig()
 {
     loadConfig();
     loadLeftClickFromConfig();
     pickupCoins = config.Get <bool>("coinPickup", pickupCoins);
     if (blacklist == null)
     {
         blacklist = BagsOfHoldingMod.getStringListFromConfig(config, "blacklist");
     }
     preventPickup = BagsOfHoldingMod.getStringListFromConfig(config, "noPickup");
     if (!pickupCoins)
     {
         preventPickup.Add("" + ItemID.CopperCoin);
         preventPickup.Add("" + ItemID.SilverCoin);
         preventPickup.Add("" + ItemID.GoldCoin);
         preventPickup.Add("" + ItemID.PlatinumCoin);
     }
 }