コード例 #1
0
 static void Postfix(LanceConfiguratorPanel __instance, ref int maxUnits, Contract contract)
 {
     Logger.M.TWL(0, "LanceConfiguratorPanel.SetData postfix " + maxUnits);
     try {
         if (contract == null)
         {
             Logger.M.WL(1, "contract is null");
             //__instance.lanceMaxTonnage = BiggerDrops.settings.defaultMaxTonnage;
             return;
         }
         else
         if (contract.Override.lanceMaxTonnage == -1)
         {
             __instance.lanceMaxTonnage = DropManager.MaxTonnage();
         }
     } catch (Exception e) {
         Logger.LogError(e);
     }
 }