Package games.stendhal.server.entity.item

Examples of games.stendhal.server.entity.item.Item.describe()


   
    final Item ring = player.getFirstEquipped("emerald ring");
    assertTrue(ring.isBound());
    assertTrue(player.isBoundTo(ring));
    assertEquals("You see an emerald ring, known as ring of life. Wear it, and you risk less from death.", ring.getDescription());
    assertEquals("You see an emerald ring, known as the ring of life. Wear it, and you risk less from death. It is a special quest reward for player, and cannot be used by others.", ring.describe());
    assertThat(en.getCurrentState(), is(ConversationStates.ATTENDING));
    assertTrue(player.isQuestCompleted(QUEST_SLOT));
    en.step(player, "bye");
    assertEquals("Bye, my friend.", getReply(npc));
  }
View Full Code Here


    orderfixandfetchordered(player);
    final Item ringafter = player.getFirstEquipped("emerald ring");
    assertTrue(ringafter.isBound());
    assertTrue(player.isBoundTo(ringafter));
    assertEquals("You see an emerald ring, known as ring of life. Wear it, and you risk less from death.", ringafter.getDescription());
    assertEquals("You see an emerald ring, known as the ring of life. Wear it, and you risk less from death. It is a special quest reward for player, and cannot be used by others.", ringafter.describe());

    assertEquals("Bye, my friend.", getReply(npc));
 
  }
View Full Code Here

    if (seller) {
      item.put("price", -price);
    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

   * @return Item
   */
  private Item prepareItem(String name, int price) {
    Item item = SingletonRepository.getEntityManager().getItem(name);
    item.put("price", -price);
    item.put("description", item.describe());
    return item;
  }
}
View Full Code Here

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.