Examples of incLootForItem()


Examples of games.stendhal.server.entity.player.Player.incLootForItem()

  @Test
  public void testFire() {
    PlayerLootedNumberOfItemsCondition condition = new PlayerLootedNumberOfItemsCondition(5, "axe");
    Player player = PlayerTestHelper.createPlayer("looter");
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("dagger", 12);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 4);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 2);
    assertThat(condition.fire(player, null, null), is(true));
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.incLootForItem()

    PlayerLootedNumberOfItemsCondition condition = new PlayerLootedNumberOfItemsCondition(5, "axe");
    Player player = PlayerTestHelper.createPlayer("looter");
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("dagger", 12);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 4);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 2);
    assertThat(condition.fire(player, null, null), is(true));
  }
 
View Full Code Here

Examples of games.stendhal.server.entity.player.Player.incLootForItem()

    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("dagger", 12);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 4);
    assertThat(condition.fire(player, null, null), is(false));
    player.incLootForItem("axe", 2);
    assertThat(condition.fire(player, null, null), is(true));
  }
 
}
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.