Skip to content

Commit 430dbbb

Browse files
committed
Moved items.JSON to the corresponding ressource folders
1 parent 83a2a20 commit 430dbbb

3 files changed

Lines changed: 150 additions & 1 deletion

File tree

src/main/java/config/LootConfig.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ public class LootConfig {
99
public static final int dropCommon = 60;
1010
public static final int dropRare = 35;
1111
public static final int dropLegendary = 5;
12-
public static final JSONObject itemList = readJson("./src/main/java/JSON/items.JSON");
12+
public static final JSONObject itemList = readJson(LootConfig.class.getResource("/items.JSON").getPath());
1313
}

src/test/resources/items.JSON

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
1+
{
2+
"cage": {
3+
"name": "Cage",
4+
"spriteName": "sprite_name",
5+
"id": "#7",
6+
"description": "Cage to catch a litteBeast",
7+
"probability": "90",
8+
"uses": 1,
9+
"effects": "Catch",
10+
"unique": false,
11+
"type": "cage",
12+
"bonusStats":[
13+
10,
14+
10,
15+
10,
16+
10,
17+
10,
18+
10,
19+
0
20+
],
21+
"rarity": "common"
22+
},
23+
"aHealingPotion": {
24+
"name": "A healing potion",
25+
"spriteName": "sprite_name",
26+
"id": "#2",
27+
"description": "Heals a portion of your life",
28+
"probability": "80",
29+
"uses": 1,
30+
"effects": "Heals 10HP",
31+
"unique": false,
32+
"type": "consumable",
33+
"bonusStats":[
34+
10,
35+
10,
36+
10,
37+
10,
38+
10,
39+
10,
40+
0
41+
],
42+
"rarity": "common"
43+
},
44+
"aGreaterHealingPotion": {
45+
"id": "#5",
46+
"name": "A greater healing potion",
47+
"spriteName": "sprite_name",
48+
"description": "Heals a portion of your life",
49+
"probability": "20",
50+
"uses": 1,
51+
"effects": "Heals 10HP",
52+
"type": "consumable",
53+
"unique": false,
54+
"bonusStats":[
55+
10,
56+
10,
57+
10,
58+
10,
59+
10,
60+
10,
61+
0
62+
],
63+
"rarity": "common"
64+
},
65+
"stickOfBeating": {
66+
"id": "#3",
67+
"name": "The Stick of Beating",
68+
"spriteName": "sprite_name",
69+
"description": "It's a stick, you can hit someone with it. Don't.",
70+
"probability": "80",
71+
"uses": 1,
72+
"effects": "It hurts.",
73+
"type": "weapon",
74+
"unique": false,
75+
"bonusStats":[
76+
10,
77+
10,
78+
10,
79+
10,
80+
10,
81+
10,
82+
0
83+
],
84+
"rarity": "rare"
85+
},
86+
"StickOfMoreBeating": {
87+
"id": "#4",
88+
"name": "The Stick of more Beating",
89+
"spriteName": "sprite_name",
90+
"description": "It's a stick, you can hit someone with it. Do.",
91+
"probability": "20",
92+
"uses": 1,
93+
"effects": "It hurts.",
94+
"type": "weapon",
95+
"unique": false,
96+
"bonusStats":[
97+
10,
98+
10,
99+
10,
100+
10,
101+
10,
102+
10,
103+
0
104+
],
105+
"rarity": "rare"
106+
},
107+
"hammerOfZordon": {
108+
"id": "#1",
109+
"name": "The Hammer of Zordon",
110+
"spriteName": "sprite_name",
111+
"description": "It's Zordons Hammer, what do you think it will do?",
112+
"probability": "90",
113+
"uses": 1,
114+
"effects": "Hammers like crazy",
115+
"type": "weapon",
116+
"unique": false,
117+
"bonusStats":[
118+
10,
119+
10,
120+
10,
121+
10,
122+
10,
123+
10,
124+
0
125+
],
126+
"rarity": "legendary"
127+
},
128+
"hammerOfKarl": {
129+
"id": "#6",
130+
"name": "The Hammer of Karl",
131+
"spriteName": "sprite_name",
132+
"description": "It's Karls Hammer, it hammers",
133+
"probability": "10",
134+
"uses": 1,
135+
"effects": "Hammers like totally crazy",
136+
"type": "weapon",
137+
"unique": false,
138+
"bonusStats":[
139+
10,
140+
10,
141+
10,
142+
10,
143+
10,
144+
10,
145+
0
146+
],
147+
"rarity": "legendary"
148+
}
149+
}

0 commit comments

Comments
 (0)