Skip to content
Snippets Groups Projects
Commit 45146768 authored by Chris Kearney's avatar Chris Kearney
Browse files

swamp bear is back

parent 7fcfeed1
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ public class NpcTestHarness { ...@@ -90,7 +90,7 @@ public class NpcTestHarness {
@Test @Test
public void testCombat() throws Exception { public void testCombat() throws Exception {
List<Npc> npcsFromFile = NpcExporter.getNpcsFromFile(gameManager); List<Npc> npcsFromFile = NpcExporter.getNpcsFromFile(gameManager);
Npc treeBerseker = npcsFromFile.stream().filter(npc -> npc.getName().equals("red-eyed bear")).collect(Collectors.toList()).get(0); Npc treeBerseker = npcsFromFile.stream().filter(npc -> npc.getName().equals("swamp bear")).collect(Collectors.toList()).get(0);
int totalIterations = 100; int totalIterations = 100;
Player player; Player player;
Npc npc = null; Npc npc = null;
......
{ {
"name": "red-eyed bear", "name": "red-eyed bear",
"colorName": "red-eyed \u001B[1m\u001B[35mbear\u001B[0m", "colorName": "red-eyed \u001B[1m\u001B[35mbear\u001B[0m",
......
{
"name": "swamp bear",
"colorName": "swamp \u001B[1m\u001B[35mbear\u001B[0m",
"dieMessage": "a swamp \u001B[1m\u001B[35mbear\u001B[0m breathes his last breath in a pool of \u001B[1m\u001B[31mblood\u001B[0m",
"temperament": "passive",
"loot": {
"lootGoldMin": 19,
"lootGoldMax": 30,
"lootItems": []
},
"roamAreas": [
"toft1_zone",
"toft2_zone"
],
"stats": {
"agile": 6,
"aim": 3,
"armorRating": 20,
"currentHealth": 175,
"currentMana": 105,
"experience": 90000,
"maxHealth": 150,
"maxMana": 105,
"meleSkill": 22,
"numberOfWeaponRolls": 1,
"strength": 13,
"weaponRatingMax": 25,
"weaponRatingMin": 19,
"willPower": 4
},
"spawnAreas": {
"toft1_zone": {
"randomChance": 100,
"maxPerRoom": 1,
"spawnIntervalTicks": 600,
"maxInstances": 12
},
"toft2_zone": {
"randomChance": 100,
"maxPerRoom": 1,
"spawnIntervalTicks": 600,
"maxInstances": 12
}
},
"validTriggers": [
"s",
"swamp bear",
"swamp",
"b",
"bear"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment