github foundryvtt/dnd5e release-2.0.1

3 years ago

dnd5e-201

dnd5e 2.0.1

We're happy to release a new version of the dnd5e system that coincides with the release of Foundry VTT version 10. As such, a large portion of the changes here have been devoted to compatibility with the new Foundry VTT version, and include lots of housekeeping and clean-up. Additionally, many bugs and small API changes have been worked on in the time since the previous release.

COMPATIBILITY WARNING: The version 2.0.1 release for the system ONLY SUPPORTS Foundry Virtual Tabletop version 10 (release) and greater. To use this new game system version you must also use Foundry VTT version 10. If you do not wish to update your core software, please continue using a previous version of the dnd5e system.

Installation: To manually install this release, please use the following manifest URL: https://github.com/foundryvtt/dnd5e/releases/download/release-2.0.1/system.json


Patch Notes

The full list of changes is included below:

⚠️ Breaking Changes

Icons

The system icons under icons/items, icons/skills, and icons/spells have been removed in favour of the icons provided by core Foundry VTT. Additionally, the png token images under tokens/ have also been removed in favour of their webp counterparts. All of these images were migrated a while ago and so we do not expect this change to cause much disruption. If you have your own compendium packs, or if you are a module author that provides compendia with your module, you can trigger a migration that will convert the images automatically with the dnd5e.migrations.migrateCompendium utility.

Dropping Folders on an Actor

To align with the core API signature, _onDropItemCreate now accepts an array of itemData and calls the new _onDropSingleItem for each item provided in this way. Overrides of _onDropItemCreate that do not expect multiple items should override _onDropSingleItem instead.

Number Inputs

All <input> elements that were previously using data-dtype="Number" have been changed to <input type="number"> instead. Any styles or other selectors targeting these elements may need to be updated.

Skills Refactor

The CONFIG.DND5E.skills object has been refactored into an enum of objects rather than strings.

Actor5e Refactor

In order to clean up and smooth out the preparation flow for actors, the Actor5e class has had a few methods renamed and shuffled around. The original methods continue to exist and will log a deprecation warning until they are removed in a few more versions.

  • _computeArmorClass -> _prepareArmorClass (no longer returns a value)
  • _computeEncumbrance -> _prepareEncumbrance (no longer returns a value)
  • _computeInitiativeModifier -> _prepareInitiative
  • _computeSpellcastingProgression -> _prepareSpellcasting
  • _simplifyBonus -> dnd5e.utils.simplifyBonus

⚠️ Project Restructure ⚠️

The entire dnd5e project has undergone an internal restructuring. As part of this, all ESM files that previously had a .js extension have been renamed to .mjs instead, and all Handlebars templates with an .html extension have been renamed to .hbs. Additionally, the system is now provided as a single, rolled-up file to end users. This means that if your module was previously importing individual files or classes from the dnd5e system directory, those imports will no longer work. All of the public classes are available on the dnd5e object, however, and this object should be available to your module code immediately, without any need for hooks.

Remove any imports like the following:

import ActorSheet5eCharacter from '../../../../systems/dnd5e/module/actor/sheets/character.js';

Where your module references dnd5e classes, such as ActorSheet5eCharacter, replace them with the following:

class MyCharacterSheet extends dnd5e.applications.actor.ActorSheet5eCharacter {}

Compendium Content

  • Added Forgotten Adventures token packs 29-36.
  • Fixed the number of targets for Telepathic Bond.
  • Updated the SRD Rules compendium to use the Journal Pages feature.
  • Fixed the weight and cost of the Herbalism Kit.
  • Fixed some icons that weren't correctly migrated.

Features

  • [#1441] Moved migration version constants into system.json flags.
  • [#1553] Added the ability to duplicate Advancements.
  • [#1664] Prompt the GM to reload the world when they change system settings that require it.
  • [#1673] Added short names for Handlebars partials.
  • Added several additional hooks to the item and actor rolling workflows. See the wiki for details.
  • [#1667] Fixed an instance of a low-contrast icon.
  • [#1643] Improved the rollSkill signature to allow options to more easily pass through.
  • [#1693] Improved the d20Roll API to allow for critical successes and failures to be deliberately suppressed.
  • [#1677] Added an identifier to measures templates created by items.
  • [#1543] Improved the item#roll API to allow certain resource consumptions to be disabled.
  • [#1675] Added UUIDs to Advancement objects.
  • [#1532] Display tool's type on its sheet header.
  • [#1706] Add support for vehicles (space) tool proficiency.
  • [#1314] Allow modules to customise the available skills by modifying CONFIG.DND5E.skills.
  • [#1610] Add the ability to apply temporary HP from the context menu on dice rolls.

Bug Fixes

  • [#1476] Fixed issue with dropping a folder onto an actor sheet.
  • [#1649] Fixed several bugs in item grant advancement.
  • [#1691] Fixed an issue preventing the ProficiencySelector from showing selected items.
  • [#1607] Avoid setting NPC weapon proficiency or equipped status if already provided at creation time.
  • [#1470] Fixed unnecessary system migration in some cases.
  • [#1698] Fixed rollDeathSave not respecting the roll mode when displaying dead/stable.
  • [#1556] Fixed level selector issue for classes that did not have Advancements configured for all levels.
  • [#1652] Fixed an issue where Advancements on owned items would not be triggered if the class did not have an Advancement for that level.
  • [#1683] Fixed hit die rolls not included their derived data.
  • [#1748] The dnd5e.useItem hook should now be called even if the item's associated measured template is cancelled.
  • [#1140] Fixed doubling crit dice if the formula for the dice rolled contained a parenthetical expression.

Contributors

Many thanks to the following contributors in particular:

  • Calego
  • Chris Seieroe
  • Daniel Thorp
  • 'DjinnStar'
  • 'Giddy'
  • Kevin Winkler
  • 'kjolern'
  • Jeff 'Arbron' Hitchcock

... as well as all those who submitted bug reports and issues.

Don't miss a new dnd5e release

NewReleases is sending notifications on new releases.