Skip to content
Permalink
Browse files

- Fixed an issue with changelings being unable to pass validation. Cl…

…oses #3857
  • Loading branch information...
chummer5a committed Sep 10, 2019
1 parent 5e8b456 commit 40f4c013bc053e6cdfecf39b5e924c6ad0c88a58
Showing with 5 additions and 5 deletions.
  1. +5 −5 Chummer/Character Creation/frmCreate.cs
@@ -12989,11 +12989,11 @@ public bool CheckCharacterValidity(bool blnUseArgBuildPoints = false, int intBui
// if character has more than permitted Metagenic qualities
if (CharacterObject.MetagenicLimit > 0)
{
if (CharacterObject.MetagenicNegativeQualityKarma > CharacterObject.MetagenicLimit)
if (-CharacterObject.MetagenicNegativeQualityKarma > CharacterObject.MetagenicLimit)
{
strMessage += Environment.NewLine + '\t' +
string.Format(LanguageManager.GetString("Message_OverNegativeMetagenicQualities", GlobalOptions.Language)
, CharacterObject.MetagenicNegativeQualityKarma.ToString(GlobalOptions.CultureInfo)
, (-CharacterObject.MetagenicNegativeQualityKarma).ToString(GlobalOptions.CultureInfo)
, CharacterObject.MetagenicLimit.ToString(GlobalOptions.CultureInfo));
blnValid = false;
}
@@ -13006,12 +13006,12 @@ public bool CheckCharacterValidity(bool blnUseArgBuildPoints = false, int intBui
blnValid = false;
}

if (CharacterObject.MetagenicNegativeQualityKarma != CharacterObject.MetagenicPositiveQualityKarma &&
CharacterObject.MetagenicNegativeQualityKarma != (CharacterObject.MetagenicPositiveQualityKarma - 1))
if (-CharacterObject.MetagenicNegativeQualityKarma != CharacterObject.MetagenicPositiveQualityKarma &&
-CharacterObject.MetagenicNegativeQualityKarma != (CharacterObject.MetagenicPositiveQualityKarma - 1))
{
strMessage += Environment.NewLine + '\t' +
string.Format(LanguageManager.GetString("Message_MetagenicQualitiesUnbalanced", GlobalOptions.Language)
, CharacterObject.MetagenicNegativeQualityKarma.ToString(GlobalOptions.CultureInfo)
, (-CharacterObject.MetagenicNegativeQualityKarma).ToString(GlobalOptions.CultureInfo)
, (CharacterObject.MetagenicPositiveQualityKarma - 1).ToString(GlobalOptions.CultureInfo)
, CharacterObject.MetagenicPositiveQualityKarma.ToString(GlobalOptions.CultureInfo));
blnValid = false;

0 comments on commit 40f4c01

Please sign in to comment.
You can’t perform that action at this time.