rebalance sns hiking boots (#1894)
* rebalance sns hiking boots * fix accidental nerf * Revert "fix accidental nerf" This reverts commit 2c970ef1ac04e93e4c5b76dac35d8a4069bcab69. * commit wrong file...
This commit is contained in:
parent
013c26dafa
commit
8b7186bc3b
3 changed files with 26 additions and 2 deletions
23
kubejs/startup_scripts/sacksnsuch/modifications.js
Normal file
23
kubejs/startup_scripts/sacksnsuch/modifications.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
"use strict";
|
||||
|
||||
function registerSNSItemModifications(event) {
|
||||
const bootPairs = [
|
||||
// [hiking_boot, non-hiking_equivalent]
|
||||
['sns:hiking_boots', 'minecraft:leather_boots'],
|
||||
['sns:steel_toe_hiking_boots', 'tfc:metal/boots/steel'],
|
||||
['sns:black_steel_toe_hiking_boots', 'tfc:metal/boots/black_steel'],
|
||||
['sns:blue_steel_toe_hiking_boots', 'tfc:metal/boots/blue_steel'],
|
||||
['sns:red_steel_toe_hiking_boots', 'tfc:metal/boots/red_steel']
|
||||
]
|
||||
|
||||
// for each pair, set the max damage of the hiking boot to 10% more than the normal boot
|
||||
bootPairs.forEach(pair => {
|
||||
const hikingBoot = pair[0]
|
||||
const normalBoot = pair[1]
|
||||
|
||||
event.modify(hikingBoot, item => {
|
||||
item.maxDamage = Item.of(normalBoot).maxDamage * 1.1
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue