|
|
|
@ -304,7 +304,7 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
} |
|
|
|
|
|
|
|
string resultValue = ""; |
|
|
|
conditionValue = getConditionValueWithLevel(level, condition, ref nodesMark, ref nodesMark); |
|
|
|
conditionValue = getConditionValueWithLevel(level,ref condition, ref nodesMark, ref nodesColor); |
|
|
|
resultValue = getResultValueWithLevel(level, result, condition, conditionValue); |
|
|
|
WeaponNode weaponNode = gem.GetComponent<WeaponNode>(); |
|
|
|
weaponNode.result = result; |
|
|
|
@ -457,7 +457,7 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
} |
|
|
|
|
|
|
|
string resultValue = ""; |
|
|
|
conditionValue = getConditionValueWithLevel(conditionLevel, condition, ref nodesMark, ref nodesMark); |
|
|
|
conditionValue = getConditionValueWithLevel(conditionLevel,ref condition, ref nodesMark, ref nodesMark); |
|
|
|
resultValue = getResultValueWithLevel(resultLevel, result, condition, conditionValue); |
|
|
|
WeaponNode weaponNode = gem.GetComponent<WeaponNode>(); |
|
|
|
weaponNode.result = result; |
|
|
|
@ -590,7 +590,7 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
} |
|
|
|
|
|
|
|
string resultValue = ""; |
|
|
|
conditionValue = getConditionValueWithLevel(conditionLevel, condition, ref nodesMark, ref nodesMark); |
|
|
|
conditionValue = getConditionValueWithLevel(conditionLevel,ref condition, ref nodesMark, ref nodesMark); |
|
|
|
resultValue = getResultValueWithLevel(resultLevel, result, condition, conditionValue); |
|
|
|
WeaponNode weaponNode = gem.GetComponent<WeaponNode>(); |
|
|
|
weaponNode.result = result; |
|
|
|
@ -603,7 +603,7 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public string getConditionValueWithLevel(string level, string condition, ref List<string> nodesMark, ref List<string> nodesColor) |
|
|
|
public string getConditionValueWithLevel(string level,ref string condition, ref List<string> nodesMark, ref List<string> nodesColor) |
|
|
|
{ |
|
|
|
string conditionValue = ""; |
|
|
|
switch (condition) |
|
|
|
@ -645,16 +645,16 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
switch (level) |
|
|
|
{ |
|
|
|
case Name.WeaponNodeLevel.Basic: |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetTargetRange(3, 5), 1).ElementAt(0); |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(3, 5), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Elementary: |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetTargetRange(4, 6), 1).ElementAt(0); |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(4, 6), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Intermediate: |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetTargetRange(5, 7), 1).ElementAt(0); |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(5, 7), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Advanced: |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetTargetRange(6, 8), 1).ElementAt(0); |
|
|
|
conditionValue = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(6, 8), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
} |
|
|
|
break; |
|
|
|
@ -695,16 +695,16 @@ public class WeaponManager : Singleton<WeaponManager> |
|
|
|
switch (level) |
|
|
|
{ |
|
|
|
case Name.WeaponNodeLevel.Basic: |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetTargetRange(3, 5), 1).ElementAt(0); |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(3, 5), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Elementary: |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetTargetRange(5, 8), 1).ElementAt(0); |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(5, 8), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Intermediate: |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetTargetRange(9, 12), 1).ElementAt(0); |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(9, 12), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
case Name.WeaponNodeLevel.Advanced: |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetTargetRange(14, 18), 1).ElementAt(0); |
|
|
|
part3 = MathTool.GetRandomElements(MathTool.GetIntegerRangeAsStrings(14, 18), 1).ElementAt(0); |
|
|
|
break; |
|
|
|
} |
|
|
|
sb.Append(part3); |
|
|
|
|