Fix #21 Effect for actors
This commit is contained in:
parent
f048408aa1
commit
262bd3b480
@ -1647,11 +1647,13 @@ export class PegasusActor extends Actor {
|
||||
ui.notifications.warn("MR not added to Melee Damage due to Full Stop.")
|
||||
} else {
|
||||
rollData.statVehicle = vehicle.system.statistics.mr
|
||||
rollData.vehicleKey = "mr"
|
||||
}
|
||||
this.addVehicleWeapons(rollData, vehicle)
|
||||
}
|
||||
if (subKey == "ranged-atk") {
|
||||
rollData.statVehicle = vehicle.system.statistics.fc
|
||||
rollData.vehicleKey = "fc"
|
||||
}
|
||||
if (subKey == "ranged-dmg") {
|
||||
this.addVehicleWeapons(rollData, vehicle)
|
||||
@ -1661,8 +1663,10 @@ export class PegasusActor extends Actor {
|
||||
ui.notifications.warn("MAN not added to Defense due to Full Stop.")
|
||||
} else {
|
||||
rollData.statVehicle = vehicle.system.statistics.man
|
||||
rollData.vehicleKey = "man"
|
||||
}
|
||||
}
|
||||
vehicle.addEffects(rollData, false, false, false)
|
||||
//this.addVehiculeHindrances(rollData.effectsList, vehicle)
|
||||
//this.addVehicleBonus(rollData, vehicle)
|
||||
}
|
||||
|
@ -44,6 +44,18 @@
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
{{else}}
|
||||
|
||||
{{#if (eq @root.vehicleKey effect.effect.system.stataffected)}}
|
||||
<li class="flex-group-left">
|
||||
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
||||
{{#if effect.effect}}
|
||||
<label class="generic-label">{{effect.label}} ({{upperFirst effect.effect.system.type}}, {{upperFirst effect.effect.system.genre}}, {{effect.value}})</label>
|
||||
{{else}}
|
||||
<label class="generic-label">{{effect.label}} ({{effect.value}})</label>
|
||||
{{/if}}
|
||||
</li>
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq @root.statKey effect.effect.system.stataffected)}}
|
||||
<li class="flex-group-left">
|
||||
<label class="attribute-value checkbox"><input type="checkbox" class="effect-clicked" id="effect-{{idx}}" data-effect-idx="{{idx}}" {{checked effect.applied}}/></label>
|
||||
@ -76,6 +88,7 @@
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
Loading…
Reference in New Issue
Block a user