/// <summary> /// Lets the minion use Regular Options. /// </summary> /// <param name="masterName">The CharacterMaster name of the minion.</param> /// <returns>True if the minion is successfully set to use Regular Options. False if it is already using Regular Options.</returns> public bool SetToRegularOptions(string masterName) { bool result = RotateUsers.ConditionalRemove(masterName); if (result) { RotateMultipliers.Remove(masterName); RotateOffsets.Remove(masterName); } return(result); }
/// <summary> /// Lets the minion use Rotate Options. /// </summary> /// <param name="masterName">The CharacterMaster name of the minion.</param> /// <returns>True if the minion is successfully set to use Rotate Options. False if it is already using Rotate Options.</returns> public bool SetToRotateOptions(string masterName) { return(RotateUsers.ConditionalAdd(masterName, item => item == masterName)); }