-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlegend.js
397 lines (395 loc) · 7.64 KB
/
legend.js
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
/* eslint-disable quote-props, object-curly-newline, max-lines */
const teleportDoor = {
name: 'teleport door',
blocked: 0,
renderAs: 'box',
texture: 'runed_door.png',
};
const forestDoor = {
name: 'forest path (door)',
blocked: 0,
renderAs: 'box',
texture: 'stone_arch.png',
soundOn: 'steps',
};
const ghost = {
name: 'ghost',
blocked: 0,
renderAs: 'billboard',
texture: 'shadow_new.png',
aggro: 0,
npc: 'wanderer',
opacity: 0.7,
hp: 1,
invisible: ['item:ghostMask'],
dialog: {
hi: {
q: 'Hello?',
answer: [
'I did not deserve to die.',
'Humans are cruel',
'Who WAS that?',
'I\'m going to haunt the village.',
'I feel cold... so cold...',
'I was too young for this.',
'Will you avenge me?',
'Is this the spirit world?',
'How do I move on?',
'I miss my body, the pleasant stink.',
],
unlocks: 'die',
},
die: {
q: 'Why did you fight to the death?',
answer: [
'To save my only home, Wretchhold.',
'The people of Wretchhold were my only friends.',
'Wretchhold was the only place I felt safe.',
'All my belongings are buried in a hole here in Wretchhold',
'Wretchhold tavern fed me.',
],
},
},
};
const townFolk = {
name: 'Townfolk',
blocked: 1,
renderAs: 'billboard',
faction: 'townfolk',
npc: 'villager',
damageScale: 0.5,
};
const monster = {
name: 'monster',
blocked: 1,
renderAs: 'billboard',
// texture: 'cyclops_new.png',
npc: 'monster',
faction: 'wretch',
battleYell: 'goblinBattleYell',
hurtSound: 'goblinDamaged',
deathSound: 'goblinDeath',
aggro: 1,
damageScale: 1,
death: {
spawn: { ...ghost },
},
};
const goblin = {
...monster,
name: 'Goblin',
texture: 'goblin_new.png',
npc: 'wanderer',
damageScale: 0.8,
aggro: 0,
hp: 8,
dialog: {
die: {
q: 'Time to die!',
a: 'AAHhh! mutilator!',
aggro: 1,
},
},
};
const legend = {
' ': {
name: 'clear', blocked: 0, renderAs: false,
},
'#': {
name: 'cobble',
blocked: 1,
renderAs: 'box',
color: [0.8, 0.8, 0.7],
texture: 'cosmic/wall-test.png',
// textureRange: [1, 11],
},
'&': {
name: 'cave',
blocked: 1,
renderAs: 'box',
color: [0.9, 0.9, 0.9],
texture: 'lair_new_.png',
textureRange: [0, 3],
},
'G': {
name: 'grass',
blocked: 1,
renderAs: 'box',
color: [0.9, 0.9, 0.9],
texture: 'grass_.png',
textureRange: [0, 2],
},
'D': {
name: 'door',
blocked: 1,
renderAs: 'box',
texture: 'runed_door.png',
sound: 'door',
},
'+': {
name: 'unlocked door',
blocked: 0,
renderAs: 'box',
texture: 'runed_door.png',
soundOn: 'door',
},
'T': {
name: 'tree',
blocked: 1,
renderAs: 'billboard',
texture: 'tree_.png',
textureRange: [0, 8],
},
'|': {
name: 'crumbled_column_1',
blocked: 1,
color: [0.8, 0.8, 0.7],
renderAs: 'billboard',
texture: 'crumbled_column_.png',
textureRange: [1, 6],
},
'^': {
name: 'torch',
blocked: 0,
color: [1, 1, 1],
light: [1, 6],
renderAs: 'billboard',
texture: 'torch_.png',
textureRange: [1, 4],
},
'a': {
...townFolk,
name: 'Townfolk',
texture: 'human_slave.png',
dialog: {
hello: 'Please help us!',
help: 'There are too many beasts at nearby Wretchhold in the south.',
goblins: 'When I was a kid, I wanted to be a goblin one day. I know better now.',
},
},
'b': {
...townFolk,
name: 'Townfolk',
texture: 'cosmic/chomper.png',
dialog: {
goblins: 'Goblins are ruining this neighbourhood!',
taxes: 'The Mayor said the goblins are why taxes are so high.',
hero: {
answer: ['Your jawline is incredible!'],
},
},
},
'c': {
...townFolk,
name: 'Townfolk',
texture: 'halfling_new.png',
dialog: {
'sheep': 'A goblin stole one of my sheep, and shaved it weird.',
goblin: 'I saw the goblin fortress in the woods. It looked scary.',
axe: 'Can I "axe" you a question? Just kidding!',
},
},
'd': {
...townFolk,
name: 'Townfolk',
texture: 'dwarf_new.png',
dialog: {
attacks: 'They haven\'t attacked yet... must be planning something big.',
arms: 'Can I feel your arm? It\'s rock solid!',
axe: 'Nice axe! Is it heavy?',
},
},
'e': {
...townFolk,
name: 'Townfolk',
texture: 'elf_new.png',
dialog: {
goblins: 'I killed a goblin once... I think. It might have been a frog.',
hero: 'What\'s the biggest monster you ever killed?',
fortress: 'Wretchhold is south along the path. That\'s where the beasts are gathering.',
},
},
'f': {
...townFolk,
name: 'Townfolk',
texture: 'gnome.png',
dialog: {
fear: 'I\'m living in fear!',
goblins: 'Goblins are so ugly. And short. And they smell bad. Right?',
doors: {
q: 'Why are the doors rotated?',
a: 'I have reason to believe some dark magic from Wretchhold has warped all our doors.',
},
},
},
'g': {
...ghost,
},
'h': {
...monster,
name: 'Goblin Guard',
texture: 'hobgoblin_new.png',
npc: 'still',
aggro: 0,
dialog: {
hello: {
a: 'Who goes there?',
unlocks: 'me',
},
me: {
locked: true,
q: 'I do!',
a: 'A human! Sound the alarm!',
unlocks: 'alarm',
},
},
},
'i': {
...goblin,
},
'j': {
...goblin,
texture: 'orc_wizard_new.png',
},
'k': {
...monster,
name: 'Kobold',
texture: 'kobold_new.png',
damageScale: 0.5,
hp: 6,
},
'C': {
...monster,
name: 'cyclops',
blocked: 1,
renderAs: 'billboard',
texture: 'cyclops_new.png',
hp: 20,
},
'O': {
...monster,
name: 'ogre',
texture: 'ogre_new.png',
hp: 15,
},
'p': {
name: 'orc priest',
blocked: 1,
renderAs: 'billboard',
texture: 'orc_priest_new.png',
npc: 'still',
aggro: 0,
dialog: {
hello: 'I have not seen you in Wretchhold before.',
name: 'I am Zogrod. Though people say I look more like a Zagtor.',
job: { a: 'I keep an eye out for intruders.', unlocks: 'intruders' },
intruders: { a: 'Intruders like you!', locked: true },
},
},
'w': {
...monster,
name: 'orc warrior',
texture: 'orc_warrior_new.png',
},
'Y': {
...monster,
name: 'Midboss Yugerdenyuu',
texture: 'two_headed_ogre_new.png',
npc: 'still',
damageScale: 1.5,
hp: 30,
aggro: 0,
dialog: {
hi: {
q: 'Hello there',
a: 'You dinnit suprise me. Im da biggest \'ere.',
unlocks: 'big',
},
big: {
locked: true,
q: 'I\'ve killed bigger, but never uglier. Ready to join your friends?',
a: 'AAAAH! I brew yer bits an\' blood intah mead!',
aggro: 1,
},
},
},
'Z': {
...monster,
name: 'Boss Tanxfergetended',
texture: 'juggernaut.png',
damageScale: 3,
hp: 50,
npc: 'still',
aggro: 0,
dialog: {
hi: {
q: 'The last one!',
a: 'All... dead?',
unlocks: 'dead',
},
dead: {
locked: true,
q: 'Dead? Not quite all. But soon.',
a: 'No need... fer ... talk den. Killin\' time.',
aggro: 1,
},
},
},
'1': {
...teleportDoor,
teleport: ['forest', 5, 1, 1, 2],
},
'2': {
...teleportDoor,
teleport: ['town', 7, 11, 1, 0],
},
'3': {
...teleportDoor,
teleport: ['fortress', 16, 1, 1, 2],
},
'4': {
...teleportDoor,
teleport: ['forest', 5, 13, 1, 0],
},
'5': {
...teleportDoor,
teleport: ['tavern', 15, 5, 1, 0],
},
'6': {
...teleportDoor,
teleport: ['fortress', 10, 1, 1, 2],
},
'7': {
...teleportDoor,
teleport: ['tower1', 4, 1, 1, 2],
},
'8': {
...teleportDoor,
teleport: ['tavern', 2, 5, 1, 2],
},
'9': {
...teleportDoor,
teleport: ['tower2', 14, 1, 1, 2],
},
'0': {
...teleportDoor,
teleport: ['tower1', 13, 1, 1, 2],
},
'[': {
...forestDoor,
teleport: ['forestOutside', 30, 2, 1, 3],
},
']': {
...forestDoor,
teleport: ['forest', 1, 4, 1, 1],
},
'{': {
...forestDoor,
teleport: ['forestOutside', 30, 31, 1, 3],
},
'}': {
...forestDoor,
teleport: ['forest', 1, 11, 1, 1],
},
};
export default legend;