Skip to content

Commit

Permalink
fix(vehicle): include vehicle weapons in the port logic (#1179)
Browse files Browse the repository at this point in the history
* should fix hyperlinked vehicle weapon qualities
  • Loading branch information
wrycu authored Jan 31, 2023
1 parent 80dbe9f commit ff58ff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/swffg-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ Hooks.once("ready", async () => {
let update_data = [];
actor.items.forEach((item) => {
let updated_item = item.toObject(true);
if (["weapon", "armour"].includes(item.type)) {
if (["weapon", "armour", "shipweapon"].includes(item.type)) {
// iterate over attachments and modifiers on the item
updated_item.system.itemmodifier.map((modifier) => {
if (modifier !== null && modifier?.hasOwnProperty('data')) {
Expand Down Expand Up @@ -693,7 +693,7 @@ Hooks.once("ready", async () => {
game.items.forEach((item) => {
let updated = false;
let updated_item = item.toObject(true);
if (["weapon", "armour"].includes(item.type)) {
if (["weapon", "armour", "shipweapon"].includes(item.type)) {
// iterate over attachments and modifiers on the item
updated_item.system.itemmodifier.map((modifier) => {
if (modifier?.hasOwnProperty('data')) {
Expand Down

0 comments on commit ff58ff9

Please sign in to comment.