Ejemplo n.º 1
0
    /// <summary>
    /// Gets the level threshold.
    /// </summary>
    /// <returns>The abs level threshold.</returns>
    public int GetShowLevelThreshold(int playerID, int targetPlayerID)
    {
        int forceID = ForceSetting.Instance.GetForceID(playerID);

        if (!m_ForceIDList.Contains(forceID))
        {
            return(DefaultReputationValue);
        }
        int             value = GetReputationValue(playerID, targetPlayerID);
        ReputationLevel level = ReputationSystem.ConvntValueToLevel(value);

        return(GetLevelThreshold(level));
    }
Ejemplo n.º 2
0
    public int GetShowReputationValue(int playerID, int targetPlayerID)
    {
        int             value = GetReputationValue(playerID, targetPlayerID);
        ReputationLevel level = ReputationSystem.ConvntValueToLevel(value);

        if (level == ReputationLevel.Fear)
        {
            return(value);
        }
        int preValue = ReputationLevelValue[(int)level - 1];

        return(value - preValue);
    }
Ejemplo n.º 3
0
 public static int GetLevelThreshold(ReputationLevel level)
 {
     return(ReputationLevelValueEX[(int)level]);
 }
Ejemplo n.º 4
0
 public void ResetState()
 {
     level        = ReputationSystem.ConvntValueToLevel((exValue > 0)?exValue:reputationValue);
     belligerency = level < ReputationLevel.Neutral;
 }
Ejemplo n.º 5
0
 public static List<Reputation> GetFilteredReputation(this List<Reputation> reputations, ReputationLevel repLevel)
 {
     return reputations.FindAll(r => r.Level == repLevel);
 }
Ejemplo n.º 6
0
 public Reputation(ReputationLevel level)
 {
     this.level = level;
 }
Ejemplo n.º 7
0
 public Reputation(Reputation reputation)
 {
     level = reputation.level;
 }
Ejemplo n.º 8
0
 public Reputation()
 {
     level = ReputationLevel.None;
 }