Skip to content

Commit a003a68

Browse files
committed
pc1.20.2
1 parent 3211b09 commit a003a68

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

data/pc/1.20.2/effects.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"modifiers": {
6969
"attackDamage": {
7070
"uuid": "648D7064-6A60-4F59-8ABE-C2C23A6DD7A9",
71-
"modifier": 0,
71+
"modifier": 3,
7272
"operation": "ADDITION"
7373
}
7474
},
@@ -191,7 +191,7 @@
191191
"modifiers": {
192192
"attackDamage": {
193193
"uuid": "22653B89-116E-49DC-9B6B-9971489B5BE5",
194-
"modifier": 0,
194+
"modifier": -4,
195195
"operation": "ADDITION"
196196
}
197197
},
@@ -236,7 +236,13 @@
236236
"displayName": "Absorption",
237237
"type": "good",
238238
"protocolName": "absorption",
239-
"modifiers": {},
239+
"modifiers": {
240+
"maxAbsorption": {
241+
"uuid": "EAE29CF0-701E-4ED6-883A-96F798F3DAB5",
242+
"modifier": 4,
243+
"operation": "ADDITION"
244+
}
245+
},
240246
"color": 2445989
241247
},
242248
{
@@ -330,7 +336,7 @@
330336
"type": "neutral",
331337
"protocolName": "bad_omen",
332338
"modifiers": {},
333-
"color": 7455580
339+
"color": 745784
334340
},
335341
{
336342
"id": 31,

tools/js/extractEntityEffects.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const context = {
6666
}
6767
}
6868

69-
if (versionGreaterOrEqual('1.20')) {
69+
if (versionGreaterOrEqual('1.20.2')) {
7070
context.register = function (name, effect) {
7171
const id = context.effects.length - 1
7272
const prismarineName = toTitleCaseFromSnakeCase(name)
@@ -138,6 +138,9 @@ for (let i = 0; i < context.effects.length; i++) {
138138
if (manualData[fail]) {
139139
console.log('Using manual data for', fail)
140140
generatedEffects[i] = manualData[fail]
141+
if (versionGreaterOrEqual('1.20.2')) {
142+
generatedEffects[i].id = i
143+
}
141144
} else {
142145
throw new Error('Missing manual data for ' + fail)
143146
}

0 commit comments

Comments
 (0)