Package games.stendhal.server.maps.kalavan.castle

Source Code of games.stendhal.server.maps.kalavan.castle.ItemsOnTable

/* $Id: ItemsOnTable.java,v 1.12 2010/11/27 13:59:29 nylon0700 Exp $ */
/***************************************************************************
*                   (C) Copyright 2003-2010 - Stendhal                    *
***************************************************************************
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************/
package games.stendhal.server.maps.kalavan.castle;

import games.stendhal.server.core.config.ZoneConfigurator;
import games.stendhal.server.core.engine.StendhalRPZone;
import games.stendhal.server.entity.mapstuff.spawner.PassiveEntityRespawnPoint;

import java.util.Map;

/**
* Creates the items on the table in the castle basement.
*
* @author kymara
*/
public class ItemsOnTable implements ZoneConfigurator {
  public void configureZone(final StendhalRPZone zone, final Map<String, String> attributes) {
    buildBasementArea(zone);
  }

  private void buildBasementArea(final StendhalRPZone zone) {

    // Plant grower for poison
    final PassiveEntityRespawnPoint plantGrower = new PassiveEntityRespawnPoint("disease poison", 2000);
    plantGrower.setPosition(109, 103);
    plantGrower.setDescription("Scientists often put bottles down here.");
    zone.add(plantGrower);

    plantGrower.setToFullGrowth();

    // Plant grower for antidote
    final PassiveEntityRespawnPoint plantGrower2 = new PassiveEntityRespawnPoint("greater antidote", 4500);
    plantGrower2.setPosition(83, 111);
    plantGrower2.setDescription("Scientists often put bottles down here.");
    zone.add(plantGrower2);

    plantGrower2.setToFullGrowth();

    // Plant grower for mega poison
    final PassiveEntityRespawnPoint plantGrower3 = new PassiveEntityRespawnPoint("mega poison", 4000);
    plantGrower3.setPosition(100, 116);
    plantGrower3.setDescription("Scientists often put bottles down here.");
    zone.add(plantGrower3);

    plantGrower3.setToFullGrowth();

    // Plant grower for a shield (3 hours)
    final PassiveEntityRespawnPoint plantGrower4 = new PassiveEntityRespawnPoint("crown shield", 36000);
    plantGrower4.setPosition(40, 22);
    plantGrower4.setDescription("Imperial soliders leave their things here.");
    zone.add(plantGrower4);

    plantGrower4.setToFullGrowth();

    // Plant grower for a claymore (24 hours)
    final PassiveEntityRespawnPoint plantGrower5 = new PassiveEntityRespawnPoint("claymore", 288000);
    plantGrower5.setPosition(27, 21);
    plantGrower5.setDescription("Imperial soliders leave their things here.");
    zone.add(plantGrower5);

    plantGrower5.setToFullGrowth();

    // grower for an empty eared bottle (30min)
    final PassiveEntityRespawnPoint bottleGrower1 = new PassiveEntityRespawnPoint("eared bottle", 6000);
    bottleGrower1.setPosition(91, 90);
    bottleGrower1.setDescription("Scientists often put bottles down here.");
    zone.add(bottleGrower1);

    bottleGrower1.setToFullGrowth();

    // grower for an empty slim bottle (30min)
    final PassiveEntityRespawnPoint bottleGrower2 = new PassiveEntityRespawnPoint("slim bottle", 6000);
    bottleGrower2.setPosition(102, 89);
    bottleGrower2.setDescription("Scientists often put bottles down here.");
    zone.add(bottleGrower2);

    bottleGrower2.setToFullGrowth();

    // grower for an empty fat bottle
    final PassiveEntityRespawnPoint bottleGrower3 = new PassiveEntityRespawnPoint("fat bottle", 3000);
    bottleGrower3.setPosition(104, 105);
    bottleGrower3.setDescription("Scientists often put bottles down here.");
    zone.add(bottleGrower3);

    bottleGrower3.setToFullGrowth();


  }

}
TOP

Related Classes of games.stendhal.server.maps.kalavan.castle.ItemsOnTable

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.