v2.3.2 #43

Merged
mike merged 4 commits from develop into main 2024-01-23 06:33:31 +00:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 5514da4774 - Show all commits

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Added Dodge as a detected edge on a target for roll modifiers
## [2.3.1] 2023-12-26 ## [2.3.1] 2023-12-26
### Added ### Added

View File

@ -47,6 +47,9 @@ export async function preTraitRollModifiers (actor, trait, roll, modifiers, opti
if (scaleMod !== 0) { if (scaleMod !== 0) {
modifiers.push({ label: 'Scale', value: scaleMod, ignore: false }) modifiers.push({ label: 'Scale', value: scaleMod, ignore: false })
} }
if (target.actor.items.find(e => e.type === 'edge' && e.system.swid === 'dodge')) {
modifiers.push({ label: 'Dodge', value: -2, ignore: true })
}
if (trait?.type === 'skill' && trait?.system?.swid === 'fighting') { if (trait?.type === 'skill' && trait?.system?.swid === 'fighting') {
const gangUpBonus = calcGangup(token, target) const gangUpBonus = calcGangup(token, target)
if (gangUpBonus > 0) { if (gangUpBonus > 0) {