Skip to content

Commit

Permalink
.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs committed Jan 29, 2025
1 parent 655bbbc commit cf92e41
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 14 deletions.
16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](<https://semver.org/spec/v2.0.

## [Unreleased]

## [1.0.0-alpha.2] - 2025-01-29

### Added

- Tours. Or one, specifically. May be expanded upon in the future.
- Crosshair snap resolution.
- Looking at Animation History JSON.

### Changed

- Staff animation not requiring a target.
- Added "`target:distance` above 0 feet" predicate to all animations requiring targets to work.

## [1.0.0-alpha.1] - 2025-01-25

### Added
Expand Down Expand Up @@ -487,7 +500,8 @@ and this project adheres to [Semantic Versioning](<https://semver.org/spec/v2.0.
- Moved internal structure
- Pre-release versions to be semver compliant

[Unreleased]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.1...HEAD
[Unreleased]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.2...HEAD
[1.0.0-alpha.2]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha.1...v1.0.0-alpha.2
[1.0.0-alpha.1]: https://github.com/MrVauxs/pf2e-graphics/compare/v1.0.0-alpha...v1.0.0-alpha.1
[1.0.0-alpha]: https://github.com/MrVauxs/pf2e-graphics/compare/v0.9.4...v1.0.0-alpha
[0.9.4]: https://github.com/MrVauxs/pf2e-graphics/compare/v0.9.3...v0.9.4
Expand Down
7 changes: 6 additions & 1 deletion animations/weapons/base/staff.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
"contents": [
{
"predicates": [
"target"
{
"gt": [
"target:distance",
0
]
}
],
"execute": {
"type": "graphic",
Expand Down
9 changes: 8 additions & 1 deletion animations/weapons/group/axe.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
"attack-roll"
],
"predicates": [
"melee"
"melee",
{
"gt": [
"target:distance",
0
]
}

],
"contents": [
{
Expand Down
8 changes: 7 additions & 1 deletion animations/weapons/group/club.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
"item:group:club": [
{
"predicates": [
"melee"
"melee",
{
"gt": [
"target:distance",
0
]
}
],
"triggers": [
"attack-roll"
Expand Down
8 changes: 7 additions & 1 deletion animations/weapons/slug/unarmed.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"item:slug:fist": [
{
"predicates": [
"melee"
"melee",
{
"gt": [
"target:distance",
0
]
}
],
"triggers": [
"attack-roll"
Expand Down
33 changes: 24 additions & 9 deletions src/view/ChatMessage/TourNag.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<script lang='ts'>
import type { ChatMessagePF2e } from 'foundry-pf2e';
import { i18n } from 'src/utils';
export let message: ChatMessagePF2e;
const { unstartedTourConfigs } = message.flags['pf2e-graphics'] as { unstartedTourConfigs: TourConfig[] };
Expand All @@ -8,17 +9,31 @@
window.game.settings.set('pf2e-graphics', 'tourNag', false);
message.delete();
}
function getTourDoc(tour: TourConfig) {
return window.game.tours.get(`${tour.namespace}.${tour.id}`) as Tour;
}
</script>

<h2>Welcome to <i>PF2e Graphics!</i></h2>
<div class='pf2e-g'>
<h2>Welcome to <i>PF2e Graphics!</i></h2>

<p>Do you want a tour? :)</p>

<p>Do you want a tour? :)</p>
<ul>
{#each unstartedTourConfigs as tour}
<li>Yes! I want to learn about: <code>{tour.id}</code></li>
{@const tourDoc = getTourDoc(tour)}
<button
on:click={() => tourDoc.start()}
disabled={tourDoc.status !== 'unstarted'}
class:line-through={tourDoc.status !== 'unstarted'}
>
Yes! I want to learn about the <i>{i18n(tour.title)}</i>.
</button>
{/each}
</ul>
<hr />
<button class='' on:click={close}>
<b>Never speak to me again >:(</b>
</button>

<hr />
<button class='' on:click={close}>

<b>Never speak to me again >:(</b>
</button>
</div>

0 comments on commit cf92e41

Please sign in to comment.