Skip to content

Commit

Permalink
timeworn
Browse files Browse the repository at this point in the history
  • Loading branch information
turinpt committed Nov 14, 2024
1 parent f65442d commit f981f23
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dist/js/classes/player.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/data/enchants.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/data/gear_sod.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/ui.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions gear/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
await loadTable('SpellShapeshift');
await loadTable('ShieldBlockValue');
await loadTable('Icons');
let timeworn = [];

for (let item of Item) {
let obj = {};
Expand Down Expand Up @@ -596,8 +597,11 @@

findDupe(obj);
addToGear(obj);
if (obj.tw) timeworn.push(obj.id);
}

console.log(timeworn.join(','));

// custom items
// gear["head"].push({
// "id": 215161,
Expand Down
16 changes: 10 additions & 6 deletions js/classes/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,10 +300,7 @@ class Player {
if (item.id == 228122)
this.spells.themoltencore = new TheMoltenCore(this);

if (item.tw) {
this.timeworn++;
console.log(this.timeworn);
}
if (item.tw) this.timeworn++;

this.items.push(item.id);
}
Expand Down Expand Up @@ -629,8 +626,8 @@ class Player {
$("#currentarmor").text(this.target.basearmorbuffed);

// timeworn
if (this.items.includes(234034) || this.items.includes(234202)) {
this.base.dmgmod *= (1 + this.timeworn / 100);
if (!this.items.includes(234034) && !this.items.includes(234202)) {
this.timeworn = 0;
}
}
addSpells(testItem) {
Expand Down Expand Up @@ -1569,6 +1566,13 @@ class Player {
else extras++;
/* start-log */ if (this.logging) this.log(`Hakkari set extra attack proc`); /* end-log */
}
// Timeworn extra
if (this.timeworn && !damageSoFar && this.timewornstep != step && rng10k() < this.timeworn * 100) {
this.timewornstep = step;
if (spell) this.extraattacks++;
else extras++;
/* start-log */ if (this.logging) this.log(`Timeworn proc`); /* end-log */
}
// Blood Surge
if (this.bloodsurge && (spell instanceof Whirlwind || spell instanceof Bloodthirst || spell instanceof HeroicStrike || spell instanceof QuickStrike) && rng10k() < 3000) {
this.freeslam = true;
Expand Down
9 changes: 9 additions & 0 deletions js/data/enchants.js
Original file line number Diff line number Diff line change
Expand Up @@ -1441,5 +1441,14 @@ var enchant = {
]
},

{
id: 121212,
name: 'Timeworn',
items: [233496,233506,233514,233516,233518,233522,233523,233559,233560,233561,233564,233568,233577,233579,233582,233583,233584,233590,233591,233592,233593,233595,233598,233603,233604,233608,233610,233612,233613,233614,233618,233622,233635,233637,234063,234065,234066,234068,234069,234071,234072,234075,234077,234078,234084,234087,234088,234090,234091,234094,234095,234098,234099,234102,234103,234107,234110,234111,234120,234123],
bonus: [
{ count: 2, stats: { } },
]
},


];

0 comments on commit f981f23

Please sign in to comment.