-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
810 additions
and
519 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { ACUpdateBase } from "../ACUpdateBase.mjs"; | ||
|
||
export default class Update_240530_1 extends ACUpdateBase { | ||
static version = 240530.1; | ||
|
||
async updateItem(itemData, actorData) { | ||
if (itemData.type !== "weapon") return; | ||
|
||
const updateData = {}; | ||
|
||
for (const key in itemData.system.qualities) { | ||
const value = itemData.system.qualities[key].value; | ||
|
||
if (key === "closeQuarters") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.close_quarters.value"] = value; | ||
} | ||
else if (key === "giant-killer") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.giant_killer.value"] = value; | ||
} | ||
else { | ||
updateData[`system.qualities.${key}.-=description`] = null; | ||
updateData[`system.qualities.${key}.-=label`] = null; | ||
} | ||
} | ||
|
||
return updateData; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { ACUpdateBase } from "../ACUpdateBase.mjs"; | ||
|
||
export default class Update_240531_1 extends ACUpdateBase { | ||
static version = 240531.1; | ||
|
||
async updateActor(actorData) { | ||
if (actorData.type !== "vehicle") return; | ||
|
||
const updateData = {}; | ||
|
||
for (const key in actorData.system.qualities) { | ||
const value = actorData.system.qualities[key].value; | ||
|
||
let rank = actorData.system.qualities[key].rank; | ||
rank = rank && rank >= 0 ? rank : 0; | ||
|
||
if (key === "cargo") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.cargo_x.rank"] = rank; | ||
updateData["system.qualities.cargo_x.value"] = value; | ||
} | ||
else if (key === "highPerformance") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.high_performance.rank"] = rank; | ||
updateData["system.qualities.high_performance.value"] = value; | ||
} | ||
else if (key === "singleSeat") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.single_seat.rank"] = rank; | ||
updateData["system.qualities.single_seat.value"] = value; | ||
} | ||
else if (key === "tough") { | ||
updateData[`system.qualities.-=${key}`] = null; | ||
updateData["system.qualities.tough_x.rank"] = rank; | ||
updateData["system.qualities.tough_x.value"] = value; | ||
} | ||
} | ||
|
||
return updateData; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.