forked from devops001/samsara
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitemRepository.js
98 lines (82 loc) · 1.93 KB
/
itemRepository.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
var ItemRepository = new Repository('items', Crafting.Item);
ItemRepository.define('rock', {
name: 'rock',
desc: 'a small rock',
image: 'assets/items/I_Rock01.png',
isRandom: true
});
ItemRepository.define('stick', {
name: 'stick',
desc: 'a small stick',
image: 'assets/items/W_Staff01.png',
isRandom: true
});
ItemRepository.define('fabric', {
name: 'fabric',
desc: 'a small scrap of cloth fabric',
image: 'assets/items/I_Fabric.png',
isRandom: true
});
ItemRepository.define('bone', {
name: 'bone',
desc: 'a bone',
image: 'assets/items/I_Bone.png',
isRandom: true
});
ItemRepository.define('clover', {
name: 'clover',
desc: 'some clover',
image: 'assets/items/I_Clover.png',
isRandom: true
});
ItemRepository.define('feather', {
name: 'feather',
desc: 'a feather',
image: 'assets/items/I_Feather02.png',
isRandom: true
});
// ======================================
// food:
// ======================================
ItemRepository.define('bread', {
name: 'bread',
desc: 'a chunk of bread',
image: 'assets/items/I_C_Bread.png',
isRandom: false
});
ItemRepository.define('carrot', {
name: 'carrot',
desc: 'a carrot',
image: 'assets/items/I_C_Carrot.png',
isRandom: false
});
ItemRepository.define('fish', {
name: 'fish',
desc: 'a fish',
image: 'assets/items/I_C_Fish.png',
isRandom: false
});
ItemRepository.define('grapes', {
name: 'grapes',
desc: 'some grapes',
image: 'assets/items/I_C_Grapes.png',
isRandom: false
});
ItemRepository.define('mushroom', {
name: 'mushroom',
desc: 'some mushrooms ',
image: 'assets/items/I_C_Mushroom.png',
isRandom: false
});
ItemRepository.define('radish', {
name: 'radish',
desc: 'a radish',
image: 'assets/items/I_C_Radish.png',
isRandom: false
});
ItemRepository.define('strawberry', {
name: 'strawberry',
desc: 'some strawberries',
image: 'assets/items/I_C_Strawberry.png',
isRandom: false
});