public static bool AddKey(string listName, string conditionName, Func <bool> deleg) => ModHandler.NewCondition(listName, conditionName, deleg, 0);
/// <summary> /// Creates a new key. /// </summary> /// <param name="listName">The name of the list.</param> /// <param name="conditionName">The name of the condition.</param> /// <param name="deleg">A delegate function which returns a boolean corresponding to whether or not the condition is true.</param> /// <param name="recommended">The recommended value of this key in copper coins. If this is set to -1, the condition will not be shown to the user.</param> /// <returns>A boolean representing whether or not the operation succeeded.</returns> public static bool AddKey(string listName, string conditionName, Func <bool> deleg, int recommended) => ModHandler.NewCondition(listName, conditionName, deleg, recommended);