Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warnings for Combat specialization talents #3245

Merged
merged 1 commit into from
Jul 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions ui/rogue/sim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,61 @@ export class RogueSimUI extends IndividualSimUI<Spec.SpecRogue> {
},
};
},
(simUI: IndividualSimUI<Spec.SpecRogue>) => {
return {
updateOn: simUI.player.changeEmitter,
getContent: () => {
if (simUI.player.getTalents().hackAndSlash) {
if (simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotMainHand)?.item.weaponType == WeaponType.WeaponTypeSword ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotMainHand)?.item.weaponType == WeaponType.WeaponTypeAxe ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponType == WeaponType.WeaponTypeSword ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponType == WeaponType.WeaponTypeAxe) {
return '';
} else {
return '"Hack and Slash" talent selected, but swords or axes not equipped.';
}
} else {
return '';
}
},
};
},
(simUI: IndividualSimUI<Spec.SpecRogue>) => {
return {
updateOn: simUI.player.changeEmitter,
getContent: () => {
if (simUI.player.getTalents().closeQuartersCombat) {
if (simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotMainHand)?.item.weaponType == WeaponType.WeaponTypeFist ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotMainHand)?.item.weaponType == WeaponType.WeaponTypeDagger ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponType == WeaponType.WeaponTypeFist ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponType == WeaponType.WeaponTypeDagger) {
return '';
} else {
return '"Close Quarters Combat" talent selected, but fists or axes not equipped.';
}
} else {
return '';
}
},
};
},
(simUI: IndividualSimUI<Spec.SpecRogue>) => {
return {
updateOn: simUI.player.changeEmitter,
getContent: () => {
if (simUI.player.getTalents().maceSpecialization) {
if (simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotMainHand)?.item.weaponType == WeaponType.WeaponTypeMace ||
simUI.player.getGear().getEquippedItem(ItemSlot.ItemSlotOffHand)?.item.weaponType == WeaponType.WeaponTypeMace) {
return '';
} else {
return '"Mace Specialization" talent selected, but maces not equipped.';
}
} else {
return '';
}
},
};
},
(simUI: IndividualSimUI<Spec.SpecRogue>) => {
return {
updateOn: simUI.player.changeEmitter,
Expand Down