Skip to content

Commit

Permalink
qol: Migrated template features
Browse files Browse the repository at this point in the history
  • Loading branch information
flamewave000 committed Mar 7, 2022
1 parent 555677c commit 08f49b3
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 602 deletions.
3 changes: 3 additions & 0 deletions df-qol/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# DragonFlagon Quality of Life

## Release 1.7.2 (2022-03-06)
I have removed all of the Template features. These features have found a home in their own dedicated module called DF Template Enhancements. They have also received additional features and some over-due bug fixes.

## Release 1.7.1 (2022-01-02)
- **NEW #274:** Japanese Localization: Courtesy of touge and [BrotherSharper](https://github.com/BrotherSharper).

Expand Down
22 changes: 0 additions & 22 deletions df-qol/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,6 @@ Each feature is not only self-contained, but when disabled will completely and c

- Touge & [BrotherSharper](https://github.com/BrotherSharper): Japanese Localization

## Auto-Target Tokens with Template

If enabled, templates will automatically mark tokens that are inside the template area of effect as "Targetted". This is very useful for quickly placing spell templates and be able to apply the spells affect to the targeted tokens.

![Auto-Target Tokens](../.assets/df-qol/df-qol-auto-target.gif)

## Template Preview

If enabled, templates will now actively update the grid highlighting and auto-targetting (if auto-target is on) whil moving the template around the scene, or whil creating a new template. This helps a lot when placing a new template and your players are trying to place it in a particular spot in an attempt to optimize their spell's impact.

![Template Preview](../.assets/df-qol/df-qol-template-preview.gif)

## D&D 5e Style Templates

The D&D 5e PHB states that an space touched by a spell's shape is affected, with the exception of Circular attacks (Sphere/Circle) in-which the square's center must be within the area of effect to targetted. Foundry by default instead uses requires the center of a square to be inside for ALL measure templates to be targetted.

When enabled, the Core Foundry template measurements will be overridden to follow D&D 5e's style of template targetting. There is also an option to revoke the Circle Template's rule exception and behave the same as the rest, hitting any square it touches.

|Foundry Core|D&D 5e|
|:-:|:-:|
|![Foundry Core Templates](../.assets/df-qol/df-qol-templates-core.png)|![D&D5e Style Templates](../.assets/df-qol/df-qol-templates-dnd5e.png)|

## Token Locking

If enabled, you will now be able to lock individual tokens. This works the same way as locking Tiles or Drawings. Perfect making sure players cannot move a token without having to pause the game. Or maybe you just want to place some tokens on a landing page and don't want players to accidentally move them around.
Expand Down
6 changes: 3 additions & 3 deletions df-qol/lang/ja.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"Localization Provided By": "touge",
"Localization Provided By": "touge",
"DF-QOL.errorLibWrapperMissing": "「DF Quality of Life」にはモジュール「libWrapper」が必要です。「libWrapper」をインストールして有効化してください。",
"DF_QOL": {
"QuickRoll": {
"Title": "ロール表のクイックロールを有効にする",
"Hint": "(要再読み込み) ロール表の右クリックメニューに、表を開かずにロールするオプションを追加します。",
"MenuItem": "クイックロール"
"MenuItem": "クイックロール"
},
"AutoFocus": {
"Title": "新規作成時の入力欄への自動フォーカスを有効にする",
Expand Down Expand Up @@ -43,7 +43,7 @@
"TemplateTargeting": {
"SettingName": "テンプレートによるコマの自動ターゲット",
"SettingHint": "有効にすると、範囲指定テンプレート内にいるコマが自動的にターゲットされるようになります。",
"PreviewName": "テンプレートのターゲットをハイライトする",
"PreviewName": "テンプレートのターゲットをハイライトする",
"PreviewHint": "グリッドのハイライトを表示して自動的にコマのターゲットを行います。",
"ToggleTitle": "コマの自動ターゲット",
"Patch5e_Name": "D&D5e準拠のテンプレートを使用する",
Expand Down
3 changes: 2 additions & 1 deletion df-qol/module.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "df-qol",
"version": "1.7.1",
"version": "1.7.2",
"title": "DF Quality of Life",
"description": "A set of various small Quality of Life changes that don't quite fit in my other larger modules.",
"author": "flamewave000#0001",
Expand All @@ -19,6 +19,7 @@
"readme": "https://github.com/flamewave000/dragonflagon-fvtt/tree/master/df-qol/README.md",
"changelog":"https://github.com/flamewave000/dragonflagon-fvtt/tree/master/df-qol/CHANGELOG.md",
"manifestPlusVersion": "1.0.0",
"bugs": "https://github.com/flamewave000/dragonflagon-fvtt/issues",
"authors": [ { "name": "flamewave000", "discord": "flamewave000#0001", "url": "https://github.com/flamewave000" } ],
"media": [
{ "type": "icon", "url": "https://raw.githubusercontent.com/flamewave000/dragonflagon-fvtt/master/.assets/logo.png" },
Expand Down
2 changes: 1 addition & 1 deletion df-qol/src/DayNightTransition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class DayNightTransition {
const animationName = "lighting.animateDarkness";
CanvasAnimation.terminateAnimation(animationName);
if (target === this.darknessLevel) return false;
if (duration <= 0) return this.refresh({ darkness: target });
if (duration <= 0) return this.refresh(target);
// Prepare the animation data object
const animationData = [{
parent: { darkness: this.darknessLevel },
Expand Down
Loading

0 comments on commit 08f49b3

Please sign in to comment.