Commit graph

43 commits

Author SHA1 Message Date
e021fedcdf
style: fix code formatting inconsistencies
- Remove excessive blank lines (triple+ newlines reduced to double)
- Fix EditorConfig indent_size from 4 to 2 spaces to match Prettier
- Ensure consistent whitespace formatting across JavaScript/TypeScript files
- Clean up formatting in templates (HBS files)

Files affected:
- src/apps/actor/base-sheet.js: Remove 6 instances of triple+ blank lines
- src/apps/item-sheet.js: Remove 4 instances of triple+ blank lines
- src/apps/ruler/token-ruler.js: Remove 1 instance of triple+ blank lines
- src/hooks/hooks.ts: Remove 1 instance of triple+ blank lines
- templates/sheets/actor/*.hbs: Remove excessive blank lines
- .editorconfig: Fix indent_size to match Prettier tabWidth (2 spaces)
2025-07-28 22:18:44 +02:00
7fcdcf8a5c
fix: correct effects display in item sheet template
- Fix item sheet effects template to use enrichedEffects instead of data.effects
- Ensures effects are properly displayed in the item sheet effects tab
- Aligns with actor sheet implementation for consistency

The template was referencing data.effects but the context preparation creates
enrichedEffects array with additional metadata (id, uuid, sourceName).
2025-07-28 22:14:41 +02:00
3eaf69f558
fix: remove duplicate action handlers and improve template action generation
- Remove duplicate action handlers (edititem, deleteitem, createitem, etc.) from DS4ActorSheet and DS4ItemSheet
- Fix editImage method reference from static to prototype in DS4ActorSheet
- Add capitalize helper to handlebars-helpers.ts for dynamic action name generation
- Update control-button-group.hbs and add-button.hbs templates to use concat and capitalize helpers
- Ensure consistent camelCase naming for all action handlers (editItem, deleteItem, createItem, etc.)

This resolves action handler conflicts and improves maintainability by using dynamic template generation
instead of hardcoded conditional logic.
2025-07-28 21:55:06 +02:00
76d223db0f
fix(ui): remove duplicate data-action attributes in item sheet tabs 2025-07-17 18:40:45 +02:00
e9c223731d
fix(item-sheet): enable image editing via file picker 2025-07-16 22:33:34 +02:00
4479cdc4de
feat: enhance movement waypoint styling with semantic colors and
animations
2025-07-13 16:49:21 +02:00
7faadf6583
feat: add color-coded movement ruler for tactical gameplay 2025-07-13 16:12:04 +02:00
792f15dc57
fix: dragging of items onto the macro bar 2025-07-13 15:41:55 +02:00
3efbac9e84
feat: complete migration from {{editor}} to <prose-mirror> elements 2025-07-13 15:41:54 +02:00
372a2f718c
fix: update TextEditor references to use V13+ namespaced API 2025-07-13 15:41:54 +02:00
3284b132b4
fix: replace {{editor}} handlebars helper with <prose-mirror> custom element 2025-07-13 15:41:53 +02:00
f46a89f470
feat: add dark mode styling for combat values 2025-07-13 15:41:53 +02:00
aa9cbee8b4
feat: add Edit Image Handler to Actor Sheet 2025-07-13 15:41:52 +02:00
4821eba0a9
feat!: complete ApplicationV2 migration with item sheet port
Convert DS4ItemSheet and all item sheet templates from ApplicationV1 to
ItemSheetV2. Add V2 action handlers, tab navigation, and form
processing. Update effect management to use DialogV2. Preserve all
functionality including tab state and override handling.
2025-07-13 15:41:51 +02:00
cd44db079f
feat!: port DS4 actor sheets to ApplicationV2
Convert DS4ActorSheet, DS4CharacterActorSheet, and DS4CreatureActorSheet
from ApplicationV1 to ApplicationV2 architecture. Update all templates
to use data-action attributes. Implement manual tab system and preserve
all existing functionality including item management, effects, and
rolling system.

BREAKING CHANGE: Requires FoundryVTT ApplicationV2 system
2025-07-12 20:44:03 +02:00
c26574d2d1
Fix expand rolls in chat in v13 2025-05-02 11:21:09 +02:00
Johannes Loher
6ac9f49463
feat!: migrate to v12
BREAKING CHANGE: Support for v11 has been dropped
2025-02-22 16:00:03 +01:00
Johannes Loher
8a5fa072ce
fix: make drag & drop of items from actor sheet work again 2023-07-27 01:05:35 +02:00
Johannes Loher
62065a8d31
feat: use new ActiveEffect transferral system
Closes #68
2023-07-09 23:17:38 +02:00
Johannes Loher
692d311558
fix: make ActiveEffects work properly 2023-07-09 23:16:54 +02:00
Johannes Loher
f25b46a226 feat: update for v10 2022-11-28 02:39:04 +01:00
Johannes Loher
e89f03f81d feat: display talent rank with roman numerals in character sheet 2022-11-10 04:00:48 +01:00
Johannes Loher
1e7492073e fix: simplify talent rank display in character sheet 2022-11-10 03:32:52 +01:00
Johannes Loher
1e094691ff feat: display opponent defense in attack/spell rolls and make it adjustable via effects
This makes it so that the Talents “Verletzen” and “Verheerer” can sort of be automated.
Compendium packs have been updated accordingly.
2022-11-10 01:43:42 +01:00
Johannes Loher
9d7c570553 feat: replace spell category by spell groups
This also allows to assign a spell to multiple spell groups, which is the case for many spells in
the SRD.

Additionally, this makes many small improvements and fixes to the provided spell compendium.
2022-11-04 21:14:32 +01:00
Johannes Loher
2023019d3a fix: visually disable/remove interactive elements in non-editable sheets 2022-11-04 00:03:03 +01:00
Johannes Loher
fc9f4b49b5 feat: add a special actor sheet that is displayed to users with the LIMITED permission for the actor
This actor sheet only shows image, name, and biography/description of the actor.
2022-11-03 23:02:46 +01:00
Johannes Loher
b1ed05a796 feat: add functionality to apply Active Affects to owned Items
In the Active Effect Config, there are now additional inputs to configure the effect
to be applied to items owned by the actor instead of the actor itself. It is possible
to select the items to which to apply the effect via matching by name, or via a condition
expression, that provides similar capabilities as the evaluation of mathematical
expressions in rolls. Data from the Actor, Item, and Active Effect can be accessed
similar to how properties are accessed in roll formulas (using the prefixes `@actor`,
`@item`, and `@effect`). For example, in order to apply an effect to all ranged
weapons, the conditions would be
```js
'@item.type' === 'weapon' && '@item.data.attackType' === 'ranged'
```
2022-11-03 22:14:36 +01:00
Johannes Loher
63c30ca18b fix: hide overflow of columns in effects tab in actor sheets 2022-08-15 15:02:31 +02:00
Johannes Loher
3e0eba268b feat: make custom modifier the default in the roll options dialog 2022-06-11 12:45:51 +02:00
Johannes Loher
a94fb55e19 fix: make the HTML ids in the roll options dialog unique 2022-05-13 17:31:14 +00:00
Johannes Loher
82217dd971 feat: add selectable check modifiers 2022-05-13 17:31:14 +00:00
Johannes Loher
da1f6999eb feat: only allow specific selectable values for the cooldown duration of spells
World data (including compendium packs) is migrated automatically. In order to also migrate packs
provided by modules, you can use the following macro:
```js
const pack = game.packs.get("<name-of-the-module>.<name-of-the-pack>");
game.ds4.migration.migrateCompendiumFromTo(pack, 4, 5);
```
2022-02-16 01:58:21 +01:00
Johannes Loher
76f578a3fa fix: don't use an input to display the spell price as it's not editable 2022-02-13 19:53:29 +01:00
Johannes Loher
76a0e9f6e5 fix: avoid hover effect of add (item / effect) button being cut off 2022-02-13 00:36:35 +01:00
Johannes Loher
1aa284311f refactor: resturcture files so that lincensing info can be bundled properly 2022-01-31 15:31:45 +01:00
Johannes Loher
d163fd27fe switch to using TypeScript 2020-12-23 16:52:20 +01:00
Johannes Loher
27487c5bae initial attempt for using ActiveEffects and applying item base stats 2020-10-30 00:48:06 +01:00
Johannes Loher
abeb9d8b24 Add additional physical item types 2020-10-29 22:01:13 +01:00
Johannes Loher
e51376dc02 add item type to weapon sheet 2020-10-29 18:49:51 +01:00
Johannes Loher
1437dd6ee1 Add availability to weapon sheet 2020-10-29 17:48:56 +01:00
Johannes Loher
3dd459660e make basic properties in weapon editable 2020-10-29 17:25:37 +01:00
Johannes Loher
91694af3e9 initial commit 2020-10-29 16:18:38 +01:00