Fix #103 size warning
This commit is contained in:
parent
7fcb5c36b6
commit
de3e16a3f0
@ -1810,6 +1810,27 @@ export class PegasusActor extends Actor {
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
processVehicleTargetMessage(rollData) {
|
||||
if (rollData.defenderTokenId) {
|
||||
let vehicle = game.canvas.tokens.get(rollData.defenderTokenId).actor
|
||||
if (vehicle.type == "vehicle") {
|
||||
if (rollData.subKey == "defence" && vehicle.system.statistics.ad.currentspeed == "crawling") {
|
||||
ChatMessage.create({ content: `${vehicle.name} is moving at Crawling speed : add a D8 to your Attack Dice Pool against this Vehicle` })
|
||||
}
|
||||
if (rollData.subKey == "defence" && vehicle.system.statistics.ad.currentspeed == "slow") {
|
||||
ChatMessage.create({ content: `${vehicle.name} is moving at Slow speed : add a D4 to your Attack Dice Pool against this Vehicle` })
|
||||
}
|
||||
}
|
||||
if (this.type == "vehicle" && rollData.statKey == "man" && this.system.statistics.ad.currentspeed == "fast") {
|
||||
ChatMessage.create({ content: `Vehicle is moving at Fast speed : anyone using the vehicles MAN Dice Pool suffers a D8 Hindrance which is added to the Difficulty Dice Pool against this Vehicle` })
|
||||
}
|
||||
if (this.type == "vehicle" && rollData.statKey == "man" && this.system.statistics.ad.currentspeed == "extfast") {
|
||||
ChatMessage.create({ content: `Vehicle is moving at Extremely Fast speed : anyone using the vehicles MAN Dice Pool suffers a D12 Hindrance which is added to the Difficulty Dice Pool against this Vehicle` })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
getCommonRollData(statKey = undefined, useShield = false, isInit = false, isPower = false, subKey = "", vehicle = undefined) {
|
||||
let rollData = PegasusUtility.getBasicRollData(isInit)
|
||||
@ -1869,8 +1890,6 @@ export class PegasusActor extends Actor {
|
||||
vehicle.addVehicleShields(rollData)
|
||||
}
|
||||
vehicle.addEffects(rollData, false, false, false)
|
||||
//this.addVehiculeHindrances(rollData.effectsList, vehicle)
|
||||
//this.addVehicleBonus(rollData, vehicle)
|
||||
}
|
||||
|
||||
rollData.specList = this.getRelevantSpec(statKey)
|
||||
@ -1914,6 +1933,8 @@ export class PegasusActor extends Actor {
|
||||
this.addArmorsShields(rollData, statKey, useShield, subKey)
|
||||
this.addWeapons(rollData, statKey, useShield)
|
||||
this.addEquipments(rollData, statKey)
|
||||
this.processVehicleTargetMessage(rollData)
|
||||
|
||||
console.log("ROLLDATA", rollData)
|
||||
|
||||
return rollData
|
||||
|
@ -253,7 +253,7 @@
|
||||
],
|
||||
"title": "Pegasus RPG",
|
||||
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
|
||||
"version": "10.1.2",
|
||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.1.2.zip",
|
||||
"version": "10.1.3",
|
||||
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-pegasus-rpg/archive/fvtt-pegasus-rpg-v10.1.3.zip",
|
||||
"background": "systems/fvtt-pegasus-rpg/images/ui/pegasus_welcome_page.webp"
|
||||
}
|
Loading…
Reference in New Issue
Block a user