Inheritance: Terraria.Achievements.AchievementCondition
コード例 #1
0
        public static void HandleAnglerService()
        {
            Main.Achievements.GetCondition("SERVANT_IN_TRAINING", "Finish").Complete();
            CustomFloatCondition condition = (CustomFloatCondition)Main.Achievements.GetCondition("GOOD_LITTLE_SLAVE", "Finish");

            condition.Value = condition.Value + 1f;
            CustomFloatCondition value = (CustomFloatCondition)Main.Achievements.GetCondition("TROUT_MONKEY", "Finish");

            value.Value = value.Value + 1f;
            CustomFloatCondition customFloatCondition = (CustomFloatCondition)Main.Achievements.GetCondition("FAST_AND_FISHIOUS", "Finish");

            customFloatCondition.Value = customFloatCondition.Value + 1f;
            CustomFloatCondition condition1 = (CustomFloatCondition)Main.Achievements.GetCondition("SUPREME_HELPER_MINION", "Finish");

            condition1.Value = condition1.Value + 1f;
        }
コード例 #2
0
        public static void HandleRunning(float pixelsMoved)
        {
            CustomFloatCondition condition = (CustomFloatCondition)Main.Achievements.GetCondition("MARATHON_MEDALIST", "Move");

            condition.Value = condition.Value + pixelsMoved;
        }
コード例 #3
0
        public static void HandleNurseService(int coinsSpent)
        {
            CustomFloatCondition condition = (CustomFloatCondition)Main.Achievements.GetCondition("FREQUENT_FLYER", "Pay");

            condition.Value = condition.Value + (float)coinsSpent;
        }