Skip to content

Commit

Permalink
pc1.20.2
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Jan 9, 2024
1 parent 3211b09 commit a003a68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
14 changes: 10 additions & 4 deletions data/pc/1.20.2/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"modifiers": {
"attackDamage": {
"uuid": "648D7064-6A60-4F59-8ABE-C2C23A6DD7A9",
"modifier": 0,
"modifier": 3,
"operation": "ADDITION"
}
},
Expand Down Expand Up @@ -191,7 +191,7 @@
"modifiers": {
"attackDamage": {
"uuid": "22653B89-116E-49DC-9B6B-9971489B5BE5",
"modifier": 0,
"modifier": -4,
"operation": "ADDITION"
}
},
Expand Down Expand Up @@ -236,7 +236,13 @@
"displayName": "Absorption",
"type": "good",
"protocolName": "absorption",
"modifiers": {},
"modifiers": {
"maxAbsorption": {
"uuid": "EAE29CF0-701E-4ED6-883A-96F798F3DAB5",
"modifier": 4,
"operation": "ADDITION"
}
},
"color": 2445989
},
{
Expand Down Expand Up @@ -330,7 +336,7 @@
"type": "neutral",
"protocolName": "bad_omen",
"modifiers": {},
"color": 7455580
"color": 745784
},
{
"id": 31,
Expand Down
5 changes: 4 additions & 1 deletion tools/js/extractEntityEffects.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const context = {
}
}

if (versionGreaterOrEqual('1.20')) {
if (versionGreaterOrEqual('1.20.2')) {
context.register = function (name, effect) {
const id = context.effects.length - 1
const prismarineName = toTitleCaseFromSnakeCase(name)
Expand Down Expand Up @@ -138,6 +138,9 @@ for (let i = 0; i < context.effects.length; i++) {
if (manualData[fail]) {
console.log('Using manual data for', fail)
generatedEffects[i] = manualData[fail]
if (versionGreaterOrEqual('1.20.2')) {
generatedEffects[i].id = i
}
} else {
throw new Error('Missing manual data for ' + fail)
}
Expand Down

0 comments on commit a003a68

Please sign in to comment.