示例#1
0
        public String getFormattedValue()
        {
            switch (m_rewardType)
            {
            case RewardType.Award_Skill:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.skill, getValue()));

            case RewardType.Faction:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.faction, getFlag()));

            case RewardType.Item_ID:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.item, getValue()));
            }
            return(m_value);
        }
        public String getFormattedValue()
        {
            switch (m_conditionType)
            {
            case ConditionType.Item_Required:
            {
                String item = DataConfiguration.getDescription(DataConfiguration.DataType.item, getFlag());
                return(getValue() + " x " + item);
            }

            case ConditionType.Faction_Required:
            {
                String item = DataConfiguration.getDescription(DataConfiguration.DataType.faction, getFlag());
                return(getValue() + " x " + item);
            }

            case ConditionType.Race:
            {
                Races race;
                if (Enumeration.TryParse <Races>(m_value, out race))
                {
                    return(race.ToString());
                }
                break;
            }

            case ConditionType.Profession:
            {
                Professions profession;
                if (Enumeration.TryParse <Professions>(m_value, out profession))
                {
                    return(profession.ToString());
                }
                break;
            }

            case ConditionType.Mission_Required:
            {
                String mission = DataConfiguration.getDescription(DataConfiguration.DataType.mission, getValue());
                return(mission);
            }
            }
            return(m_value);
        }
示例#3
0
        public String getFormattedValue()
        {
            switch (m_completionType)
            {
            case CompletionType.Arrive_At:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue()));

            case CompletionType.Talk_Space_Npc:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue()));

            case CompletionType.Proximity_To_Space_Npc:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue()));

            case CompletionType.Nav_Message:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue()));

            case CompletionType.Fight_Mob:
            {
                String mob = DataConfiguration.getDescription(DataConfiguration.DataType.mob, getValue());
                return(getCount().ToString() + " x " + mob);
            }

            case CompletionType.Talk_To_Npc:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.npc, getValue()));

            case CompletionType.Give_Item:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.item, getValue()));

            case CompletionType.Current_Sector:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector, getValue()));

            case CompletionType.Obtain_Items:
            case CompletionType.Possess_Item:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.item, getValue()));

            /*case CompletionType.Obtain_Items_At_Location:
             * case CompletionType.Take_Item_To_Location:
             *  {
             *      String item = DataConfiguration.getDescription(DataConfiguration.DataType.item, getData());
             *      String location = DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue());
             *      return item + " @ " + location;
             *  }*/
            case CompletionType.Use_Skill_On_Mob_Type:
            {
                String skill = DataConfiguration.getDescription(DataConfiguration.DataType.skill, getData());
                String mob   = DataConfiguration.getDescription(DataConfiguration.DataType.mob, getValue());
                return(skill + " > " + mob);
            }

            case CompletionType.Use_Skill_On_Object:
            {
                String skill = DataConfiguration.getDescription(DataConfiguration.DataType.skill, getData());
                String mob   = DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue());
                return(skill + " > " + mob);
            }

            case CompletionType.Nearest_Nav:
                return(DataConfiguration.getDescription(DataConfiguration.DataType.sector_object, getValue()));
            }
            return(m_value);
        }