summaryrefslogtreecommitdiff
path: root/content/encyclopediae/npcs.json
blob: 78dda29bd4d70ad8fccaf3def9bc3dd9dc79458b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{
	"assemblages": {
		"rat": {
			"sprite": "rat",
			"height": 1.0,
			"components": [
				["MonsterAI", {
					"view_distance": 3,
					"move_chance": 0.08,
					"homesickness": 0.1
				}],
				["Health", {"health": 8, "maxhealth": 8}],
				["Fighter", {"damage": 2, "cooldown": 6}],
				["Movable", {"cooldown": 3}],
				["Faction", {"faction": "evil"}],
				["Loot", {"loot": ["list", [
					["list", [{"type": "radishseed"}, 1.0]]
				]]}]
			]
		},
		"goblin": {
			"sprite": "goblin",
			"height": 1.0,
			"components": [
				["MonsterAI", {
					"view_distance": 8,
					"move_chance": 0.02,
					"homesickness": 0.1
				}],
				["Health", {"health": 15, "maxhealth": 15}],
				["Fighter", {"damage": 5, "cooldown": 8}],
				["Movable", {"cooldown": 4}],
				["Faction", {"faction": "evil"}],
				["Loot", {"loot": ["list", [
					["list", [{"type": "sword"}, 0.05]],
					["list", [{"type": "club"}, 0.1]],
					["list", [{"type": "radish"}, 0.25]]
				]]}]
			]
		},
		"troll": {
			"sprite": "troll",
			"height": 1.0,
			"components": [
				["MonsterAI", {
					"view_distance": 8,
					"move_chance": 0.01,
					"homesickness": 0.1
				}],
				["Health", {"health": 75, "maxhealth": 75}],
				["Fighter", {"damage": 15, "cooldown": 10}],
				["Movable", {"cooldown": 5}],
				["Faction", {"faction": "evil"}],
				["Loot", {"loot": ["list", [
					["list", [{"type": "stone"}, 1.0]],
					["list", [{"type": "stone"}, 0.3]],
					["list", [{"type": "pebble"}, 0.5]],
					["list", [{"type": "pebble"}, 0.5]],
					["list", [{"type": "pebble"}, 0.5]]
				]]}]
				
			]
		},
		"rabbit": {
			"sprite": "rabbit",
			"height": 1.0,
			"components": [
				["MonsterAI", {
					"view_distance": 3,
					"move_chance": 0.08,
					"homesickness": 0.1
				}],
				["Movable", {"cooldown": 3}],
				["Faction", {"faction": "neutral"}]
			]
		},
		"dude": {
			"sprite": "human",
			"height": 1.5,
			"flags": ["Occupied"],
			"components": [
				["Talkable", {"text": "Hey there, welcome to Asciifarm"}]
			]
		},
		"trader": {
			"sprite": "human",
			"height": 1.5,
			"components": [
				["Exchanger", {
					"prefix": "buy",
					"exchanges": ["list", [
						["list", ["pebble", ["list", ["radish", "radish"]], ["list", ["pebble"]]]],
						["list", ["radishseed", ["list", ["radish"]], ["list", ["radishseed", "radishseed"]]]],
						["list", ["carrotseed", ["list", ["radish"]], ["list", ["carrotseed"]]]]
					]]
				}]
			]
		}
	}
}