mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-14 20:51:07 +01:00
Changed so that equip attempts always go through and the neccessary weapons are unequipped to fascilitate it
This commit is contained in:
parent
8e92b5f6d9
commit
9962c05a20
2 changed files with 3 additions and 11 deletions
|
|
@ -958,10 +958,7 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
currentWeapons.primary &&
|
||||
currentWeapons.primary.burden === SYSTEM.GENERAL.burden.twoHanded.value
|
||||
) {
|
||||
ui.notifications.error(
|
||||
game.i18n.localize('DAGGERHEART.Notification.Error.TwoHandedWeaponEquipped')
|
||||
);
|
||||
return;
|
||||
await this.document.items.get(currentWeapons.primary.id).update({ 'system.equipped': false });
|
||||
}
|
||||
|
||||
if (currentWeapons.secondary) {
|
||||
|
|
@ -969,10 +966,7 @@ export default class PCSheet extends DaggerheartSheet(ActorSheetV2) {
|
|||
}
|
||||
} else {
|
||||
if (currentWeapons.secondary && item.system.burden === SYSTEM.GENERAL.burden.twoHanded.value) {
|
||||
ui.notifications.error(
|
||||
game.i18n.localize('DAGGERHEART.Notification.Error.SecondaryWeaponEquipped')
|
||||
);
|
||||
return;
|
||||
await this.document.items.get(currentWeapons.secondary.id).update({ 'system.equipped': false });
|
||||
}
|
||||
|
||||
if (currentWeapons.primary) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue