Package games.stendhal.server.core.rp.achievement.factory

Source Code of games.stendhal.server.core.rp.achievement.factory.UndergroundZoneAchievementFactory

package games.stendhal.server.core.rp.achievement.factory;

import games.stendhal.server.core.rp.achievement.Achievement;
import games.stendhal.server.core.rp.achievement.Category;
import games.stendhal.server.entity.npc.condition.PlayerVisitedZonesInRegionCondition;

import java.util.Collection;
import java.util.LinkedList;
/**
* Factory for underground zone achievements
*
* @author madmetzger
*/
public class UndergroundZoneAchievementFactory extends AbstractAchievementFactory {

  @Override
  protected Category getCategory() {
    return Category.UNDERGROUND_ZONE;
  }

  @Override
  public Collection<Achievement> createAchievements() {
    Collection<Achievement> list = new LinkedList<Achievement>();
    //All below ground achievements
    list.add(createAchievement("zone.underground.semos", "Canary", "Visit all underground zones in the Semos region",
                  Achievement.MEDIUM_BASE_SCORE, true,
                  new PlayerVisitedZonesInRegionCondition("semos", Boolean.TRUE, Boolean.FALSE)));
    list.add(createAchievement("zone.underground.nalwor", "Fear not drows nor hell", "Visit all underground zones in the Nalwor region",
                  Achievement.MEDIUM_BASE_SCORE, true,
                  new PlayerVisitedZonesInRegionCondition("nalwor", Boolean.TRUE, Boolean.FALSE)));
    list.add(createAchievement("zone.underground.athor", "Labyrinth Solver", "Visit all underground zones in the Athor region",
                  Achievement.MEDIUM_BASE_SCORE, true,
                  new PlayerVisitedZonesInRegionCondition("athor", Boolean.TRUE, Boolean.FALSE)));
    list.add(createAchievement("zone.underground.amazon", "Human Mole", "Visit all underground zones in the Amazon region",
                  Achievement.MEDIUM_BASE_SCORE, true,
                  new PlayerVisitedZonesInRegionCondition("amazon", Boolean.TRUE, Boolean.FALSE)));
    list.add(createAchievement("zone.underground.ados", "Deep Dweller", "Visit all underground zones in the Ados region",
                  Achievement.MEDIUM_BASE_SCORE, true,
                  new PlayerVisitedZonesInRegionCondition("ados", Boolean.TRUE, Boolean.FALSE)));
    return list;
  }

}
TOP

Related Classes of games.stendhal.server.core.rp.achievement.factory.UndergroundZoneAchievementFactory

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.