Exemple #1
0
 /// <summary>Determines whether this instance can train the specified stat.</summary>
 /// <param name="stat">The stat.</param>
 /// <returns><c>true</c> if this instance can train the specified stat; otherwise, <c>false</c>.</returns>
 public bool CanTrain(HzCharacterStat stat)
 {
     if (stat.StatType != StatType.Unknown && stat.StatType <= StatType.DodgeRating)
     {
         return(character.training_count > 0);
     }
     return(false);
 }
Exemple #2
0
 /// <summary>Determines whether this instance [can improve character stat] the specified stat.</summary>
 /// <param name="stat">The stat.</param>
 /// <returns><c>true</c> if this instance [can improve character stat] the specified stat; otherwise, <c>false</c>.</returns>
 public bool CanImproveCharacterStat(HzCharacterStat stat)
 {
     if (stat.StatType != StatType.Unknown && stat.StatType <= StatType.DodgeRating)
     {
         return(character.stat_points_available > 0);
     }
     return(false);
 }