Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 65dfb3ddff | |||
| 809a7b80c2 | |||
| a0de5ce91a | |||
| 888b08fc8d | |||
| 58d9b10251 |
@@ -0,0 +1,122 @@
|
|||||||
|
# Configuration des Types d'Armes - PRISM RPG
|
||||||
|
|
||||||
|
## Aperçu
|
||||||
|
|
||||||
|
Ce système permet de configurer et d'ajouter des types d'armes et des groupes d'armes personnalisés via les Settings de Foundry VTT.
|
||||||
|
|
||||||
|
## Fichiers Créés
|
||||||
|
|
||||||
|
### 1. `/module/settings.mjs`
|
||||||
|
- Enregistre les settings pour les types d'armes personnalisés
|
||||||
|
- Enregistre les settings pour les groupes d'armes personnalisés
|
||||||
|
- Crée le menu de configuration dans les Settings
|
||||||
|
|
||||||
|
### 2. `/module/applications/weapon-types-config.mjs`
|
||||||
|
- Application FormApplication pour éditer les types et groupes d'armes
|
||||||
|
- Interface avec onglets (Types d'Armes / Groupes d'Armes)
|
||||||
|
- Fonctionnalités d'ajout, édition et suppression
|
||||||
|
- Bouton de réinitialisation aux valeurs par défaut
|
||||||
|
|
||||||
|
### 3. `/templates/weapon-types-config.hbs`
|
||||||
|
- Template Handlebars pour l'interface de configuration
|
||||||
|
- Affichage en onglets
|
||||||
|
- Formulaires pour chaque type/groupe d'arme
|
||||||
|
|
||||||
|
### 4. `/styles/weapon-types-config.less`
|
||||||
|
- Styles CSS pour l'interface de configuration
|
||||||
|
- Design cohérent avec le système PRISM RPG
|
||||||
|
|
||||||
|
## Fichiers Modifiés
|
||||||
|
|
||||||
|
### 1. `/module/config/weapon.mjs`
|
||||||
|
- Conversion des constantes `TYPE` et `WEAPON_GROUP` en Proxies dynamiques
|
||||||
|
- Ajout de fonctions `getWeaponTypes()` et `getWeaponGroups()`
|
||||||
|
- Les types/groupes sont maintenant chargés depuis les settings
|
||||||
|
- Rétrocompatibilité maintenue
|
||||||
|
|
||||||
|
### 2. `/module/models/weapon.mjs`
|
||||||
|
- Import des fonctions `getWeaponTypeChoices()` et `getWeaponGroupChoices()`
|
||||||
|
- Utilisation de fonctions dynamiques au lieu de constantes statiques
|
||||||
|
- Les choix sont mis à jour automatiquement depuis les settings
|
||||||
|
|
||||||
|
### 3. `/prism-rpg.mjs`
|
||||||
|
- Import du module `settings.mjs`
|
||||||
|
- Appel de `registerSettings()` dans le hook `init`
|
||||||
|
|
||||||
|
### 4. `/module/applications/_module.mjs`
|
||||||
|
- Export de `WeaponTypesConfig`
|
||||||
|
|
||||||
|
### 5. `/module/utils.mjs`
|
||||||
|
- Ajout du template `weapon-types-config.hbs` dans les templates préchargés
|
||||||
|
|
||||||
|
### 6. `/styles/fvtt-prism-rpg.less`
|
||||||
|
- Import du fichier `weapon-types-config.less`
|
||||||
|
|
||||||
|
### 7. `/lang/en.json`
|
||||||
|
- Ajout de toutes les clés de traduction pour les settings
|
||||||
|
- Section `Settings` avec toutes les chaînes nécessaires
|
||||||
|
|
||||||
|
## Utilisation
|
||||||
|
|
||||||
|
### Pour les Game Masters
|
||||||
|
|
||||||
|
1. Ouvrir les **Settings** de Foundry VTT
|
||||||
|
2. Aller dans **Game Settings**
|
||||||
|
3. Chercher **Configure Weapons** dans la section PRISM RPG
|
||||||
|
4. Cliquer sur le bouton pour ouvrir l'interface de configuration
|
||||||
|
|
||||||
|
### Interface de Configuration
|
||||||
|
|
||||||
|
#### Onglet "Weapon Types"
|
||||||
|
- **ID**: Identifiant unique (non modifiable pour les types par défaut)
|
||||||
|
- **Label**: Nom affiché du type d'arme
|
||||||
|
- **APC**: Coût en points d'action
|
||||||
|
- **Hands**: Nombre de mains requises (0, 1, ou 2)
|
||||||
|
|
||||||
|
#### Onglet "Weapon Groups"
|
||||||
|
- **ID**: Identifiant unique (non modifiable pour les groupes par défaut)
|
||||||
|
- **Label**: Nom affiché du groupe
|
||||||
|
- **Passive ID**: Identifiant de la passive
|
||||||
|
- **Passive Label**: Nom de la passive
|
||||||
|
- **Passive Description**: Description de l'effet de la passive
|
||||||
|
|
||||||
|
### Ajout d'un Type/Groupe d'Arme
|
||||||
|
|
||||||
|
1. Cliquer sur le bouton **+** dans l'onglet approprié
|
||||||
|
2. Un nouvel ID unique sera généré automatiquement
|
||||||
|
3. Remplir les champs
|
||||||
|
4. Cliquer sur **Save Changes**
|
||||||
|
|
||||||
|
### Suppression d'un Type/Groupe d'Arme
|
||||||
|
|
||||||
|
1. Cliquer sur l'icône **poubelle** à côté du type/groupe
|
||||||
|
2. L'entrée sera supprimée
|
||||||
|
3. Cliquer sur **Save Changes**
|
||||||
|
|
||||||
|
### Réinitialisation
|
||||||
|
|
||||||
|
Le bouton **Reset to Defaults** permet de revenir aux valeurs par défaut du système.
|
||||||
|
|
||||||
|
## Types d'Armes par Défaut
|
||||||
|
|
||||||
|
- **Light** (Légère) - 1 APC, 1 main
|
||||||
|
- **One-Handed** (Une main) - 2 APC, 1 main
|
||||||
|
- **Heavy** (Lourde) - 3 APC, 2 mains
|
||||||
|
- **Projectile** - Variable APC, 2 mains
|
||||||
|
|
||||||
|
## Groupes d'Armes par Défaut
|
||||||
|
|
||||||
|
1. **Longsword** - Passive: Turning Edge
|
||||||
|
2. **Warhammer** - Passive: Puncturing Blows
|
||||||
|
3. **Battleaxe** - Passive: Shield Eater
|
||||||
|
4. **Dagger** - Passive: Balancing Stance
|
||||||
|
5. **Crossbow** - Passive: Boltlock
|
||||||
|
6. **Longbow** - Passive: Volley Fire
|
||||||
|
|
||||||
|
## Remarques Techniques
|
||||||
|
|
||||||
|
- Les modifications sont sauvegardées au niveau du **monde** (scope: world)
|
||||||
|
- Un rechargement de la page est déclenché après sauvegarde
|
||||||
|
- Les valeurs par défaut restent toujours disponibles
|
||||||
|
- Les types/groupes personnalisés sont fusionnés avec les valeurs par défaut
|
||||||
|
- Utilisation de Proxies JavaScript pour une compatibilité maximale
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 895 KiB |
@@ -13,6 +13,9 @@
|
|||||||
--font-secondary: "BaskervilleBold", serif;
|
--font-secondary: "BaskervilleBold", serif;
|
||||||
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
||||||
}
|
}
|
||||||
|
.tab[data-group]:not(.active) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.initiative-area {
|
.initiative-area {
|
||||||
min-width: 8rem;
|
min-width: 8rem;
|
||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
@@ -78,6 +81,9 @@ i.prismrpg {
|
|||||||
.initiative-minus {
|
.initiative-minus {
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
|
.prismrpg {
|
||||||
|
/* Weapon Types Configuration Dialog */
|
||||||
|
}
|
||||||
.prismrpg .character-sheet-common label {
|
.prismrpg .character-sheet-common label {
|
||||||
font-family: var(--font-secondary);
|
font-family: var(--font-secondary);
|
||||||
font-size: calc(var(--font-size-standard) * 1.2);
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
@@ -1550,6 +1556,96 @@ i.prismrpg {
|
|||||||
.prismrpg .weapon-content label {
|
.prismrpg .weapon-content label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives legend button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-header input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-header button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-header button[data-action="delete-passive"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .passive-header button[data-action="delete-passive"]:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-passives .hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers legend button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-header input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-header button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-header button[data-action="delete-maneuver"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .maneuver-header button[data-action="delete-maneuver"]:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-content .weapon-maneuvers .hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
.prismrpg .armor-content {
|
.prismrpg .armor-content {
|
||||||
font-family: var(--font-primary);
|
font-family: var(--font-primary);
|
||||||
font-size: calc(var(--font-size-standard) * 1);
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
@@ -2004,6 +2100,54 @@ i.prismrpg {
|
|||||||
.prismrpg .equipment-content label {
|
.prismrpg .equipment-content label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
.prismrpg .equipment-content .kit-passive {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations legend button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-item:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-header input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-header button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-header button[data-action="delete-special-activation"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .activation-header button[data-action="delete-special-activation"]:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
.prismrpg .equipment-content .special-activations .hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
.prismrpg .shield-content {
|
.prismrpg .shield-content {
|
||||||
font-family: var(--font-primary);
|
font-family: var(--font-primary);
|
||||||
font-size: calc(var(--font-size-standard) * 1);
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
@@ -2412,6 +2556,441 @@ i.prismrpg {
|
|||||||
.prismrpg .class-content label {
|
.prismrpg .class-content label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
.prismrpg .character-path-content {
|
||||||
|
font-family: var(--font-primary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
color: var(--color-dark-1);
|
||||||
|
background-image: var(--background-image-base);
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: 100% 100%;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content nav.tabs [data-tab] {
|
||||||
|
color: #636060;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content nav.tabs [data-tab].active {
|
||||||
|
color: #252424;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input:disabled,
|
||||||
|
.prismrpg .character-path-content select:disabled {
|
||||||
|
background-color: rgba(0, 0, 0, 0.2);
|
||||||
|
border-color: transparent;
|
||||||
|
color: var(--color-dark-3);
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input,
|
||||||
|
.prismrpg .character-path-content select {
|
||||||
|
height: 1.5rem;
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
border-color: var(--color-dark-6);
|
||||||
|
color: var(--color-dark-2);
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input[name="name"] {
|
||||||
|
height: 2.5rem;
|
||||||
|
margin-right: 4px;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content fieldset {
|
||||||
|
margin-bottom: 4px;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-fields input,
|
||||||
|
.prismrpg .character-path-content .form-fields select {
|
||||||
|
text-align: center;
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-fields select {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content legend {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1.2);
|
||||||
|
font-weight: bold;
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-fields {
|
||||||
|
padding-top: 4px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-group {
|
||||||
|
display: flex;
|
||||||
|
flex: 1;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-group label {
|
||||||
|
align-content: center;
|
||||||
|
min-width: 10rem;
|
||||||
|
max-width: 10rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-group select,
|
||||||
|
.prismrpg .character-path-content .form-group input {
|
||||||
|
text-align: left;
|
||||||
|
min-width: 12rem;
|
||||||
|
max-width: 12rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .form-group input[type="checkbox"] {
|
||||||
|
min-width: 1.2rem;
|
||||||
|
max-width: 1.2rem;
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content label {
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
font-size: calc(var(--font-size-standard) * 1);
|
||||||
|
flex: 50%;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .align-top {
|
||||||
|
align-self: flex-start;
|
||||||
|
padding: 0.1rem;
|
||||||
|
margin-right: 0.2rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .shift-right {
|
||||||
|
margin-left: 2rem;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .header {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content .header img {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input[type="checkbox"] {
|
||||||
|
font-size: var(--font-size-14);
|
||||||
|
width: 20px;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input[type="checkbox"]:checked {
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.prismrpg .character-path-content input[type="checkbox"]:checked::after {
|
||||||
|
color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.prismrpg .effects-container {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-category {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
}
|
||||||
|
.prismrpg .effect-category:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item {
|
||||||
|
padding: 0.4rem 0.6rem;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
min-height: 32px;
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item.items-title-bg {
|
||||||
|
background: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15));
|
||||||
|
border-bottom: 2px solid rgba(0, 0, 0, 0.4);
|
||||||
|
padding: 0.5rem 0.6rem;
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item.items-title-bg h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item.items-title-bg .short-label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 600;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item.list-item-shadow {
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item.list-item-shadow:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
.prismrpg .stat-list.alternate-list .list-item:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
.prismrpg .sheet-competence-img {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
.prismrpg .item-name-img {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.prismrpg .item-name-img:hover .sheet-competence-img {
|
||||||
|
border-color: rgba(13, 110, 253, 0.6);
|
||||||
|
box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
|
||||||
|
}
|
||||||
|
.prismrpg .item-name-label-header-long {
|
||||||
|
flex: 2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.prismrpg .item-name-label-header-long .items-title-text {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.prismrpg .item-name-label-long {
|
||||||
|
flex: 2;
|
||||||
|
font-weight: 500;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
.prismrpg .item-field-label-short {
|
||||||
|
flex: 0 0 90px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.prismrpg .item-field-label-medium {
|
||||||
|
flex: 0 0 100px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
.prismrpg .item-filler {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 10px;
|
||||||
|
}
|
||||||
|
.prismrpg .item-controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.3rem;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .item-controls.item-controls-fixed {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
.prismrpg .item-controls.effect-controls {
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(240, 240, 240, 0.8));
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control i {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control:hover {
|
||||||
|
background: linear-gradient(to bottom, #ffffff, #e6e6e6);
|
||||||
|
border-color: rgba(0, 0, 0, 0.4);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control.item-edit:hover {
|
||||||
|
background: linear-gradient(to bottom, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.3));
|
||||||
|
color: #0d6efd;
|
||||||
|
border-color: rgba(13, 110, 253, 0.5);
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control[data-action="create-effect"] {
|
||||||
|
width: auto;
|
||||||
|
padding: 0.3rem 0.5rem;
|
||||||
|
gap: 0.3rem;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 600;
|
||||||
|
background: linear-gradient(to bottom, rgba(40, 167, 69, 0.25), rgba(40, 167, 69, 0.35));
|
||||||
|
border-color: rgba(40, 167, 69, 0.4);
|
||||||
|
color: #19642a;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control[data-action="create-effect"]:hover {
|
||||||
|
background: linear-gradient(to bottom, rgba(40, 167, 69, 0.35), rgba(40, 167, 69, 0.45));
|
||||||
|
border-color: rgba(40, 167, 69, 0.6);
|
||||||
|
color: #19642a;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control[data-action="create-effect"] i {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
.prismrpg .effect-control[data-action="effect-delete"]:hover {
|
||||||
|
background: linear-gradient(to bottom, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.3));
|
||||||
|
color: #dc3545;
|
||||||
|
border-color: rgba(220, 53, 69, 0.5);
|
||||||
|
}
|
||||||
|
.prismrpg .flexrow {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .sheet-tabs {
|
||||||
|
margin: 0;
|
||||||
|
border-bottom: 2px solid #444;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .content {
|
||||||
|
padding: 0.5rem;
|
||||||
|
max-height: 60vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
padding-bottom: 0.25rem;
|
||||||
|
border-bottom: 1px solid #666;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .weapon-type-entry,
|
||||||
|
.prismrpg .weapon-types-config .weapon-group-entry {
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
padding: 0.75rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #555;
|
||||||
|
display: flex;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .weapon-type-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 100px 3fr 70px 70px;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .weapon-group-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 120px 2fr 120px 150px 3fr;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .form-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.15rem;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .form-group label {
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config input[type="text"],
|
||||||
|
.prismrpg .weapon-types-config input[type="number"],
|
||||||
|
.prismrpg .weapon-types-config textarea {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config input[readonly] {
|
||||||
|
background: rgba(0, 0, 0, 0.7);
|
||||||
|
color: #999;
|
||||||
|
cursor: not-allowed;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config textarea {
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 40px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config button[data-action] {
|
||||||
|
background: rgba(100, 100, 100, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config button[data-action]:hover {
|
||||||
|
background: rgba(150, 150, 150, 0.5);
|
||||||
|
border-color: #888;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config button[data-action="delete-weapon-type"],
|
||||||
|
.prismrpg .weapon-types-config button[data-action="delete-weapon-group"] {
|
||||||
|
background: rgba(139, 0, 0, 0.5);
|
||||||
|
align-self: center;
|
||||||
|
padding: 0.25rem;
|
||||||
|
min-width: auto;
|
||||||
|
width: auto;
|
||||||
|
font-size: 0.9em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config button[data-action="delete-weapon-type"]:hover,
|
||||||
|
.prismrpg .weapon-types-config button[data-action="delete-weapon-group"]:hover {
|
||||||
|
background: rgba(200, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .sheet-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1rem;
|
||||||
|
border-top: 2px solid #444;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .sheet-footer button {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .weapon-types-list,
|
||||||
|
.prismrpg .weapon-types-config .weapon-groups-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
.prismrpg .weapon-types-config .flexrow {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
.application.dialog.prismrpg {
|
.application.dialog.prismrpg {
|
||||||
color: var(--color-dark-1);
|
color: var(--color-dark-1);
|
||||||
}
|
}
|
||||||
|
|||||||
+155
-8
@@ -60,6 +60,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Character": {
|
"Character": {
|
||||||
|
"str": {
|
||||||
|
"label": "Strength"
|
||||||
|
},
|
||||||
|
"dex": {
|
||||||
|
"label": "Dexterity"
|
||||||
|
},
|
||||||
|
"con": {
|
||||||
|
"label": "Constitution"
|
||||||
|
},
|
||||||
|
"int": {
|
||||||
|
"label": "Intelligence"
|
||||||
|
},
|
||||||
|
"wis": {
|
||||||
|
"label": "Wisdom"
|
||||||
|
},
|
||||||
|
"cha": {
|
||||||
|
"label": "Charisma"
|
||||||
|
},
|
||||||
"FIELDS": {
|
"FIELDS": {
|
||||||
"moneys": {
|
"moneys": {
|
||||||
"tinbit": {
|
"tinbit": {
|
||||||
@@ -282,6 +300,18 @@
|
|||||||
},
|
},
|
||||||
"money": {
|
"money": {
|
||||||
"label": "Money unit"
|
"label": "Money unit"
|
||||||
|
},
|
||||||
|
"isKit": {
|
||||||
|
"label": "Is Kit?"
|
||||||
|
},
|
||||||
|
"passive": {
|
||||||
|
"label": "Passive Name"
|
||||||
|
},
|
||||||
|
"passiveDescription": {
|
||||||
|
"label": "Passive Description"
|
||||||
|
},
|
||||||
|
"specialActivations": {
|
||||||
|
"label": "Special Activations"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -372,6 +402,11 @@
|
|||||||
"damage": "Damage",
|
"damage": "Damage",
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
"details": "Details",
|
"details": "Details",
|
||||||
|
"effects": "Effects",
|
||||||
|
"source": "Source",
|
||||||
|
"temporary": "Temporary",
|
||||||
|
"passive": "Passive",
|
||||||
|
"inactive": "Inactive",
|
||||||
"dex": "DEX",
|
"dex": "DEX",
|
||||||
"equipment": "Equipment",
|
"equipment": "Equipment",
|
||||||
"experience": "Experience",
|
"experience": "Experience",
|
||||||
@@ -475,6 +510,7 @@
|
|||||||
"encumbranceLoad": "Encumbrance Load",
|
"encumbranceLoad": "Encumbrance Load",
|
||||||
"isHelmet": "Is Helmet?",
|
"isHelmet": "Is Helmet?",
|
||||||
"equipped": "Equipped?",
|
"equipped": "Equipped?",
|
||||||
|
"isImplement": "Is Implement?",
|
||||||
"armorPassive": "Armor Passive",
|
"armorPassive": "Armor Passive",
|
||||||
"passiveName": "Passive Name",
|
"passiveName": "Passive Name",
|
||||||
"passiveDescription": "Passive Description",
|
"passiveDescription": "Passive Description",
|
||||||
@@ -499,11 +535,22 @@
|
|||||||
"hands": "Hands Required",
|
"hands": "Hands Required",
|
||||||
"groupPassive": "Weapon Group Passive",
|
"groupPassive": "Weapon Group Passive",
|
||||||
"groupPassiveName": "Group Passive Name",
|
"groupPassiveName": "Group Passive Name",
|
||||||
"weaponPassive": "Weapon Passive",
|
"weaponPassives": "Weapon Passives",
|
||||||
"weaponManeuver": "Weapon Maneuver",
|
"addPassive": "Add Passive",
|
||||||
|
"deletePassive": "Delete Passive",
|
||||||
|
"weaponManeuvers": "Weapon Maneuvers",
|
||||||
|
"addManeuver": "Add Maneuver",
|
||||||
|
"deleteManeuver": "Delete Maneuver",
|
||||||
"maneuverName": "Maneuver Name",
|
"maneuverName": "Maneuver Name",
|
||||||
"maneuverDescription": "Maneuver Description",
|
"maneuverDescription": "Maneuver Description",
|
||||||
"weaponAugment": "Weapon Augment",
|
"weaponAugment": "Weapon Augment",
|
||||||
|
"isKit": "Is Kit?",
|
||||||
|
"kitPassive": "Kit Passive",
|
||||||
|
"specialActivations": "Special Activations",
|
||||||
|
"addSpecialActivation": "Add Special Activation",
|
||||||
|
"deleteSpecialActivation": "Delete Special Activation",
|
||||||
|
"activationName": "Activation Name",
|
||||||
|
"activationDescription": "Activation Description",
|
||||||
"shieldType": "Shield Type",
|
"shieldType": "Shield Type",
|
||||||
"blockAPC": "Block APC",
|
"blockAPC": "Block APC",
|
||||||
"shieldRating": "Shield Rating (SR)",
|
"shieldRating": "Shield Rating (SR)",
|
||||||
@@ -635,9 +682,19 @@
|
|||||||
"heavy": "Heavy Armor"
|
"heavy": "Heavy Armor"
|
||||||
},
|
},
|
||||||
"WeaponGroup": {
|
"WeaponGroup": {
|
||||||
|
"shortsword": "Shortsword",
|
||||||
"longsword": "Longsword",
|
"longsword": "Longsword",
|
||||||
"warhammer": "Warhammer",
|
"greatsword": "Greatsword",
|
||||||
|
"handaxe": "Handaxe",
|
||||||
"battleaxe": "Battleaxe",
|
"battleaxe": "Battleaxe",
|
||||||
|
"greataxe": "Greataxe",
|
||||||
|
"club": "Club",
|
||||||
|
"mace": "Mace",
|
||||||
|
"greatMaul": "Great Maul",
|
||||||
|
"javelin": "Javelin",
|
||||||
|
"spear": "Spear",
|
||||||
|
"longSpear": "Long Spear",
|
||||||
|
"warhammer": "Warhammer",
|
||||||
"dagger": "Dagger",
|
"dagger": "Dagger",
|
||||||
"crossbow": "Crossbow",
|
"crossbow": "Crossbow",
|
||||||
"longbow": "Longbow"
|
"longbow": "Longbow"
|
||||||
@@ -666,6 +723,9 @@
|
|||||||
"violet": "Violet"
|
"violet": "Violet"
|
||||||
},
|
},
|
||||||
"Hint": {
|
"Hint": {
|
||||||
|
"noPassives": "No passives defined. Click the + button to add one.",
|
||||||
|
"noSpecialActivations": "No special activations defined. Click the + button to add one.",
|
||||||
|
"noManeuvers": "No maneuvers defined. Click the + button to add one.",
|
||||||
"isCoreSkill": "Check this if this is your character's chosen Core Skill",
|
"isCoreSkill": "Check this if this is your character's chosen Core Skill",
|
||||||
"attributeBonus": "Choose which attribute receives the +2 bonus",
|
"attributeBonus": "Choose which attribute receives the +2 bonus",
|
||||||
"advancedChecks": "Only Core Skills allow advanced checks",
|
"advancedChecks": "Only Core Skills allow advanced checks",
|
||||||
@@ -982,10 +1042,10 @@
|
|||||||
"Warning": {},
|
"Warning": {},
|
||||||
"Weapon": {
|
"Weapon": {
|
||||||
"Type": {
|
"Type": {
|
||||||
"light": "Light Weapon",
|
"light": "Light",
|
||||||
"oneHanded": "One-Handed Weapon",
|
"oneHanded": "One-Handed",
|
||||||
"heavy": "Heavy Weapon",
|
"heavy": "Heavy",
|
||||||
"projectile": "Projectile Weapon"
|
"projectile": "Projectile"
|
||||||
},
|
},
|
||||||
"Group": {
|
"Group": {
|
||||||
"longsword": "Longsword",
|
"longsword": "Longsword",
|
||||||
@@ -995,6 +1055,42 @@
|
|||||||
"crossbow": "Crossbow",
|
"crossbow": "Crossbow",
|
||||||
"longbow": "Longbow"
|
"longbow": "Longbow"
|
||||||
},
|
},
|
||||||
|
"Passive": {
|
||||||
|
"quickBlade": "Quick Blade",
|
||||||
|
"turningEdge": "Turning Edge",
|
||||||
|
"cleave": "Cleave",
|
||||||
|
"throwingAxe": "Throwing Axe",
|
||||||
|
"shieldEater": "Shield Eater",
|
||||||
|
"devastatingBlow": "Devastating Blow",
|
||||||
|
"stun": "Stun",
|
||||||
|
"armorBreaker": "Armor Breaker",
|
||||||
|
"earthshatter": "Earthshatter",
|
||||||
|
"piercingThrow": "Piercing Throw",
|
||||||
|
"reach": "Reach",
|
||||||
|
"extendedReach": "Extended Reach",
|
||||||
|
"puncturingBlows": "Puncturing Blows",
|
||||||
|
"balancingStance": "Balancing Stance",
|
||||||
|
"boltlock": "Boltlock",
|
||||||
|
"volleyFire": "Volley Fire"
|
||||||
|
},
|
||||||
|
"PassiveDescription": {
|
||||||
|
"quickBlade": "Your attacks with shortswords cost 1 less APC (minimum 1).",
|
||||||
|
"turningEdge": "When you successfully parry an attack, you may immediately make a free attack against the attacker.",
|
||||||
|
"cleave": "When you kill an enemy, you may make a free attack against an adjacent enemy.",
|
||||||
|
"throwingAxe": "Handaxes can be thrown with a range of 20/60 feet.",
|
||||||
|
"shieldEater": "Your attacks ignore shield bonuses to defense.",
|
||||||
|
"devastatingBlow": "Your critical hits deal maximum damage instead of rolling.",
|
||||||
|
"stun": "When you hit with a club, the target must make a CON save or be stunned until the end of their next turn.",
|
||||||
|
"armorBreaker": "Your attacks ignore 3 points of armor.",
|
||||||
|
"earthshatter": "When you hit with a great maul, all enemies within 5 feet must make a DEX save or be knocked prone.",
|
||||||
|
"piercingThrow": "Your javelin throws ignore cover and deal +2 damage.",
|
||||||
|
"reach": "Your spear attacks have 10 feet of reach.",
|
||||||
|
"extendedReach": "Your long spear attacks have 15 feet of reach.",
|
||||||
|
"puncturingBlows": "Your attacks ignore 2 points of armor.",
|
||||||
|
"balancingStance": "You gain +1 to defense when wielding a dagger.",
|
||||||
|
"boltlock": "Reloading costs 0 APC instead of the normal reload cost.",
|
||||||
|
"volleyFire": "You may attack two targets with a single attack action."
|
||||||
|
},
|
||||||
"DamageType": {
|
"DamageType": {
|
||||||
"piercing": "Piercing",
|
"piercing": "Piercing",
|
||||||
"bludgeoning": "Bludgeoning",
|
"bludgeoning": "Bludgeoning",
|
||||||
@@ -1179,6 +1275,56 @@
|
|||||||
"label": "Class Features"
|
"label": "Class Features"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"Settings": {
|
||||||
|
"customWeaponTypes": {
|
||||||
|
"name": "Custom Weapon Types",
|
||||||
|
"hint": "Custom weapon types configured for this world"
|
||||||
|
},
|
||||||
|
"customWeaponGroups": {
|
||||||
|
"name": "Custom Weapon Groups",
|
||||||
|
"hint": "Custom weapon groups configured for this world"
|
||||||
|
},
|
||||||
|
"weaponTypesConfig": {
|
||||||
|
"name": "Weapon Types Configuration",
|
||||||
|
"hint": "Configure weapon types and weapon groups",
|
||||||
|
"label": "Configure Weapons",
|
||||||
|
"title": "Weapon Types & Groups Configuration"
|
||||||
|
},
|
||||||
|
"tabs": {
|
||||||
|
"weaponTypes": "Weapon Types",
|
||||||
|
"weaponGroups": "Weapon Groups"
|
||||||
|
},
|
||||||
|
"weaponTypes": {
|
||||||
|
"header": "Weapon Types"
|
||||||
|
},
|
||||||
|
"weaponType": {
|
||||||
|
"id": "ID",
|
||||||
|
"label": "Label",
|
||||||
|
"apc": "Action Point Cost",
|
||||||
|
"hands": "Hands Required"
|
||||||
|
},
|
||||||
|
"weaponGroups": {
|
||||||
|
"header": "Weapon Groups"
|
||||||
|
},
|
||||||
|
"weaponGroup": {
|
||||||
|
"id": "ID",
|
||||||
|
"label": "Label",
|
||||||
|
"passive": "Passive ID",
|
||||||
|
"passiveLabel": "Passive Label",
|
||||||
|
"passiveDescription": "Passive Description"
|
||||||
|
},
|
||||||
|
"addWeaponType": "Add Weapon Type",
|
||||||
|
"deleteWeaponType": "Delete Weapon Type",
|
||||||
|
"addWeaponGroup": "Add Weapon Group",
|
||||||
|
"deleteWeaponGroup": "Delete Weapon Group",
|
||||||
|
"resetDefaults": "Reset to Defaults",
|
||||||
|
"save": "Save Changes",
|
||||||
|
"weaponTypesSaved": "Weapon types and groups saved successfully",
|
||||||
|
"resetConfirm": {
|
||||||
|
"title": "Reset to Defaults?",
|
||||||
|
"content": "This will reset all weapon types and groups to their default values. Are you sure?"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"TYPES": {
|
"TYPES": {
|
||||||
@@ -1198,7 +1344,8 @@
|
|||||||
"vulnerability": "Vulnerability",
|
"vulnerability": "Vulnerability",
|
||||||
"weapon": "Weapon",
|
"weapon": "Weapon",
|
||||||
"race": "Race",
|
"race": "Race",
|
||||||
"class": "Class"
|
"class": "Class",
|
||||||
|
"character-path": "Character Path"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -11,3 +11,5 @@ export { default as PrismRPGShieldSheet } from "./sheets/shield-sheet.mjs"
|
|||||||
export { default as PrismRPGMiracleSheet } from "./sheets/miracle-sheet.mjs"
|
export { default as PrismRPGMiracleSheet } from "./sheets/miracle-sheet.mjs"
|
||||||
export { default as PrismRPGRaceSheet } from "./sheets/race-sheet.mjs"
|
export { default as PrismRPGRaceSheet } from "./sheets/race-sheet.mjs"
|
||||||
export { default as PrismRPGClassSheet } from "./sheets/class-sheet.mjs"
|
export { default as PrismRPGClassSheet } from "./sheets/class-sheet.mjs"
|
||||||
|
export { default as PrismRPGCharacterPathSheet } from "./sheets/character-path-sheet.mjs"
|
||||||
|
export { WeaponTypesConfig } from "./weapon-types-config.mjs"
|
||||||
|
|||||||
@@ -19,10 +19,32 @@ export default class PrismRPGArmorSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
||||||
context.enrichedAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.augmentDescription, { async: true })
|
context.enrichedAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.augmentDescription, { async: true })
|
||||||
|
|||||||
@@ -31,6 +31,9 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
actions: {
|
actions: {
|
||||||
toggleSheet: PrismRPGItemSheet.#onToggleSheet,
|
toggleSheet: PrismRPGItemSheet.#onToggleSheet,
|
||||||
editImage: PrismRPGItemSheet.#onEditImage,
|
editImage: PrismRPGItemSheet.#onEditImage,
|
||||||
|
"create-effect": PrismRPGItemSheet.#onCreateActiveEffect,
|
||||||
|
"effect-edit": PrismRPGItemSheet.#onEffectEdit,
|
||||||
|
"effect-delete": PrismRPGItemSheet.#onEffectDelete,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,6 +68,7 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
context.system = this.document.system
|
context.system = this.document.system
|
||||||
context.source = this.document.toObject()
|
context.source = this.document.toObject()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
context.effectCategories = this.#prepareActiveEffectCategories(this.document.effects)
|
||||||
context.isEditMode = this.isEditMode
|
context.isEditMode = this.isEditMode
|
||||||
context.isPlayMode = this.isPlayMode
|
context.isPlayMode = this.isPlayMode
|
||||||
context.isEditable = this.isEditable
|
context.isEditable = this.isEditable
|
||||||
@@ -75,6 +79,20 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
_onRender(context, options) {
|
_onRender(context, options) {
|
||||||
super._onRender(context, options)
|
super._onRender(context, options)
|
||||||
this.#dragDrop.forEach((d) => d.bind(this.element))
|
this.#dragDrop.forEach((d) => d.bind(this.element))
|
||||||
|
|
||||||
|
// Activate tab navigation
|
||||||
|
const nav = this.element.querySelector('nav.tabs[data-group]')
|
||||||
|
if (nav) {
|
||||||
|
const group = nav.dataset.group
|
||||||
|
nav.querySelectorAll('[data-tab]').forEach(link => {
|
||||||
|
link.addEventListener('click', (event) => {
|
||||||
|
event.preventDefault()
|
||||||
|
const tab = event.currentTarget.dataset.tab
|
||||||
|
this.tabGroups[group] = tab
|
||||||
|
this.render()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// #region Drag-and-Drop Workflow
|
// #region Drag-and-Drop Workflow
|
||||||
@@ -189,5 +207,99 @@ export default class PrismRPGItemSheet extends HandlebarsApplicationMixin(foundr
|
|||||||
})
|
})
|
||||||
return fp.browse()
|
return fp.browse()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare Active Effects organized by category (temporary, passive, inactive).
|
||||||
|
* @param {ActiveEffect[]} effects The raw Active Effects collection
|
||||||
|
* @returns {object} The categorized effects
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
#prepareActiveEffectCategories(effects) {
|
||||||
|
// Define effect header categories
|
||||||
|
const categories = {
|
||||||
|
temporary: {
|
||||||
|
type: "temporary",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.temporary"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
passive: {
|
||||||
|
type: "passive",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.passive"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
inactive: {
|
||||||
|
type: "inactive",
|
||||||
|
label: game.i18n.localize("PRISMRPG.Label.inactive"),
|
||||||
|
effects: [],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
// Iterate over active effects, classifying them into categories
|
||||||
|
for (let e of effects) {
|
||||||
|
const effect = e.toObject()
|
||||||
|
if (e.disabled) categories.inactive.effects.push(effect)
|
||||||
|
else if (e.isTemporary) categories.temporary.effects.push(effect)
|
||||||
|
else categories.passive.effects.push(effect)
|
||||||
|
}
|
||||||
|
return categories
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle creating a new Active Effect on the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onCreateActiveEffect(event, target) {
|
||||||
|
const effectType = target.dataset.effectType
|
||||||
|
let durationValue = undefined
|
||||||
|
let disabled = false
|
||||||
|
|
||||||
|
if (effectType === "temporary") {
|
||||||
|
durationValue = 10
|
||||||
|
}
|
||||||
|
if (effectType === "inactive") {
|
||||||
|
disabled = true
|
||||||
|
}
|
||||||
|
|
||||||
|
const effectData = {
|
||||||
|
name: game.i18n.format("DOCUMENT.New", { type: game.i18n.localize("DOCUMENT.ActiveEffect") }),
|
||||||
|
img: "icons/svg/aura.svg",
|
||||||
|
origin: this.document.uuid,
|
||||||
|
disabled: disabled,
|
||||||
|
changes: [],
|
||||||
|
duration: durationValue !== undefined ? { rounds: durationValue } : {},
|
||||||
|
flags: {}
|
||||||
|
}
|
||||||
|
await this.document.createEmbeddedDocuments("ActiveEffect", [effectData])
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle editing an Active Effect on the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onEffectEdit(event, target) {
|
||||||
|
const li = target.closest(".item")
|
||||||
|
const effectId = li.dataset.itemId
|
||||||
|
const effect = this.document.effects.get(effectId)
|
||||||
|
if (!effect) return
|
||||||
|
effect.sheet.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle deleting an Active Effect from the Item.
|
||||||
|
* @param {Event} event The initiating click event.
|
||||||
|
* @param {HTMLElement} target The current target of the event listener.
|
||||||
|
* @private
|
||||||
|
*/
|
||||||
|
static async #onEffectDelete(event, target) {
|
||||||
|
const li = target.closest(".item")
|
||||||
|
const effectId = li.dataset.itemId
|
||||||
|
const effect = this.document.effects.get(effectId)
|
||||||
|
if (!effect) return
|
||||||
|
await effect.delete()
|
||||||
|
}
|
||||||
// #endregion
|
// #endregion
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,50 @@
|
|||||||
|
import PrismRPGItemSheet from "./base-item-sheet.mjs"
|
||||||
|
|
||||||
|
export default class PrismRPGCharacterPathSheet extends PrismRPGItemSheet {
|
||||||
|
/** @override */
|
||||||
|
static DEFAULT_OPTIONS = {
|
||||||
|
classes: ["character-path"],
|
||||||
|
position: {
|
||||||
|
width: 600,
|
||||||
|
},
|
||||||
|
window: {
|
||||||
|
contentClasses: ["character-path-content"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static PARTS = {
|
||||||
|
main: {
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/character-path.hbs",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "description",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -20,9 +20,31 @@ export default class PrismRPGClassSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedAttributeBonuses = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.attributeBonuses, { async: true })
|
context.enrichedAttributeBonuses = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.attributeBonuses, { async: true })
|
||||||
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes, { async: true })
|
context.enrichedNotes = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.notes, { async: true })
|
||||||
|
|||||||
@@ -19,10 +19,75 @@ export default class PrismRPGEquipmentSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
|
|
||||||
|
// Enrich passive description if equipment is a kit
|
||||||
|
if (this.document.system.isKit && this.document.system.passiveDescription) {
|
||||||
|
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
||||||
|
}
|
||||||
|
|
||||||
|
// Enrich descriptions for all special activations
|
||||||
|
context.enrichedSpecialActivations = await Promise.all(
|
||||||
|
this.document.system.specialActivations.map(async (activation) => ({
|
||||||
|
...activation,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(activation.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
_onRender(context, options) {
|
||||||
|
super._onRender(context, options)
|
||||||
|
|
||||||
|
// Add event listeners for special activation management
|
||||||
|
this.element.querySelectorAll('[data-action="add-special-activation"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddSpecialActivation.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-special-activation"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeleteSpecialActivation.bind(this))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddSpecialActivation(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const specialActivations = [...this.document.system.specialActivations]
|
||||||
|
specialActivations.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.specialActivations": specialActivations })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteSpecialActivation(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-activation-index]").dataset.activationIndex)
|
||||||
|
const specialActivations = this.document.system.specialActivations.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.specialActivations": specialActivations })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGMiracleSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,31 @@ export default class PrismRPGRaceSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedRacialPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.racialPassiveDescription, { async: true })
|
context.enrichedRacialPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.racialPassiveDescription, { async: true })
|
||||||
context.enrichedSubraceAbilityDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.subraceAbilityDescription, { async: true })
|
context.enrichedSubraceAbilityDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.subraceAbilityDescription, { async: true })
|
||||||
|
|||||||
@@ -19,4 +19,32 @@ export default class PrismRPGRacialAbilitySheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "description",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
async _prepareContext() {
|
||||||
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
|
return context
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGShieldSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedBlockAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.blockAugmentDescription, { async: true })
|
context.enrichedBlockAugmentDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.blockAugmentDescription, { async: true })
|
||||||
return context
|
return context
|
||||||
|
|||||||
@@ -19,9 +19,32 @@ export default class PrismRPGSpellSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedColorEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.colorEffect, { async: true })
|
context.enrichedColorEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.colorEffect, { async: true })
|
||||||
context.enrichedAscensionEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.ascensionEffect, { async: true })
|
context.enrichedAscensionEffect = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.ascensionEffect, { async: true })
|
||||||
|
|||||||
@@ -19,13 +19,102 @@ export default class PrismRPGWeaponSheet extends PrismRPGItemSheet {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
tabGroups = {
|
||||||
|
primary: "details",
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Prepare an array of form header tabs.
|
||||||
|
* @returns {Record<string, Partial<ApplicationTab>>}
|
||||||
|
*/
|
||||||
|
#getTabs() {
|
||||||
|
const tabs = {
|
||||||
|
details: { id: "details", group: "primary", label: "PRISMRPG.Label.details" },
|
||||||
|
description: { id: "description", group: "primary", label: "PRISMRPG.Label.description" },
|
||||||
|
effects: { id: "effects", group: "primary", label: "PRISMRPG.Label.effects" },
|
||||||
|
}
|
||||||
|
for (const v of Object.values(tabs)) {
|
||||||
|
v.active = this.tabGroups[v.group] === v.id
|
||||||
|
v.cssClass = v.active ? "active" : ""
|
||||||
|
}
|
||||||
|
return tabs
|
||||||
|
}
|
||||||
|
|
||||||
/** @override */
|
/** @override */
|
||||||
async _prepareContext() {
|
async _prepareContext() {
|
||||||
const context = await super._prepareContext()
|
const context = await super._prepareContext()
|
||||||
|
context.tabs = this.#getTabs()
|
||||||
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
context.enrichedDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.description, { async: true })
|
||||||
context.enrichedPassiveDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.passiveDescription, { async: true })
|
|
||||||
context.enrichedManeuverDescription = await foundry.applications.ux.TextEditor.implementation.enrichHTML(this.document.system.maneuverDescription, { async: true })
|
// Enrich descriptions for all passives
|
||||||
|
context.enrichedPassives = await Promise.all(
|
||||||
|
this.document.system.passives.map(async (passive) => ({
|
||||||
|
...passive,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(passive.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
|
// Enrich descriptions for all maneuvers
|
||||||
|
context.enrichedManeuvers = await Promise.all(
|
||||||
|
this.document.system.maneuvers.map(async (maneuver) => ({
|
||||||
|
...maneuver,
|
||||||
|
enrichedDescription: await foundry.applications.ux.TextEditor.implementation.enrichHTML(maneuver.description, { async: true })
|
||||||
|
}))
|
||||||
|
)
|
||||||
|
|
||||||
return context
|
return context
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
_onRender(context, options) {
|
||||||
|
super._onRender(context, options)
|
||||||
|
|
||||||
|
// Add event listeners for passive management
|
||||||
|
this.element.querySelectorAll('[data-action="add-passive"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddPassive.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-passive"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeletePassive.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
// Add event listeners for maneuver management
|
||||||
|
this.element.querySelectorAll('[data-action="add-maneuver"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onAddManeuver.bind(this))
|
||||||
|
})
|
||||||
|
|
||||||
|
this.element.querySelectorAll('[data-action="delete-maneuver"]').forEach(el => {
|
||||||
|
el.addEventListener("click", this._onDeleteManeuver.bind(this))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddPassive(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const passives = [...this.document.system.passives]
|
||||||
|
passives.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.passives": passives })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeletePassive(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-passive-index]").dataset.passiveIndex)
|
||||||
|
const passives = this.document.system.passives.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.passives": passives })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddManeuver(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const maneuvers = [...this.document.system.maneuvers]
|
||||||
|
maneuvers.push({ name: "", description: "" })
|
||||||
|
await this.document.update({ "system.maneuvers": maneuvers })
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteManeuver(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const index = parseInt(event.currentTarget.closest("[data-maneuver-index]").dataset.maneuverIndex)
|
||||||
|
const maneuvers = this.document.system.maneuvers.filter((_, i) => i !== index)
|
||||||
|
await this.document.update({ "system.maneuvers": maneuvers })
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,219 @@
|
|||||||
|
/**
|
||||||
|
* Application to configure weapon types and groups
|
||||||
|
*/
|
||||||
|
import { getWeaponTypes, getWeaponGroups } from "../config/weapon.mjs"
|
||||||
|
|
||||||
|
export class WeaponTypesConfig extends FormApplication {
|
||||||
|
|
||||||
|
constructor(object, options) {
|
||||||
|
super(object, options)
|
||||||
|
|
||||||
|
// Store working copies that won't trigger settings changes
|
||||||
|
this.workingTypes = null
|
||||||
|
this.workingGroups = null
|
||||||
|
}
|
||||||
|
|
||||||
|
static get defaultOptions() {
|
||||||
|
return foundry.utils.mergeObject(super.defaultOptions, {
|
||||||
|
title: game.i18n.localize("PRISMRPG.Settings.weaponTypesConfig.title"),
|
||||||
|
id: "weapon-types-config",
|
||||||
|
classes: ["prismrpg", "weapon-types-config"],
|
||||||
|
template: "systems/fvtt-prism-rpg/templates/weapon-types-config.hbs",
|
||||||
|
width: 1000,
|
||||||
|
height: "auto",
|
||||||
|
closeOnSubmit: true,
|
||||||
|
submitOnChange: false,
|
||||||
|
tabs: [{ navSelector: ".tabs", contentSelector: ".content", initial: "types" }]
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
getData() {
|
||||||
|
const data = super.getData()
|
||||||
|
|
||||||
|
// Get default weapon types from config with proper translation keys
|
||||||
|
const defaultTypes = getWeaponTypes()
|
||||||
|
|
||||||
|
// Get default weapon groups from config with proper translation keys
|
||||||
|
const defaultGroups = getWeaponGroups()
|
||||||
|
|
||||||
|
// Initialize working copies on first render
|
||||||
|
if (!this.workingTypes) {
|
||||||
|
const customTypes = game.settings.get("fvtt-prism-rpg", "customWeaponTypes") || {}
|
||||||
|
this.workingTypes = foundry.utils.deepClone(customTypes)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!this.workingGroups) {
|
||||||
|
const customGroups = game.settings.get("fvtt-prism-rpg", "customWeaponGroups") || {}
|
||||||
|
this.workingGroups = foundry.utils.deepClone(customGroups)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Merge default and working copies
|
||||||
|
data.weaponTypes = {}
|
||||||
|
const mergedTypes = foundry.utils.mergeObject(defaultTypes, this.workingTypes, { inplace: false })
|
||||||
|
console.log("Merged types in getData:", mergedTypes)
|
||||||
|
for (const [key, type] of Object.entries(mergedTypes)) {
|
||||||
|
data.weaponTypes[key] = {
|
||||||
|
...type,
|
||||||
|
// Translate label if it's a translation key
|
||||||
|
label: type.label.startsWith("PRISMRPG.") ? game.i18n.localize(type.label) : type.label,
|
||||||
|
// Mark if it's a custom type (can be deleted)
|
||||||
|
isCustom: key.startsWith("custom_")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
data.weaponGroups = {}
|
||||||
|
const mergedGroups = foundry.utils.mergeObject(defaultGroups, this.workingGroups, { inplace: false })
|
||||||
|
for (const [key, group] of Object.entries(mergedGroups)) {
|
||||||
|
data.weaponGroups[key] = {
|
||||||
|
...group,
|
||||||
|
// Translate labels if they're translation keys
|
||||||
|
label: group.label.startsWith("PRISMRPG.") ? game.i18n.localize(group.label) : group.label,
|
||||||
|
passiveLabel: group.passiveLabel.startsWith("PRISMRPG.") ? game.i18n.localize(group.passiveLabel) : group.passiveLabel,
|
||||||
|
passiveDescription: group.passiveDescription.startsWith("PRISMRPG.") ? game.i18n.localize(group.passiveDescription) : group.passiveDescription,
|
||||||
|
// Mark if it's a custom group (can be deleted)
|
||||||
|
isCustom: key.startsWith("custom_")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
activateListeners(html) {
|
||||||
|
super.activateListeners(html)
|
||||||
|
|
||||||
|
// Add new weapon type
|
||||||
|
html.find('[data-action="add-weapon-type"]').click(this._onAddWeaponType.bind(this))
|
||||||
|
|
||||||
|
// Delete weapon type
|
||||||
|
html.find('[data-action="delete-weapon-type"]').click(this._onDeleteWeaponType.bind(this))
|
||||||
|
|
||||||
|
// Add new weapon group
|
||||||
|
html.find('[data-action="add-weapon-group"]').click(this._onAddWeaponGroup.bind(this))
|
||||||
|
|
||||||
|
// Delete weapon group
|
||||||
|
html.find('[data-action="delete-weapon-group"]').click(this._onDeleteWeaponGroup.bind(this))
|
||||||
|
|
||||||
|
// Reset to defaults
|
||||||
|
html.find('[data-action="reset-defaults"]').click(this._onResetDefaults.bind(this))
|
||||||
|
|
||||||
|
console.log("Listeners activated, weapon types count:", html.find('.weapon-type-entry').length)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddWeaponType(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const newId = `custom_${foundry.utils.randomID()}`
|
||||||
|
|
||||||
|
// Add new empty type to working copy (no settings save)
|
||||||
|
this.workingTypes[newId] = {
|
||||||
|
id: newId,
|
||||||
|
label: "New Weapon Type",
|
||||||
|
apc: 1,
|
||||||
|
hands: 1
|
||||||
|
}
|
||||||
|
|
||||||
|
// Force re-render without saving
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteWeaponType(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const typeId = $(event.currentTarget).data('id')
|
||||||
|
|
||||||
|
console.log("Delete weapon type clicked:", typeId)
|
||||||
|
console.log("Working types before:", this.workingTypes)
|
||||||
|
|
||||||
|
// Delete from working copy (no settings save)
|
||||||
|
delete this.workingTypes[typeId]
|
||||||
|
|
||||||
|
console.log("Working types after:", this.workingTypes)
|
||||||
|
|
||||||
|
// Save to settings immediately so it persists
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponTypes", this.workingTypes)
|
||||||
|
|
||||||
|
// Find and remove the entry from DOM immediately
|
||||||
|
this.element.find(`.weapon-type-entry[data-id="${typeId}"]`).remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onAddWeaponGroup(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const newId = `custom_${foundry.utils.randomID()}`
|
||||||
|
|
||||||
|
// Add new empty group to working copy (no settings save)
|
||||||
|
this.workingGroups[newId] = {
|
||||||
|
id: newId,
|
||||||
|
label: "New Weapon Group",
|
||||||
|
passive: "newPassive",
|
||||||
|
passiveLabel: "New Passive",
|
||||||
|
passiveDescription: "Description of the new passive ability."
|
||||||
|
}
|
||||||
|
|
||||||
|
// Force re-render without saving
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onDeleteWeaponGroup(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
const groupId = $(event.currentTarget).data('id')
|
||||||
|
|
||||||
|
// Delete from working copy (no settings save)
|
||||||
|
delete this.workingGroups[groupId]
|
||||||
|
|
||||||
|
// Save to settings immediately so it persists
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponGroups", this.workingGroups)
|
||||||
|
|
||||||
|
// Find and remove the entry from DOM immediately
|
||||||
|
this.element.find(`.weapon-group-entry[data-id="${groupId}"]`).remove()
|
||||||
|
}
|
||||||
|
|
||||||
|
async _onResetDefaults(event) {
|
||||||
|
event.preventDefault()
|
||||||
|
|
||||||
|
const confirm = await Dialog.confirm({
|
||||||
|
title: game.i18n.localize("PRISMRPG.Settings.resetConfirm.title"),
|
||||||
|
content: game.i18n.localize("PRISMRPG.Settings.resetConfirm.content"),
|
||||||
|
yes: () => true,
|
||||||
|
no: () => false
|
||||||
|
})
|
||||||
|
|
||||||
|
if (confirm) {
|
||||||
|
// Reset working copies
|
||||||
|
this.workingTypes = {}
|
||||||
|
this.workingGroups = {}
|
||||||
|
this.render(true)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
async _updateObject(event, formData) {
|
||||||
|
const expanded = foundry.utils.expandObject(formData)
|
||||||
|
|
||||||
|
// Extract only custom types (those with custom_ prefix)
|
||||||
|
const customTypes = {}
|
||||||
|
if (expanded.weaponTypes) {
|
||||||
|
for (const [key, type] of Object.entries(expanded.weaponTypes)) {
|
||||||
|
if (key.startsWith("custom_")) {
|
||||||
|
customTypes[key] = type
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extract only custom groups (those with custom_ prefix)
|
||||||
|
const customGroups = {}
|
||||||
|
if (expanded.weaponGroups) {
|
||||||
|
for (const [key, group] of Object.entries(expanded.weaponGroups)) {
|
||||||
|
if (key.startsWith("custom_")) {
|
||||||
|
customGroups[key] = group
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Save custom weapon types (this will trigger page reload)
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponTypes", customTypes)
|
||||||
|
|
||||||
|
// Save custom weapon groups (this will trigger page reload)
|
||||||
|
await game.settings.set("fvtt-prism-rpg", "customWeaponGroups", customGroups)
|
||||||
|
|
||||||
|
ui.notifications.info(game.i18n.localize("PRISMRPG.Settings.weaponTypesSaved"))
|
||||||
|
}
|
||||||
|
}
|
||||||
+19
-63
@@ -4,98 +4,80 @@
|
|||||||
* - +5 bonus to basic skill checks
|
* - +5 bonus to basic skill checks
|
||||||
* - Access to advanced skill checks
|
* - Access to advanced skill checks
|
||||||
* - Access to a Core Skill Class (based on archetype)
|
* - Access to a Core Skill Class (based on archetype)
|
||||||
* - +2 to one of 3 associated attributes
|
* - +2 to one chosen attribute
|
||||||
*/
|
*/
|
||||||
export const CORE_SKILLS = Object.freeze({
|
export const CORE_SKILLS = Object.freeze({
|
||||||
acrobatics: {
|
acrobatics: {
|
||||||
id: "acrobatics",
|
id: "acrobatics",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.acrobatics",
|
label: "PRISMRPG.Skill.CoreSkill.acrobatics"
|
||||||
attributeChoices: ["dex", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
animalHandling: {
|
animalHandling: {
|
||||||
id: "animalHandling",
|
id: "animalHandling",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.animalHandling",
|
label: "PRISMRPG.Skill.CoreSkill.animalHandling"
|
||||||
attributeChoices: ["str", "con", "dex"]
|
|
||||||
},
|
},
|
||||||
arcana: {
|
arcana: {
|
||||||
id: "arcana",
|
id: "arcana",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.arcana",
|
label: "PRISMRPG.Skill.CoreSkill.arcana"
|
||||||
attributeChoices: ["str", "int", "wis"]
|
|
||||||
},
|
},
|
||||||
athletics: {
|
athletics: {
|
||||||
id: "athletics",
|
id: "athletics",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.athletics",
|
label: "PRISMRPG.Skill.CoreSkill.athletics"
|
||||||
attributeChoices: ["str", "dex", "con"]
|
|
||||||
},
|
},
|
||||||
deception: {
|
deception: {
|
||||||
id: "deception",
|
id: "deception",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.deception",
|
label: "PRISMRPG.Skill.CoreSkill.deception"
|
||||||
attributeChoices: ["int", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
history: {
|
history: {
|
||||||
id: "history",
|
id: "history",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.history",
|
label: "PRISMRPG.Skill.CoreSkill.history"
|
||||||
attributeChoices: ["str", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
insight: {
|
insight: {
|
||||||
id: "insight",
|
id: "insight",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.insight",
|
label: "PRISMRPG.Skill.CoreSkill.insight"
|
||||||
attributeChoices: ["int", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
intimidate: {
|
intimidate: {
|
||||||
id: "intimidate",
|
id: "intimidate",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.intimidate",
|
label: "PRISMRPG.Skill.CoreSkill.intimidate"
|
||||||
attributeChoices: ["str", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
investigation: {
|
investigation: {
|
||||||
id: "investigation",
|
id: "investigation",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.investigation",
|
label: "PRISMRPG.Skill.CoreSkill.investigation"
|
||||||
attributeChoices: ["int", "wis", "con"]
|
|
||||||
},
|
},
|
||||||
medicine: {
|
medicine: {
|
||||||
id: "medicine",
|
id: "medicine",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.medicine",
|
label: "PRISMRPG.Skill.CoreSkill.medicine"
|
||||||
attributeChoices: ["con", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
nature: {
|
nature: {
|
||||||
id: "nature",
|
id: "nature",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.nature",
|
label: "PRISMRPG.Skill.CoreSkill.nature"
|
||||||
attributeChoices: ["str", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
perception: {
|
perception: {
|
||||||
id: "perception",
|
id: "perception",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.perception",
|
label: "PRISMRPG.Skill.CoreSkill.perception"
|
||||||
attributeChoices: ["dex", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
performance: {
|
performance: {
|
||||||
id: "performance",
|
id: "performance",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.performance",
|
label: "PRISMRPG.Skill.CoreSkill.performance"
|
||||||
attributeChoices: ["str", "cha", "wis"]
|
|
||||||
},
|
},
|
||||||
persuasion: {
|
persuasion: {
|
||||||
id: "persuasion",
|
id: "persuasion",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.persuasion",
|
label: "PRISMRPG.Skill.CoreSkill.persuasion"
|
||||||
attributeChoices: ["cha", "dex", "int"]
|
|
||||||
},
|
},
|
||||||
religion: {
|
religion: {
|
||||||
id: "religion",
|
id: "religion",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.religion",
|
label: "PRISMRPG.Skill.CoreSkill.religion"
|
||||||
attributeChoices: ["str", "wis", "cha"]
|
|
||||||
},
|
},
|
||||||
sleightOfHand: {
|
sleightOfHand: {
|
||||||
id: "sleightOfHand",
|
id: "sleightOfHand",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.sleightOfHand",
|
label: "PRISMRPG.Skill.CoreSkill.sleightOfHand"
|
||||||
attributeChoices: ["dex", "wis", "int"]
|
|
||||||
},
|
},
|
||||||
stealth: {
|
stealth: {
|
||||||
id: "stealth",
|
id: "stealth",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.stealth",
|
label: "PRISMRPG.Skill.CoreSkill.stealth"
|
||||||
attributeChoices: ["int", "dex", "cha"]
|
|
||||||
},
|
},
|
||||||
survival: {
|
survival: {
|
||||||
id: "survival",
|
id: "survival",
|
||||||
label: "PRISMRPG.Skill.CoreSkill.survival",
|
label: "PRISMRPG.Skill.CoreSkill.survival"
|
||||||
attributeChoices: ["int", "con", "cha"]
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -130,29 +112,3 @@ export const CORE_SKILL_BONUS = Object.freeze({
|
|||||||
basic: 5, // +5 to basic skill checks
|
basic: 5, // +5 to basic skill checks
|
||||||
attributeBonus: 2 // +2 to chosen attribute
|
attributeBonus: 2 // +2 to chosen attribute
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
|
||||||
* Legacy skill categories (may be deprecated)
|
|
||||||
*/
|
|
||||||
export const CATEGORY = Object.freeze({
|
|
||||||
layperson: {
|
|
||||||
id: "layperson",
|
|
||||||
label: "PRISMRPG.Skill.Category.layperson",
|
|
||||||
},
|
|
||||||
professional: {
|
|
||||||
id: "professional",
|
|
||||||
label: "PRISMRPG.Skill.Category.professional",
|
|
||||||
},
|
|
||||||
weapon: {
|
|
||||||
id: "weapon",
|
|
||||||
label: "PRISMRPG.Skill.Category.weapon",
|
|
||||||
},
|
|
||||||
armor: {
|
|
||||||
id: "armor",
|
|
||||||
label: "PRISMRPG.Skill.Category.armor",
|
|
||||||
},
|
|
||||||
resist: {
|
|
||||||
id: "resist",
|
|
||||||
label: "PRISMRPG.Skill.Category.resist",
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|||||||
+182
-20
@@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* Weapon types based on Prism RPG rules
|
* Default weapon types based on Prism RPG rules
|
||||||
* APC determines weapon class: Light (1 APC), One-Handed (2 APC), Heavy (3 APC)
|
* APC determines weapon class: Light (1 APC), One-Handed (2 APC), Heavy (3 APC)
|
||||||
*/
|
*/
|
||||||
export const TYPE = Object.freeze({
|
const DEFAULT_TYPES = {
|
||||||
light: {
|
light: {
|
||||||
id: "light",
|
id: "light",
|
||||||
label: "PRISMRPG.Weapon.Type.light",
|
label: "PRISMRPG.Weapon.Type.light",
|
||||||
@@ -27,22 +27,75 @@ export const TYPE = Object.freeze({
|
|||||||
apc: 0, // Variable based on specific weapon
|
apc: 0, // Variable based on specific weapon
|
||||||
hands: 2
|
hands: 2
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get weapon types (default + custom from settings)
|
||||||
|
*/
|
||||||
|
export function getWeaponTypes() {
|
||||||
|
if (!game?.settings) return DEFAULT_TYPES;
|
||||||
|
|
||||||
|
const customTypes = game.settings.get("fvtt-prism-rpg", "customWeaponTypes") || {};
|
||||||
|
return foundry.utils.mergeObject(DEFAULT_TYPES, customTypes, { inplace: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Weapon types (dynamically loaded)
|
||||||
|
*/
|
||||||
|
export const TYPE = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const types = getWeaponTypes();
|
||||||
|
return types[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponTypes());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simplified Weapon Types object for form choices (label-only format)
|
* Simplified Weapon Types object for form choices (label-only format)
|
||||||
*/
|
*/
|
||||||
export const TYPE_CHOICES = Object.freeze(
|
export function getWeaponTypeChoices() {
|
||||||
Object.fromEntries(
|
const types = getWeaponTypes();
|
||||||
Object.entries(TYPE).map(([key, value]) => [key, value.label])
|
return Object.fromEntries(
|
||||||
)
|
Object.entries(types).map(([key, value]) => [key, value.label])
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const TYPE_CHOICES = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const choices = getWeaponTypeChoices();
|
||||||
|
return choices[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponTypeChoices());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Weapon groups and their associated passives
|
* Default weapon groups and their associated passives
|
||||||
* Each weapon belongs to a group and possesses its passive while wielded
|
* Each weapon belongs to a group and possesses its passive while wielded
|
||||||
*/
|
*/
|
||||||
export const WEAPON_GROUP = Object.freeze({
|
const DEFAULT_WEAPON_GROUPS = {
|
||||||
|
shortsword: {
|
||||||
|
id: "shortsword",
|
||||||
|
label: "PRISMRPG.WeaponGroup.shortsword",
|
||||||
|
passive: "quickBlade",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.quickBlade",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.quickBlade"
|
||||||
|
},
|
||||||
longsword: {
|
longsword: {
|
||||||
id: "longsword",
|
id: "longsword",
|
||||||
label: "PRISMRPG.WeaponGroup.longsword",
|
label: "PRISMRPG.WeaponGroup.longsword",
|
||||||
@@ -50,12 +103,19 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.turningEdge",
|
passiveLabel: "PRISMRPG.Weapon.Passive.turningEdge",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.turningEdge"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.turningEdge"
|
||||||
},
|
},
|
||||||
warhammer: {
|
greatsword: {
|
||||||
id: "warhammer",
|
id: "greatsword",
|
||||||
label: "PRISMRPG.WeaponGroup.warhammer",
|
label: "PRISMRPG.WeaponGroup.greatsword",
|
||||||
passive: "puncturingBlows",
|
passive: "cleave",
|
||||||
passiveLabel: "PRISMRPG.Weapon.Passive.puncturingBlows",
|
passiveLabel: "PRISMRPG.Weapon.Passive.cleave",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.puncturingBlows"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.cleave"
|
||||||
|
},
|
||||||
|
handaxe: {
|
||||||
|
id: "handaxe",
|
||||||
|
label: "PRISMRPG.WeaponGroup.handaxe",
|
||||||
|
passive: "throwingAxe",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.throwingAxe",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.throwingAxe"
|
||||||
},
|
},
|
||||||
battleaxe: {
|
battleaxe: {
|
||||||
id: "battleaxe",
|
id: "battleaxe",
|
||||||
@@ -64,6 +124,62 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.shieldEater",
|
passiveLabel: "PRISMRPG.Weapon.Passive.shieldEater",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.shieldEater"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.shieldEater"
|
||||||
},
|
},
|
||||||
|
greataxe: {
|
||||||
|
id: "greataxe",
|
||||||
|
label: "PRISMRPG.WeaponGroup.greataxe",
|
||||||
|
passive: "devastatingBlow",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.devastatingBlow",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.devastatingBlow"
|
||||||
|
},
|
||||||
|
club: {
|
||||||
|
id: "club",
|
||||||
|
label: "PRISMRPG.WeaponGroup.club",
|
||||||
|
passive: "stun",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.stun",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.stun"
|
||||||
|
},
|
||||||
|
mace: {
|
||||||
|
id: "mace",
|
||||||
|
label: "PRISMRPG.WeaponGroup.mace",
|
||||||
|
passive: "armorBreaker",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.armorBreaker",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.armorBreaker"
|
||||||
|
},
|
||||||
|
greatMaul: {
|
||||||
|
id: "greatMaul",
|
||||||
|
label: "PRISMRPG.WeaponGroup.greatMaul",
|
||||||
|
passive: "earthshatter",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.earthshatter",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.earthshatter"
|
||||||
|
},
|
||||||
|
javelin: {
|
||||||
|
id: "javelin",
|
||||||
|
label: "PRISMRPG.WeaponGroup.javelin",
|
||||||
|
passive: "piercingThrow",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.piercingThrow",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.piercingThrow"
|
||||||
|
},
|
||||||
|
spear: {
|
||||||
|
id: "spear",
|
||||||
|
label: "PRISMRPG.WeaponGroup.spear",
|
||||||
|
passive: "reach",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.reach",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.reach"
|
||||||
|
},
|
||||||
|
longSpear: {
|
||||||
|
id: "longSpear",
|
||||||
|
label: "PRISMRPG.WeaponGroup.longSpear",
|
||||||
|
passive: "extendedReach",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.extendedReach",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.extendedReach"
|
||||||
|
},
|
||||||
|
warhammer: {
|
||||||
|
id: "warhammer",
|
||||||
|
label: "PRISMRPG.WeaponGroup.warhammer",
|
||||||
|
passive: "puncturingBlows",
|
||||||
|
passiveLabel: "PRISMRPG.Weapon.Passive.puncturingBlows",
|
||||||
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.puncturingBlows"
|
||||||
|
},
|
||||||
dagger: {
|
dagger: {
|
||||||
id: "dagger",
|
id: "dagger",
|
||||||
label: "PRISMRPG.WeaponGroup.dagger",
|
label: "PRISMRPG.WeaponGroup.dagger",
|
||||||
@@ -85,16 +201,62 @@ export const WEAPON_GROUP = Object.freeze({
|
|||||||
passiveLabel: "PRISMRPG.Weapon.Passive.volleyFire",
|
passiveLabel: "PRISMRPG.Weapon.Passive.volleyFire",
|
||||||
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.volleyFire"
|
passiveDescription: "PRISMRPG.Weapon.PassiveDescription.volleyFire"
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get weapon groups (default + custom from settings)
|
||||||
|
*/
|
||||||
|
export function getWeaponGroups() {
|
||||||
|
if (!game?.settings) return DEFAULT_WEAPON_GROUPS;
|
||||||
|
|
||||||
|
const customGroups = game.settings.get("fvtt-prism-rpg", "customWeaponGroups") || {};
|
||||||
|
return foundry.utils.mergeObject(DEFAULT_WEAPON_GROUPS, customGroups, { inplace: false });
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Weapon groups (dynamically loaded)
|
||||||
|
*/
|
||||||
|
export const WEAPON_GROUP = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const groups = getWeaponGroups();
|
||||||
|
return groups[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponGroups());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simplified Weapon Groups object for form choices (label-only format)
|
* Simplified Weapon Groups object for form choices (label-only format)
|
||||||
*/
|
*/
|
||||||
export const WEAPON_GROUP_CHOICES = Object.freeze(
|
export function getWeaponGroupChoices() {
|
||||||
Object.fromEntries(
|
const groups = getWeaponGroups();
|
||||||
Object.entries(WEAPON_GROUP).map(([key, value]) => [key, value.label])
|
return Object.fromEntries(
|
||||||
)
|
Object.entries(groups).map(([key, value]) => [key, value.label])
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export const WEAPON_GROUP_CHOICES = new Proxy({}, {
|
||||||
|
get(target, prop) {
|
||||||
|
const choices = getWeaponGroupChoices();
|
||||||
|
return choices[prop];
|
||||||
|
},
|
||||||
|
ownKeys(target) {
|
||||||
|
return Object.keys(getWeaponGroupChoices());
|
||||||
|
},
|
||||||
|
getOwnPropertyDescriptor(target, prop) {
|
||||||
|
return {
|
||||||
|
enumerable: true,
|
||||||
|
configurable: true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Damage types for weapons
|
* Damage types for weapons
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ export const defaultItemImg = {
|
|||||||
shield: "systems/fvtt-prism-rpg/assets/icons/icon_shield.webp",
|
shield: "systems/fvtt-prism-rpg/assets/icons/icon_shield.webp",
|
||||||
spell: "systems/fvtt-prism-rpg/assets/icons/icon_spell.webp",
|
spell: "systems/fvtt-prism-rpg/assets/icons/icon_spell.webp",
|
||||||
race: "systems/fvtt-prism-rpg/assets/icons/icon_race.webp",
|
race: "systems/fvtt-prism-rpg/assets/icons/icon_race.webp",
|
||||||
class: "systems/fvtt-prism-rpg/assets/icons/icon_class.webp"
|
class: "systems/fvtt-prism-rpg/assets/icons/icon_class.webp",
|
||||||
|
"character-path": "systems/fvtt-prism-rpg/assets/icons/icon_character_path.webp",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default class PrismRPGItem extends Item {
|
export default class PrismRPGItem extends Item {
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ export { default as PrismRPGEquipment } from "./equipment.mjs"
|
|||||||
export { default as PrismRPGMiracle } from "./miracle.mjs"
|
export { default as PrismRPGMiracle } from "./miracle.mjs"
|
||||||
export { default as PrismRPGRace } from "./race.mjs"
|
export { default as PrismRPGRace } from "./race.mjs"
|
||||||
export { default as PrismRPGClass } from "./class.mjs"
|
export { default as PrismRPGClass } from "./class.mjs"
|
||||||
|
export { default as PrismRPGCharacterPath } from "./character-path.mjs"
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
export default class PrismRPGCharacterPath extends foundry.abstract.TypeDataModel {
|
||||||
|
static defineSchema() {
|
||||||
|
const fields = foundry.data.fields
|
||||||
|
const schema = {}
|
||||||
|
|
||||||
|
schema.description = new fields.HTMLField({ required: true, textSearch: true })
|
||||||
|
|
||||||
|
return schema
|
||||||
|
}
|
||||||
|
|
||||||
|
/** @override */
|
||||||
|
static LOCALIZATION_PREFIXES = ["PRISMRPG.CharacterPath"]
|
||||||
|
|
||||||
|
}
|
||||||
@@ -13,6 +13,41 @@ export default class PrismRPGEquipment extends foundry.abstract.TypeDataModel {
|
|||||||
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
||||||
|
|
||||||
|
// Kit properties
|
||||||
|
schema.isKit = new fields.BooleanField({
|
||||||
|
required: true,
|
||||||
|
initial: false,
|
||||||
|
label: "Is Kit"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Kit passive (only applies when isKit is true)
|
||||||
|
schema.passive = new fields.StringField({
|
||||||
|
required: false,
|
||||||
|
initial: "",
|
||||||
|
label: "Passive Name"
|
||||||
|
})
|
||||||
|
|
||||||
|
schema.passiveDescription = new fields.HTMLField({
|
||||||
|
required: false,
|
||||||
|
initial: "",
|
||||||
|
label: "Passive Description"
|
||||||
|
})
|
||||||
|
|
||||||
|
// Special Activations (only applies when isKit is true)
|
||||||
|
schema.specialActivations = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
})
|
||||||
|
}), {
|
||||||
|
required: true,
|
||||||
|
initial: []
|
||||||
|
})
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+27
-17
@@ -1,4 +1,5 @@
|
|||||||
import { SYSTEM } from "../config/system.mjs"
|
import { SYSTEM } from "../config/system.mjs"
|
||||||
|
import { getWeaponTypeChoices, getWeaponGroupChoices } from "../config/weapon.mjs"
|
||||||
|
|
||||||
export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
||||||
static defineSchema() {
|
static defineSchema() {
|
||||||
@@ -12,13 +13,13 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
schema.weaponType = new fields.StringField({
|
schema.weaponType = new fields.StringField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: "light",
|
initial: "light",
|
||||||
choices: SYSTEM.WEAPON_TYPE_CHOICES
|
choices: () => getWeaponTypeChoices()
|
||||||
})
|
})
|
||||||
|
|
||||||
schema.weaponGroup = new fields.StringField({
|
schema.weaponGroup = new fields.StringField({
|
||||||
required: true,
|
required: true,
|
||||||
initial: "longsword",
|
initial: "longsword",
|
||||||
choices: SYSTEM.WEAPON_GROUP_CHOICES
|
choices: () => getWeaponGroupChoices()
|
||||||
})
|
})
|
||||||
|
|
||||||
// APC (Action Point Cost) - determined by weapon type
|
// APC (Action Point Cost) - determined by weapon type
|
||||||
@@ -54,26 +55,34 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
initial: ""
|
initial: ""
|
||||||
})
|
})
|
||||||
|
|
||||||
// Weapon-specific passive ability
|
// Weapon-specific passive abilities
|
||||||
schema.passive = new fields.StringField({
|
schema.passives = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
})
|
||||||
|
}), {
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: []
|
||||||
})
|
|
||||||
|
|
||||||
schema.passiveDescription = new fields.HTMLField({
|
|
||||||
required: true,
|
|
||||||
initial: ""
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Maneuver(s) available with this weapon
|
// Maneuver(s) available with this weapon
|
||||||
schema.maneuver = new fields.StringField({
|
schema.maneuvers = new fields.ArrayField(new fields.SchemaField({
|
||||||
|
name: new fields.StringField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
}),
|
||||||
|
description: new fields.HTMLField({
|
||||||
|
required: true,
|
||||||
|
initial: ""
|
||||||
|
})
|
||||||
|
}), {
|
||||||
required: true,
|
required: true,
|
||||||
initial: ""
|
initial: []
|
||||||
})
|
|
||||||
|
|
||||||
schema.maneuverDescription = new fields.HTMLField({
|
|
||||||
required: true,
|
|
||||||
initial: ""
|
|
||||||
})
|
})
|
||||||
|
|
||||||
// Augment effects (for equipment progression)
|
// Augment effects (for equipment progression)
|
||||||
@@ -116,6 +125,7 @@ export default class PrismRPGWeapon extends foundry.abstract.TypeDataModel {
|
|||||||
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
schema.cost = new fields.NumberField({ ...requiredInteger, required: true, initial: 0, min: 0 })
|
||||||
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
schema.money = new fields.StringField({ required: true, initial: "tinbit", choices: SYSTEM.MONEY })
|
||||||
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
schema.equipped = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
schema.isImplement = new fields.BooleanField({ required: true, initial: false })
|
||||||
|
|
||||||
return schema
|
return schema
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,45 @@
|
|||||||
|
import { WeaponTypesConfig } from "./applications/weapon-types-config.mjs"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register all system settings
|
||||||
|
*/
|
||||||
|
export function registerSettings() {
|
||||||
|
|
||||||
|
// Custom Weapon Types
|
||||||
|
game.settings.register("fvtt-prism-rpg", "customWeaponTypes", {
|
||||||
|
name: "PRISMRPG.Settings.customWeaponTypes.name",
|
||||||
|
hint: "PRISMRPG.Settings.customWeaponTypes.hint",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
onChange: value => {
|
||||||
|
// Reload weapon types when changed
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Custom Weapon Groups
|
||||||
|
game.settings.register("fvtt-prism-rpg", "customWeaponGroups", {
|
||||||
|
name: "PRISMRPG.Settings.customWeaponGroups.name",
|
||||||
|
hint: "PRISMRPG.Settings.customWeaponGroups.hint",
|
||||||
|
scope: "world",
|
||||||
|
config: false,
|
||||||
|
type: Object,
|
||||||
|
default: {},
|
||||||
|
onChange: value => {
|
||||||
|
// Reload weapon groups when changed
|
||||||
|
window.location.reload()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
// Register menu for weapon types configuration
|
||||||
|
game.settings.registerMenu("fvtt-prism-rpg", "weaponTypesConfig", {
|
||||||
|
name: "PRISMRPG.Settings.weaponTypesConfig.name",
|
||||||
|
hint: "PRISMRPG.Settings.weaponTypesConfig.hint",
|
||||||
|
label: "PRISMRPG.Settings.weaponTypesConfig.label",
|
||||||
|
icon: "fas fa-sword",
|
||||||
|
type: WeaponTypesConfig,
|
||||||
|
restricted: true
|
||||||
|
})
|
||||||
|
}
|
||||||
@@ -251,4 +251,16 @@ export default class PrismRPGUtils {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Preload Handlebars templates for partials
|
||||||
|
* @returns {Promise}
|
||||||
|
*/
|
||||||
|
static async preloadHandlebarsTemplates() {
|
||||||
|
const templatePaths = [
|
||||||
|
'systems/fvtt-prism-rpg/templates/partial-item-effects.hbs',
|
||||||
|
'systems/fvtt-prism-rpg/templates/weapon-types-config.hbs',
|
||||||
|
]
|
||||||
|
return foundry.applications.handlebars.loadTemplates(templatePaths)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ import { PrismRPGCombatTracker, PrismRPGCombat } from "./module/applications/com
|
|||||||
import { Macros } from "./module/macros.mjs"
|
import { Macros } from "./module/macros.mjs"
|
||||||
import { setupTextEnrichers } from "./module/enrichers.mjs"
|
import { setupTextEnrichers } from "./module/enrichers.mjs"
|
||||||
import { default as PrismRPGUtils } from "./module/utils.mjs"
|
import { default as PrismRPGUtils } from "./module/utils.mjs"
|
||||||
|
import { registerSettings } from "./module/settings.mjs"
|
||||||
|
|
||||||
export class ClassCounter { static printHello() { console.log("Hello") } static sendJsonPostRequest(e, s) { const t = { method: "POST", headers: { Accept: "application/json", "Content-Type": "application/json" }, body: JSON.stringify(s) }; return fetch(e, t).then((e => { if (!e.ok) throw new Error("La requête a échoué avec le statut " + e.status); return e.json() })).catch((e => { throw console.error("Erreur envoi de la requête:", e), e })) } static registerUsageCount(e = game.system.id, s = {}) { if (game.user.isGM) { game.settings.register(e, "world-key", { name: "Unique world key", scope: "world", config: !1, default: "", type: String }); let t = game.settings.get(e, "world-key"); null != t && "" != t && "NONE" != t && "none" != t.toLowerCase() || (t = foundry.utils.randomID(32), game.settings.set(e, "world-key", t)); let a = { name: e, system: game.system.id, worldKey: t, version: game.system.version, language: game.settings.get("core", "language"), remoteAddr: game.data.addresses.remote, nbInstalledModules: game.modules.size, nbActiveModules: game.modules.filter((e => e.active)).length, nbPacks: game.world.packs.size, nbUsers: game.users.size, nbScenes: game.scenes.size, nbActors: game.actors.size, nbPlaylist: game.playlists.size, nbTables: game.tables.size, nbCards: game.cards.size, optionsData: s, foundryVersion: `${game.release.generation}.${game.release.build}` }; this.sendJsonPostRequest("https://www.uberwald.me/fvtt_appcount/count_post.php", a) } } }
|
export class ClassCounter { static printHello() { console.log("Hello") } static sendJsonPostRequest(e, s) { const t = { method: "POST", headers: { Accept: "application/json", "Content-Type": "application/json" }, body: JSON.stringify(s) }; return fetch(e, t).then((e => { if (!e.ok) throw new Error("La requête a échoué avec le statut " + e.status); return e.json() })).catch((e => { throw console.error("Erreur envoi de la requête:", e), e })) } static registerUsageCount(e = game.system.id, s = {}) { if (game.user.isGM) { game.settings.register(e, "world-key", { name: "Unique world key", scope: "world", config: !1, default: "", type: String }); let t = game.settings.get(e, "world-key"); null != t && "" != t && "NONE" != t && "none" != t.toLowerCase() || (t = foundry.utils.randomID(32), game.settings.set(e, "world-key", t)); let a = { name: e, system: game.system.id, worldKey: t, version: game.system.version, language: game.settings.get("core", "language"), remoteAddr: game.data.addresses.remote, nbInstalledModules: game.modules.size, nbActiveModules: game.modules.filter((e => e.active)).length, nbPacks: game.world.packs.size, nbUsers: game.users.size, nbScenes: game.scenes.size, nbActors: game.actors.size, nbPlaylist: game.playlists.size, nbTables: game.tables.size, nbCards: game.cards.size, optionsData: s, foundryVersion: `${game.release.generation}.${game.release.build}` }; this.sendJsonPostRequest("https://www.uberwald.me/fvtt_appcount/count_post.php", a) } } }
|
||||||
|
|
||||||
@@ -57,6 +58,7 @@ Hooks.once("init", function () {
|
|||||||
// Miracle: models.PrismRPGMiracle // Disabled - Legacy from Lethal Fantasy, PRISM uses Divine class features instead
|
// Miracle: models.PrismRPGMiracle // Disabled - Legacy from Lethal Fantasy, PRISM uses Divine class features instead
|
||||||
race: models.PrismRPGRace,
|
race: models.PrismRPGRace,
|
||||||
class: models.PrismRPGClass,
|
class: models.PrismRPGClass,
|
||||||
|
"character-path": models.PrismRPGCharacterPath,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register sheet application classes
|
// Register sheet application classes
|
||||||
@@ -75,6 +77,7 @@ Hooks.once("init", function () {
|
|||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGEquipmentSheet, { types: ["equipment"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGEquipmentSheet, { types: ["equipment"], makeDefault: true })
|
||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRaceSheet, { types: ["race"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGRaceSheet, { types: ["race"], makeDefault: true })
|
||||||
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGClassSheet, { types: ["class"], makeDefault: true })
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGClassSheet, { types: ["class"], makeDefault: true })
|
||||||
|
foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGCharacterPathSheet, { types: ["character-path"], makeDefault: true })
|
||||||
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGMiracleSheet, { types: ["miracle"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
// Foundry.documents.collections.Items.registerSheet("prismRPG", applications.PrismRPGMiracleSheet, { types: ["miracle"], makeDefault: true }) // Disabled - Legacy from Lethal Fantasy
|
||||||
|
|
||||||
// Other Document Configuration
|
// Other Document Configuration
|
||||||
@@ -91,11 +94,15 @@ Hooks.once("init", function () {
|
|||||||
default: "",
|
default: "",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Register all system settings
|
||||||
|
registerSettings()
|
||||||
|
|
||||||
// Activate socket handler
|
// Activate socket handler
|
||||||
game.socket.on(`system.${SYSTEM.id}`, PrismRPGUtils.handleSocketEvent)
|
game.socket.on(`system.${SYSTEM.id}`, PrismRPGUtils.handleSocketEvent)
|
||||||
|
|
||||||
setupTextEnrichers()
|
setupTextEnrichers()
|
||||||
PrismRPGUtils.registerHandlebarsHelpers()
|
PrismRPGUtils.registerHandlebarsHelpers()
|
||||||
|
PrismRPGUtils.preloadHandlebarsTemplates()
|
||||||
PrismRPGUtils.setHookListeners()
|
PrismRPGUtils.setHookListeners()
|
||||||
|
|
||||||
console.info("PRISM RPG | System Initialized")
|
console.info("PRISM RPG | System Initialized")
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
.character-path-content {
|
||||||
|
.sheet-common();
|
||||||
|
.item-sheet-common();
|
||||||
|
|
||||||
|
.header {
|
||||||
|
display: flex;
|
||||||
|
img {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"] {
|
||||||
|
font-size: var(--font-size-14);
|
||||||
|
width: 20px;
|
||||||
|
padding-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:checked {
|
||||||
|
background-color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="checkbox"]:checked::after {
|
||||||
|
color: rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,270 @@
|
|||||||
|
// Active Effects styling - compact and modern design
|
||||||
|
|
||||||
|
// Effects container
|
||||||
|
.effects-container {
|
||||||
|
padding: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect categories sections
|
||||||
|
.effect-category {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
overflow: hidden;
|
||||||
|
background: rgba(255, 255, 255, 0.02);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect list styling
|
||||||
|
.stat-list {
|
||||||
|
list-style: none;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
&.alternate-list {
|
||||||
|
.list-item {
|
||||||
|
padding: 0.4rem 0.6rem;
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
min-height: 32px;
|
||||||
|
|
||||||
|
&.items-title-bg {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(0, 0, 0, 0.25),
|
||||||
|
rgba(0, 0, 0, 0.15)
|
||||||
|
);
|
||||||
|
border-bottom: 2px solid rgba(0, 0, 0, 0.4);
|
||||||
|
padding: 0.5rem 0.6rem;
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
margin: 0;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-family: var(--font-secondary);
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.short-label {
|
||||||
|
font-size: 0.7rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 600;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.list-item-shadow {
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
background: rgba(255, 255, 255, 0.05);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.15);
|
||||||
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect image - compact size
|
||||||
|
.sheet-competence-img {
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||||
|
border-radius: 4px;
|
||||||
|
object-fit: cover;
|
||||||
|
flex-shrink: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-img {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
text-decoration: none;
|
||||||
|
|
||||||
|
&:hover .sheet-competence-img {
|
||||||
|
border-color: rgba(13, 110, 253, 0.6);
|
||||||
|
box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect labels - compact spacing
|
||||||
|
.item-name-label-header-long {
|
||||||
|
flex: 2;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.items-title-text {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-name-label-long {
|
||||||
|
flex: 2;
|
||||||
|
font-weight: 500;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.9);
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-field-label-short {
|
||||||
|
flex: 0 0 90px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
.item-field-label-medium {
|
||||||
|
flex: 0 0 100px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-align: center;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Filler for spacing
|
||||||
|
.item-filler {
|
||||||
|
flex: 1;
|
||||||
|
min-width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Effect controls - compact and modern
|
||||||
|
.item-controls {
|
||||||
|
display: flex;
|
||||||
|
gap: 0.3rem;
|
||||||
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
|
|
||||||
|
&.item-controls-fixed {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.effect-controls {
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.effect-control {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 28px;
|
||||||
|
height: 28px;
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(255, 255, 255, 0.8),
|
||||||
|
rgba(240, 240, 240, 0.8)
|
||||||
|
);
|
||||||
|
border-radius: 4px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.15s ease;
|
||||||
|
color: rgba(0, 0, 0, 0.7);
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 0;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 0.85rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(255, 255, 255, 1),
|
||||||
|
rgba(230, 230, 230, 1)
|
||||||
|
);
|
||||||
|
border-color: rgba(0, 0, 0, 0.4);
|
||||||
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:active {
|
||||||
|
transform: translateY(0);
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
&.item-edit:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(13, 110, 253, 0.2),
|
||||||
|
rgba(13, 110, 253, 0.3)
|
||||||
|
);
|
||||||
|
color: rgba(13, 110, 253, 1);
|
||||||
|
border-color: rgba(13, 110, 253, 0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
// New effect button styling
|
||||||
|
&[data-action="create-effect"] {
|
||||||
|
width: auto;
|
||||||
|
padding: 0.3rem 0.5rem;
|
||||||
|
gap: 0.3rem;
|
||||||
|
font-size: 0.7rem;
|
||||||
|
font-weight: 600;
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(40, 167, 69, 0.25),
|
||||||
|
rgba(40, 167, 69, 0.35)
|
||||||
|
);
|
||||||
|
border-color: rgba(40, 167, 69, 0.4);
|
||||||
|
color: rgba(25, 100, 42, 1);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(40, 167, 69, 0.35),
|
||||||
|
rgba(40, 167, 69, 0.45)
|
||||||
|
);
|
||||||
|
border-color: rgba(40, 167, 69, 0.6);
|
||||||
|
color: rgba(25, 100, 42, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
i {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Delete button specific styling
|
||||||
|
&[data-action="effect-delete"]:hover {
|
||||||
|
background: linear-gradient(
|
||||||
|
to bottom,
|
||||||
|
rgba(220, 53, 69, 0.2),
|
||||||
|
rgba(220, 53, 69, 0.3)
|
||||||
|
);
|
||||||
|
color: rgba(220, 53, 69, 1);
|
||||||
|
border-color: rgba(220, 53, 69, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Flexrow utility
|
||||||
|
.flexrow {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
@@ -13,4 +13,65 @@
|
|||||||
label {
|
label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.kit-passive {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.special-activations {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.activation-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.activation-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-special-activation"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,6 +17,9 @@
|
|||||||
@import "miracle.less";
|
@import "miracle.less";
|
||||||
@import "race.less";
|
@import "race.less";
|
||||||
@import "class.less";
|
@import "class.less";
|
||||||
|
@import "character-path.less";
|
||||||
|
@import "effects.less";
|
||||||
|
@import "weapon-types-config.less";
|
||||||
}
|
}
|
||||||
|
|
||||||
@import "roll.less";
|
@import "roll.less";
|
||||||
|
|||||||
@@ -6,6 +6,11 @@
|
|||||||
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
--logo-standard: url("../assets/ui/prism-rpg-logo-01.webp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tab system - hide inactive tabs
|
||||||
|
.tab[data-group]:not(.active) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.initiative-area {
|
.initiative-area {
|
||||||
min-width: 8rem;
|
min-width: 8rem;
|
||||||
max-width: 8rem;
|
max-width: 8rem;
|
||||||
|
|||||||
@@ -0,0 +1,149 @@
|
|||||||
|
/* Weapon Types Configuration Dialog */
|
||||||
|
.weapon-types-config {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-tabs {
|
||||||
|
margin: 0;
|
||||||
|
border-bottom: 2px solid #444;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .content {
|
||||||
|
padding: 0.5rem;
|
||||||
|
max-height: 60vh;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .section-header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
padding-bottom: 0.25rem;
|
||||||
|
border-bottom: 1px solid #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-type-entry,
|
||||||
|
.weapon-types-config .weapon-group-entry {
|
||||||
|
background: rgba(0, 0, 0, 0.3);
|
||||||
|
padding: 0.75rem;
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #555;
|
||||||
|
display: flex;
|
||||||
|
gap: 0.75rem;
|
||||||
|
align-items: start;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-type-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 100px 3fr 70px 70px;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-group-entry .form-fields {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 120px 2fr 120px 150px 3fr;
|
||||||
|
gap: 0.75rem;
|
||||||
|
flex: 1;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .form-group {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.15rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .form-group label {
|
||||||
|
font-size: 0.75em;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config input[type="text"],
|
||||||
|
.weapon-types-config input[type="number"],
|
||||||
|
.weapon-types-config textarea {
|
||||||
|
background: rgba(0, 0, 0, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config input[readonly] {
|
||||||
|
background: rgba(0, 0, 0, 0.7);
|
||||||
|
color: #999;
|
||||||
|
cursor: not-allowed;
|
||||||
|
font-size: 0.8em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config textarea {
|
||||||
|
resize: vertical;
|
||||||
|
min-height: 40px;
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action] {
|
||||||
|
background: rgba(100, 100, 100, 0.5);
|
||||||
|
border: 1px solid #666;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.2rem 0.4rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.2s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action]:hover {
|
||||||
|
background: rgba(150, 150, 150, 0.5);
|
||||||
|
border-color: #888;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-type"],
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-group"] {
|
||||||
|
background: rgba(139, 0, 0, 0.5);
|
||||||
|
align-self: center;
|
||||||
|
padding: 0.25rem;
|
||||||
|
min-width: auto;
|
||||||
|
width: auto;
|
||||||
|
font-size: 0.9em;
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-type"]:hover,
|
||||||
|
.weapon-types-config button[data-action="delete-weapon-group"]:hover {
|
||||||
|
background: rgba(200, 0, 0, 0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 1rem;
|
||||||
|
border-top: 2px solid #444;
|
||||||
|
gap: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .sheet-footer button {
|
||||||
|
padding: 0.5rem 1rem;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .weapon-types-list,
|
||||||
|
.weapon-types-config .weapon-groups-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-types-config .flexrow {
|
||||||
|
display: flex;
|
||||||
|
gap: 1rem;
|
||||||
|
align-items: flex-start;
|
||||||
|
}
|
||||||
@@ -13,4 +13,118 @@
|
|||||||
label {
|
label {
|
||||||
flex: 10%;
|
flex: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.weapon-passives {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.passive-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.passive-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-passive"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-maneuvers {
|
||||||
|
legend {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.maneuver-item {
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 12px;
|
||||||
|
border: 1px solid var(--color-border-light-primary);
|
||||||
|
border-radius: 4px;
|
||||||
|
background: rgba(0, 0, 0, 0.05);
|
||||||
|
|
||||||
|
&:last-child {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.maneuver-header {
|
||||||
|
display: flex;
|
||||||
|
gap: 8px;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
padding: 4px 8px;
|
||||||
|
font-size: 12px;
|
||||||
|
|
||||||
|
&[data-action="delete-maneuver"] {
|
||||||
|
color: var(--color-text-danger, #c00);
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: var(--color-bg-danger, rgba(200, 0, 0, 0.1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hint {
|
||||||
|
font-style: italic;
|
||||||
|
color: var(--color-text-light-secondary);
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-1
@@ -40,7 +40,8 @@
|
|||||||
"spell": { "htmlFields": ["description"] },
|
"spell": { "htmlFields": ["description"] },
|
||||||
"equipment": { "htmlFields": ["description"] },
|
"equipment": { "htmlFields": ["description"] },
|
||||||
"race": { "htmlFields": ["description", "racialPassiveDescription", "subraceAbilityDescription", "notes"] },
|
"race": { "htmlFields": ["description", "racialPassiveDescription", "subraceAbilityDescription", "notes"] },
|
||||||
"class": { "htmlFields": ["description", "attributeBonuses", "notes", "features.level1", "features.level2", "features.level3", "features.level4", "features.level5", "features.level6", "features.level7", "features.level8", "features.level9", "features.level10"] }
|
"class": { "htmlFields": ["description", "attributeBonuses", "notes", "features.level1", "features.level2", "features.level3", "features.level4", "features.level5", "features.level6", "features.level7", "features.level8", "features.level9", "features.level10"] },
|
||||||
|
"character-path": { "htmlFields": ["description"] }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"grid": {
|
"grid": {
|
||||||
|
|||||||
+91
-91
@@ -10,105 +10,105 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Armor Type (Light/Medium/Heavy) }}
|
{{! Navigation des onglets }}
|
||||||
{{formField
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
systemFields.armorType
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
value=system.armorType
|
"PRISMRPG.Label.details"
|
||||||
localize=true
|
}}</a>
|
||||||
label="PRISMRPG.Label.armorType"
|
<a
|
||||||
}}
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{{! Maximum Reduction Rating (MRR) }}
|
{{! Onglet Details }}
|
||||||
{{formField
|
<div
|
||||||
systemFields.mrr
|
class="tab {{tabs.details.cssClass}}"
|
||||||
value=system.mrr
|
data-group="primary"
|
||||||
localize=true
|
data-tab="details"
|
||||||
label="PRISMRPG.Label.mrr"
|
>
|
||||||
}}
|
{{! Armor Type (Light/Medium/Heavy) }}
|
||||||
|
|
||||||
{{! Encumbrance Load }}
|
|
||||||
{{formField
|
|
||||||
systemFields.encLoad
|
|
||||||
value=system.encLoad
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.encumbranceLoad"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Equipment Status }}
|
|
||||||
{{formField
|
|
||||||
systemFields.isHelmet
|
|
||||||
value=system.isHelmet
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.isHelmet"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.equipped
|
|
||||||
value=system.equipped
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.equipped"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Prism RPG: Armor Passive }}
|
|
||||||
<fieldset class="armor-passive">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.armorPassive"}}</legend>
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.passive
|
systemFields.armorType
|
||||||
value=system.passive
|
value=system.armorType
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.passiveName"
|
label="PRISMRPG.Label.armorType"
|
||||||
}}
|
}}
|
||||||
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.passiveDescription
|
|
||||||
enriched=enrichedPassiveDescription
|
|
||||||
value=system.passiveDescription
|
|
||||||
name="system.passiveDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Prism RPG: Armor Augment }}
|
{{! Maximum Reduction Rating (MRR) }}
|
||||||
<fieldset class="armor-augment">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.armorAugment"}}</legend>
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.augment
|
systemFields.mrr
|
||||||
value=system.augment
|
value=system.mrr
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.augmentName"
|
label="PRISMRPG.Label.mrr"
|
||||||
}}
|
}}
|
||||||
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.augmentDescription
|
|
||||||
enriched=enrichedAugmentDescription
|
|
||||||
value=system.augmentDescription
|
|
||||||
name="system.augmentDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Cost }}
|
{{! Encumbrance Load }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.cost
|
systemFields.encLoad
|
||||||
value=system.cost
|
value=system.encLoad
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.cost"
|
label="PRISMRPG.Label.encumbranceLoad"
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.money
|
|
||||||
value=system.money
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.currency"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Description }}
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.description
|
|
||||||
enriched=enrichedDescription
|
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
|
||||||
toggled=true
|
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
|
||||||
|
{{! Equipment Status }}
|
||||||
|
{{formField
|
||||||
|
systemFields.isHelmet
|
||||||
|
value=system.isHelmet
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.isHelmet"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.equipped
|
||||||
|
value=system.equipped
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.equipped"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Cost }}
|
||||||
|
{{formField
|
||||||
|
systemFields.cost
|
||||||
|
value=system.cost
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.cost"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.money
|
||||||
|
value=system.money
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.currency"
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
|
{{! Description }}
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
<section>
|
||||||
|
<div class="header">
|
||||||
|
<img
|
||||||
|
class="item-img"
|
||||||
|
src="{{item.img}}"
|
||||||
|
data-edit="img"
|
||||||
|
data-action="editImage"
|
||||||
|
data-tooltip="{{item.name}}"
|
||||||
|
/>
|
||||||
|
{{formInput fields.name value=source.name}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</section>
|
||||||
+33
-22
@@ -4,6 +4,14 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -63,29 +71,32 @@
|
|||||||
}}
|
}}
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
{{! Notes }}
|
{{! Onglet Description }}
|
||||||
<fieldset>
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
<fieldset>
|
||||||
{{formInput
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
systemFields.notes
|
{{formInput
|
||||||
enriched=enrichedNotes
|
systemFields.description
|
||||||
value=system.notes
|
enriched=enrichedDescription
|
||||||
name="system.notes"
|
value=system.description
|
||||||
toggled=true
|
name="system.description"
|
||||||
}}
|
toggled=true
|
||||||
</fieldset>
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
{{! Description }}
|
{{! Notes }}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.description
|
systemFields.notes
|
||||||
enriched=enrichedDescription
|
enriched=enrichedNotes
|
||||||
value=system.description
|
value=system.notes
|
||||||
name="system.description"
|
name="system.notes"
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|||||||
@@ -9,10 +9,84 @@
|
|||||||
/>
|
/>
|
||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
{{formField systemFields.encLoad value=system.encLoad localize=true}}
|
{{formField systemFields.encLoad value=system.encLoad localize=true}}
|
||||||
{{formField systemFields.cost value=system.cost localize=true}}
|
{{formField systemFields.cost value=system.cost localize=true}}
|
||||||
{{formField systemFields.money value=system.money localize=true}}
|
{{formField systemFields.money value=system.money localize=true}}
|
||||||
|
|
||||||
|
{{formField systemFields.isKit value=system.isKit localize=true label="PRISMRPG.Label.isKit"}}
|
||||||
|
|
||||||
|
{{#if system.isKit}}
|
||||||
|
{{! Kit Passive }}
|
||||||
|
<fieldset class="kit-passive">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.kitPassive"}}</legend>
|
||||||
|
{{formField
|
||||||
|
systemFields.passive
|
||||||
|
value=system.passive
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.passiveName"
|
||||||
|
}}
|
||||||
|
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.passiveDescription
|
||||||
|
enriched=enrichedPassiveDescription
|
||||||
|
value=system.passiveDescription
|
||||||
|
name="system.passiveDescription"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
{{! Special Activations }}
|
||||||
|
<fieldset class="special-activations">
|
||||||
|
<legend>
|
||||||
|
{{localize "PRISMRPG.Label.specialActivations"}}
|
||||||
|
<button type="button" data-action="add-special-activation" data-tooltip="{{localize 'PRISMRPG.Label.addSpecialActivation'}}">
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</legend>
|
||||||
|
|
||||||
|
{{#each enrichedSpecialActivations}}
|
||||||
|
<div class="activation-item" data-activation-index="{{@index}}">
|
||||||
|
<div class="activation-header">
|
||||||
|
{{formInput
|
||||||
|
../systemFields.specialActivations.element.fields.name
|
||||||
|
value=this.name
|
||||||
|
name=(concat "system.specialActivations." @index ".name")
|
||||||
|
placeholder=(localize "PRISMRPG.Label.activationName")
|
||||||
|
}}
|
||||||
|
<button type="button" data-action="delete-special-activation" data-tooltip="{{localize 'PRISMRPG.Label.deleteSpecialActivation'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<label>{{localize "PRISMRPG.Label.activationDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
../systemFields.specialActivations.element.fields.description
|
||||||
|
enriched=this.enrichedDescription
|
||||||
|
value=this.description
|
||||||
|
name=(concat "system.specialActivations." @index ".description")
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedSpecialActivations.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noSpecialActivations"}}</p>
|
||||||
|
{{/unless}}
|
||||||
|
</fieldset>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="description">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
@@ -23,5 +97,11 @@
|
|||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
+181
-144
@@ -10,157 +10,194 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Prism RPG: Miracle Type }}
|
{{! Navigation des onglets }}
|
||||||
{{formField
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
systemFields.miracleType
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
value=system.miracleType
|
"PRISMRPG.Label.details"
|
||||||
localize=true
|
}}</a>
|
||||||
label="PRISMRPG.Label.miracleType"
|
<a
|
||||||
}}
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{{! Prism RPG: APC (Action Point Cost) }}
|
{{! Onglet Details }}
|
||||||
{{formField
|
<div
|
||||||
systemFields.apc
|
class="tab {{tabs.details.cssClass}}"
|
||||||
value=system.apc
|
data-group="primary"
|
||||||
localize=true
|
data-tab="details"
|
||||||
label="PRISMRPG.Label.apc"
|
>
|
||||||
}}
|
{{! Prism RPG: Miracle Type }}
|
||||||
|
|
||||||
{{! Prism RPG: Faith Cost }}
|
|
||||||
{{formField
|
|
||||||
systemFields.faithCost
|
|
||||||
value=system.faithCost
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.faithCost"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Prism RPG: Divine Favor }}
|
|
||||||
{{formField
|
|
||||||
systemFields.divineFavor
|
|
||||||
value=system.divineFavor
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.divineFavor"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Prism RPG: Miracle Augment }}
|
|
||||||
<fieldset class="miracle-augment">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.miracleAugment"}}</legend>
|
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.augment
|
systemFields.miracleType
|
||||||
value=system.augment
|
value=system.miracleType
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.augmentName"
|
label="PRISMRPG.Label.miracleType"
|
||||||
}}
|
}}
|
||||||
<div class="form-group">
|
|
||||||
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
{{! Prism RPG: APC (Action Point Cost) }}
|
||||||
|
{{formField
|
||||||
|
systemFields.apc
|
||||||
|
value=system.apc
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.apc"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Faith Cost }}
|
||||||
|
{{formField
|
||||||
|
systemFields.faithCost
|
||||||
|
value=system.faithCost
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.faithCost"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Divine Favor }}
|
||||||
|
{{formField
|
||||||
|
systemFields.divineFavor
|
||||||
|
value=system.divineFavor
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.divineFavor"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Miracle Components (includes Religious) }}
|
||||||
|
<fieldset class="miracle-components">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.components"}}</legend>
|
||||||
|
<div class="shift-right">
|
||||||
|
{{formField
|
||||||
|
systemFields.components.fields.verbal
|
||||||
|
value=system.components.verbal
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.verbal"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.components.fields.somatic
|
||||||
|
value=system.components.somatic
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.somatic"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.components.fields.material
|
||||||
|
value=system.components.material
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.material"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.components.fields.catalyst
|
||||||
|
value=system.components.catalyst
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.catalyst"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.components.fields.religious
|
||||||
|
value=system.components.religious
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.religious"
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
{{formField
|
||||||
|
systemFields.materialComponent
|
||||||
|
value=system.materialComponent
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.materialComponent"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.catalyst
|
||||||
|
value=system.catalyst
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.catalystDetails"
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
{{! Miracle Properties }}
|
||||||
|
{{formField
|
||||||
|
systemFields.prayerTime
|
||||||
|
value=system.prayerTime
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.prayerTime"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.miracleRange
|
||||||
|
value=system.miracleRange
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.range"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.areaAffected
|
||||||
|
value=system.areaAffected
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.areaAffected"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.duration
|
||||||
|
value=system.duration
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.duration"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.savingThrow
|
||||||
|
value=system.savingThrow
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.savingThrow"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Legacy Level field }}
|
||||||
|
{{formField
|
||||||
|
systemFields.level
|
||||||
|
value=system.level
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.level"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Miracle Augment }}
|
||||||
|
<fieldset class="miracle-augment">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.miracleAugment"}}</legend>
|
||||||
|
{{formField
|
||||||
|
systemFields.augment
|
||||||
|
value=system.augment
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.augmentName"
|
||||||
|
}}
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Label.augmentDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
systemFields.augmentDescription
|
||||||
|
enriched=enrichedAugmentDescription
|
||||||
|
value=system.augmentDescription
|
||||||
|
name="system.augmentDescription"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.description.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="description"
|
||||||
|
>
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.augmentDescription
|
systemFields.description
|
||||||
enriched=enrichedAugmentDescription
|
enriched=enrichedDescription
|
||||||
value=system.augmentDescription
|
value=system.description
|
||||||
name="system.augmentDescription"
|
name="system.description"
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</div>
|
</fieldset>
|
||||||
</fieldset>
|
</div>
|
||||||
|
|
||||||
{{! Miracle Components (includes Religious) }}
|
{{! Onglet Effects }}
|
||||||
<fieldset class="miracle-components">
|
<div
|
||||||
<legend>{{localize "PRISMRPG.Label.components"}}</legend>
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
<div class="shift-right">
|
data-group="primary"
|
||||||
{{formField
|
data-tab="effects"
|
||||||
systemFields.components.fields.verbal
|
>
|
||||||
value=system.components.verbal
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
localize=true
|
</div>
|
||||||
label="PRISMRPG.Label.verbal"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.components.fields.somatic
|
|
||||||
value=system.components.somatic
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.somatic"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.components.fields.material
|
|
||||||
value=system.components.material
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.material"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.components.fields.catalyst
|
|
||||||
value=system.components.catalyst
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.catalyst"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.components.fields.religious
|
|
||||||
value=system.components.religious
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.religious"
|
|
||||||
}}
|
|
||||||
</div>
|
|
||||||
{{formField
|
|
||||||
systemFields.materialComponent
|
|
||||||
value=system.materialComponent
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.materialComponent"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.catalyst
|
|
||||||
value=system.catalyst
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.catalystDetails"
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Miracle Properties }}
|
|
||||||
{{formField
|
|
||||||
systemFields.prayerTime
|
|
||||||
value=system.prayerTime
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.prayerTime"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.miracleRange
|
|
||||||
value=system.miracleRange
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.range"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.areaAffected
|
|
||||||
value=system.areaAffected
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.areaAffected"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.duration
|
|
||||||
value=system.duration
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.duration"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.savingThrow
|
|
||||||
value=system.savingThrow
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.savingThrow"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Legacy Level field }}
|
|
||||||
{{formField
|
|
||||||
systemFields.level
|
|
||||||
value=system.level
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.level"
|
|
||||||
}}
|
|
||||||
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.description
|
|
||||||
enriched=enrichedDescription
|
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
{{! Template pour l'onglet Effects des items - organisé par catégories }}
|
||||||
|
<div class="effects-container">
|
||||||
|
|
||||||
|
{{#each effectCategories as |section sid|}}
|
||||||
|
<div class="effect-category">
|
||||||
|
<ul class="stat-list alternate-list">
|
||||||
|
<li class="item flexrow list-item items-title-bg">
|
||||||
|
<span class="item-name-label-header-long">
|
||||||
|
<h3><label class="items-title-text">{{localize
|
||||||
|
section.label
|
||||||
|
}}</label></h3>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-short">
|
||||||
|
<label class="short-label">{{localize
|
||||||
|
"PRISMRPG.Label.source"
|
||||||
|
}}</label>
|
||||||
|
</span>
|
||||||
|
<span class="item-field-label-medium">
|
||||||
|
<label class="short-label">{{localize
|
||||||
|
"PRISMRPG.Label.duration"
|
||||||
|
}}</label>
|
||||||
|
</span>
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls item-controls-fixed">
|
||||||
|
<a
|
||||||
|
class="effect-control"
|
||||||
|
data-action="create-effect"
|
||||||
|
data-effect-type="{{section.type}}"
|
||||||
|
title="{{localize 'DOCUMENT.Create' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
{{localize "DOCUMENT.New" type="Effect"}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
{{#each section.effects as |effect|}}
|
||||||
|
<li
|
||||||
|
class="item flexrow list-item list-item-shadow"
|
||||||
|
data-item-id="{{effect._id}}"
|
||||||
|
data-effect-id="{{effect._id}}"
|
||||||
|
data-parent-id="{{effect.parent.id}}"
|
||||||
|
>
|
||||||
|
<a
|
||||||
|
class="item-edit item-name-img"
|
||||||
|
data-action="effect-edit"
|
||||||
|
title="Edit Effect"
|
||||||
|
>
|
||||||
|
<img class="sheet-competence-img" src="{{effect.img}}" />
|
||||||
|
</a>
|
||||||
|
<span class="item-name-label-long">{{effect.name}}</span>
|
||||||
|
<span class="item-field-label-short">{{effect.sourceName}}</span>
|
||||||
|
<span
|
||||||
|
class="item-field-label-short"
|
||||||
|
>{{effect.duration.label}}</span>
|
||||||
|
|
||||||
|
<div class="item-filler"> </div>
|
||||||
|
<div class="item-controls effect-controls flexrow">
|
||||||
|
<a
|
||||||
|
class="effect-control item-edit"
|
||||||
|
data-action="effect-edit"
|
||||||
|
title="{{localize 'DOCUMENT.Update' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
class="effect-control"
|
||||||
|
data-action="effect-delete"
|
||||||
|
title="{{localize 'DOCUMENT.Delete' type="Effect"}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
{{/each}}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
</div>
|
||||||
+93
-69
@@ -10,82 +10,106 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flexrow">
|
{{! Navigation des onglets }}
|
||||||
<div class="align-top">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{{! Basic Information }}
|
{{! Onglet Details }}
|
||||||
{{formField systemFields.senses value=system.senses}}
|
<div
|
||||||
|
class="tab {{tabs.details.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="details"
|
||||||
|
>
|
||||||
|
<div class="flexrow">
|
||||||
|
<div class="align-top">
|
||||||
|
|
||||||
{{formField systemFields.size value=system.size localize=true}}
|
{{! Basic Information }}
|
||||||
|
{{formField systemFields.senses value=system.senses}}
|
||||||
|
|
||||||
{{formField
|
{{formField systemFields.size value=system.size localize=true}}
|
||||||
systemFields.ageCategory
|
|
||||||
value=system.ageCategory
|
{{formField
|
||||||
localize=true
|
systemFields.ageCategory
|
||||||
|
value=system.ageCategory
|
||||||
|
localize=true
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{formField systemFields.language value=system.language}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="align-top">
|
||||||
|
|
||||||
|
{{! Racial Passive }}
|
||||||
|
{{formField systemFields.racialPassive value=system.racialPassive}}
|
||||||
|
|
||||||
|
{{! Sub-race }}
|
||||||
|
{{formField systemFields.subrace value=system.subrace}}
|
||||||
|
|
||||||
|
{{formField systemFields.subraceAbility value=system.subraceAbility}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Racial Passive Description }}
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.racialPassive"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.racialPassiveDescription
|
||||||
|
enriched=enrichedRacialPassiveDescription
|
||||||
|
value=system.racialPassiveDescription
|
||||||
|
name="system.racialPassiveDescription"
|
||||||
|
toggled=true
|
||||||
}}
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
{{formField systemFields.language value=system.language}}
|
{{! Sub-race Ability Description }}
|
||||||
|
<fieldset>
|
||||||
</div>
|
<legend>{{localize "PRISMRPG.Label.subraceAbility"}}</legend>
|
||||||
<div class="align-top">
|
{{formInput
|
||||||
|
systemFields.subraceAbilityDescription
|
||||||
{{! Racial Passive }}
|
enriched=enrichedSubraceAbilityDescription
|
||||||
{{formField systemFields.racialPassive value=system.racialPassive}}
|
value=system.subraceAbilityDescription
|
||||||
|
name="system.subraceAbilityDescription"
|
||||||
{{! Sub-race }}
|
toggled=true
|
||||||
{{formField systemFields.subrace value=system.subrace}}
|
}}
|
||||||
|
</fieldset>
|
||||||
{{formField systemFields.subraceAbility value=system.subraceAbility}}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Racial Passive Description }}
|
{{! Onglet Description }}
|
||||||
<fieldset>
|
<div
|
||||||
<legend>{{localize "PRISMRPG.Label.racialPassive"}}</legend>
|
class="tab {{tabs.description.cssClass}}"
|
||||||
{{formInput
|
data-group="primary"
|
||||||
systemFields.racialPassiveDescription
|
data-tab="description"
|
||||||
enriched=enrichedRacialPassiveDescription
|
>
|
||||||
value=system.racialPassiveDescription
|
<fieldset>
|
||||||
name="system.racialPassiveDescription"
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
toggled=true
|
{{formInput
|
||||||
}}
|
systemFields.description
|
||||||
</fieldset>
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
{{! Sub-race Ability Description }}
|
{{! Notes }}
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{{localize "PRISMRPG.Label.subraceAbility"}}</legend>
|
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.subraceAbilityDescription
|
systemFields.notes
|
||||||
enriched=enrichedSubraceAbilityDescription
|
enriched=enrichedNotes
|
||||||
value=system.subraceAbilityDescription
|
value=system.notes
|
||||||
name="system.subraceAbilityDescription"
|
name="system.notes"
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
{{! Notes }}
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.notes"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.notes
|
|
||||||
enriched=enrichedNotes
|
|
||||||
value=system.notes
|
|
||||||
name="system.notes"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Description }}
|
|
||||||
<fieldset>
|
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.description
|
|
||||||
enriched=enrichedDescription
|
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -10,15 +10,29 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<fieldset>
|
{{! Navigation des onglets }}
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
{{formInput
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
systemFields.description
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
enriched=enrichedDescription
|
</nav>
|
||||||
value=system.description
|
|
||||||
name="system.description"
|
{{! Onglet Description }}
|
||||||
toggled=true
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
}}
|
<fieldset>
|
||||||
</fieldset>
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
+113
-76
@@ -10,95 +10,132 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flexrow">
|
{{! Navigation des onglets }}
|
||||||
<div class="align-top">
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
|
"PRISMRPG.Label.details"
|
||||||
|
}}</a>
|
||||||
|
<a
|
||||||
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{{! Prism RPG: Shield Type (Buckler/Light/Heavy/Tower) }}
|
{{! Onglet Details }}
|
||||||
{{formField
|
<div
|
||||||
systemFields.shieldType
|
class="tab {{tabs.details.cssClass}}"
|
||||||
value=system.shieldType
|
data-group="primary"
|
||||||
localize=true
|
data-tab="details"
|
||||||
label="PRISMRPG.Label.shieldType"
|
>
|
||||||
}}
|
<div class="flexrow">
|
||||||
|
<div class="align-top">
|
||||||
|
|
||||||
{{! Prism RPG: Block APC (Action Point Cost) }}
|
{{! Prism RPG: Shield Type (Buckler/Light/Heavy/Tower) }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.apc
|
systemFields.shieldType
|
||||||
value=system.apc
|
value=system.shieldType
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.blockAPC"
|
label="PRISMRPG.Label.shieldType"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{! Prism RPG: Shield Rating (SR) }}
|
{{! Prism RPG: Block APC (Action Point Cost) }}
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.sr
|
systemFields.apc
|
||||||
value=system.sr
|
value=system.apc
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.shieldRating"
|
label="PRISMRPG.Label.blockAPC"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
{{formField
|
{{! Prism RPG: Shield Rating (SR) }}
|
||||||
systemFields.equipped
|
{{formField
|
||||||
value=system.equipped
|
systemFields.sr
|
||||||
localize=true
|
value=system.sr
|
||||||
label="PRISMRPG.Label.equipped"
|
localize=true
|
||||||
}}
|
label="PRISMRPG.Label.shieldRating"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{formField
|
||||||
|
systemFields.equipped
|
||||||
|
value=system.equipped
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.equipped"
|
||||||
|
}}
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="align-top">
|
||||||
|
|
||||||
|
{{formField
|
||||||
|
systemFields.encLoad
|
||||||
|
value=system.encLoad
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.encumbranceLoad"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{formField
|
||||||
|
systemFields.cost
|
||||||
|
value=system.cost
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.cost"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.money
|
||||||
|
value=system.money
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.currency"
|
||||||
|
}}
|
||||||
|
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="align-top">
|
{{! Prism RPG: Block Augment }}
|
||||||
|
<fieldset class="shield-block-augment">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.blockAugment"}}</legend>
|
||||||
{{formField
|
{{formField
|
||||||
systemFields.encLoad
|
systemFields.blockAugment
|
||||||
value=system.encLoad
|
value=system.blockAugment
|
||||||
localize=true
|
localize=true
|
||||||
label="PRISMRPG.Label.encumbranceLoad"
|
label="PRISMRPG.Label.blockAugmentName"
|
||||||
}}
|
}}
|
||||||
|
<label>{{localize "PRISMRPG.Label.blockAugmentDescription"}}</label>
|
||||||
{{formField
|
{{formInput
|
||||||
systemFields.cost
|
systemFields.blockAugmentDescription
|
||||||
value=system.cost
|
enriched=enrichedBlockAugmentDescription
|
||||||
localize=true
|
value=system.blockAugmentDescription
|
||||||
label="PRISMRPG.Label.cost"
|
name="system.blockAugmentDescription"
|
||||||
|
toggled=true
|
||||||
}}
|
}}
|
||||||
{{formField
|
</fieldset>
|
||||||
systemFields.money
|
|
||||||
value=system.money
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.currency"
|
|
||||||
}}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Prism RPG: Block Augment }}
|
{{! Onglet Description }}
|
||||||
<fieldset class="shield-block-augment">
|
<div
|
||||||
<legend>{{localize "PRISMRPG.Label.blockAugment"}}</legend>
|
class="tab {{tabs.description.cssClass}}"
|
||||||
{{formField
|
data-group="primary"
|
||||||
systemFields.blockAugment
|
data-tab="description"
|
||||||
value=system.blockAugment
|
>
|
||||||
localize=true
|
<fieldset>
|
||||||
label="PRISMRPG.Label.blockAugmentName"
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
}}
|
{{formInput
|
||||||
<label>{{localize "PRISMRPG.Label.blockAugmentDescription"}}</label>
|
systemFields.description
|
||||||
{{formInput
|
enriched=enrichedDescription
|
||||||
systemFields.blockAugmentDescription
|
value=system.description
|
||||||
enriched=enrichedBlockAugmentDescription
|
name="system.description"
|
||||||
value=system.blockAugmentDescription
|
toggled=true
|
||||||
name="system.blockAugmentDescription"
|
}}
|
||||||
toggled=true
|
</fieldset>
|
||||||
}}
|
</div>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
{{! Onglet Effects }}
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<div
|
||||||
{{formInput
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
systemFields.description
|
data-group="primary"
|
||||||
enriched=enrichedDescription
|
data-tab="effects"
|
||||||
value=system.description
|
>
|
||||||
name="system.description"
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
toggled=true
|
</div>
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
+5
-7
@@ -17,13 +17,11 @@
|
|||||||
<label>{{localize "PRISMRPG.Label.attributeBonusChoice"}}</label>
|
<label>{{localize "PRISMRPG.Label.attributeBonusChoice"}}</label>
|
||||||
<select name="system.attributeBonus">
|
<select name="system.attributeBonus">
|
||||||
<option value="">{{localize "PRISMRPG.Label.selectAttribute"}}</option>
|
<option value="">{{localize "PRISMRPG.Label.selectAttribute"}}</option>
|
||||||
{{#with (lookup config.CORE_SKILLS system.coreSkill)}}
|
{{#each config.CHARACTERISTICS}}
|
||||||
{{#each attributeChoices}}
|
<option value="{{@key}}" {{#if (eq ../system.attributeBonus @key)}}selected{{/if}}>
|
||||||
<option value="{{this}}" {{#if (eq ../../system.attributeBonus this)}}selected{{/if}}>
|
{{localize this.label}}
|
||||||
{{localize (concat "PRISMRPG.Label." this)}}
|
</option>
|
||||||
</option>
|
{{/each}}
|
||||||
{{/each}}
|
|
||||||
{{/with}}
|
|
||||||
</select>
|
</select>
|
||||||
<p class="hint">{{localize "PRISMRPG.Hint.attributeBonus"}}</p>
|
<p class="hint">{{localize "PRISMRPG.Hint.attributeBonus"}}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+169
-132
@@ -10,145 +10,182 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Prism RPG: Mana Cost }}
|
{{! Navigation des onglets }}
|
||||||
{{formField
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
systemFields.manaCost
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize
|
||||||
value=system.manaCost
|
"PRISMRPG.Label.details"
|
||||||
localize=true
|
}}</a>
|
||||||
label="PRISMRPG.Label.manaCost"
|
<a
|
||||||
}}
|
class="item {{tabs.description.cssClass}}"
|
||||||
|
data-tab="description"
|
||||||
|
>{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize
|
||||||
|
"PRISMRPG.Label.effects"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
{{! Prism RPG: Mana Upkeep }}
|
{{! Onglet Details }}
|
||||||
{{formField
|
<div
|
||||||
systemFields.manaUpkeep
|
class="tab {{tabs.details.cssClass}}"
|
||||||
value=system.manaUpkeep
|
data-group="primary"
|
||||||
localize=true
|
data-tab="details"
|
||||||
label="PRISMRPG.Label.manaUpkeep"
|
>
|
||||||
}}
|
{{! Prism RPG: Mana Cost }}
|
||||||
|
{{formField
|
||||||
{{! Prism RPG: APC (Action Point Cost) }}
|
systemFields.manaCost
|
||||||
{{formField
|
value=system.manaCost
|
||||||
systemFields.apc
|
localize=true
|
||||||
value=system.apc
|
label="PRISMRPG.Label.manaCost"
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.apc"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Prism RPG: Prism Color }}
|
|
||||||
{{formField
|
|
||||||
systemFields.color
|
|
||||||
value=system.color
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.prismColor"
|
|
||||||
}}
|
|
||||||
|
|
||||||
{{! Prism RPG: Color Effect }}
|
|
||||||
<fieldset class="spell-color-effect">
|
|
||||||
<legend>{{localize "PRISMRPG.Label.colorEffect"}}</legend>
|
|
||||||
{{formInput
|
|
||||||
systemFields.colorEffect
|
|
||||||
enriched=enrichedColorEffect
|
|
||||||
value=system.colorEffect
|
|
||||||
name="system.colorEffect"
|
|
||||||
toggled=true
|
|
||||||
}}
|
}}
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Prism RPG: Spell Ascension }}
|
{{! Prism RPG: Mana Upkeep }}
|
||||||
<fieldset class="spell-ascension">
|
{{formField
|
||||||
<legend>{{localize "PRISMRPG.Label.spellAscension"}}</legend>
|
systemFields.manaUpkeep
|
||||||
<div class="form-group">
|
value=system.manaUpkeep
|
||||||
<label>{{localize "PRISMRPG.Label.canAscend"}}</label>
|
localize=true
|
||||||
<input
|
label="PRISMRPG.Label.manaUpkeep"
|
||||||
type="checkbox"
|
}}
|
||||||
name="system.canAscend"
|
|
||||||
{{checked system.canAscend}}
|
{{! Prism RPG: APC (Action Point Cost) }}
|
||||||
/>
|
{{formField
|
||||||
<p class="hint">{{localize "PRISMRPG.Hint.spellAscension"}}</p>
|
systemFields.apc
|
||||||
</div>
|
value=system.apc
|
||||||
{{#if system.canAscend}}
|
localize=true
|
||||||
<label>{{localize "PRISMRPG.Label.ascensionEffect"}}</label>
|
label="PRISMRPG.Label.apc"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Prism Color }}
|
||||||
|
{{formField
|
||||||
|
systemFields.color
|
||||||
|
value=system.color
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.prismColor"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Spell Properties }}
|
||||||
|
{{formField
|
||||||
|
systemFields.memorized
|
||||||
|
value=system.memorized
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.memorized"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.level
|
||||||
|
value=system.level
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.level"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.targets
|
||||||
|
value=system.targets
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.targets"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.resolve
|
||||||
|
value=system.resolve
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.resolve"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.castingTime
|
||||||
|
value=system.castingTime
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.castingTime"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.spellRange
|
||||||
|
value=system.spellRange
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.range"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.areaAffected
|
||||||
|
value=system.areaAffected
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.areaAffected"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.duration
|
||||||
|
value=system.duration
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.duration"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.savingThrow
|
||||||
|
value=system.savingThrow
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.savingThrow"
|
||||||
|
}}
|
||||||
|
{{formField
|
||||||
|
systemFields.keywords
|
||||||
|
value=system.keywords
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.keywords"
|
||||||
|
}}
|
||||||
|
|
||||||
|
{{! Prism RPG: Color Effect }}
|
||||||
|
<fieldset class="spell-color-effect">
|
||||||
|
<legend>{{localize "PRISMRPG.Label.colorEffect"}}</legend>
|
||||||
{{formInput
|
{{formInput
|
||||||
systemFields.ascensionEffect
|
systemFields.colorEffect
|
||||||
enriched=enrichedAscensionEffect
|
enriched=enrichedColorEffect
|
||||||
value=system.ascensionEffect
|
value=system.colorEffect
|
||||||
name="system.ascensionEffect"
|
name="system.colorEffect"
|
||||||
toggled=true
|
toggled=true
|
||||||
}}
|
}}
|
||||||
{{/if}}
|
</fieldset>
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
{{! Spell Properties }}
|
{{! Prism RPG: Spell Ascension }}
|
||||||
{{formField
|
<fieldset class="spell-ascension">
|
||||||
systemFields.memorized
|
<legend>{{localize "PRISMRPG.Label.spellAscension"}}</legend>
|
||||||
value=system.memorized
|
<div class="form-group">
|
||||||
localize=true
|
<label>{{localize "PRISMRPG.Label.canAscend"}}</label>
|
||||||
label="PRISMRPG.Label.memorized"
|
<input
|
||||||
}}
|
type="checkbox"
|
||||||
{{formField
|
name="system.canAscend"
|
||||||
systemFields.level
|
{{checked system.canAscend}}
|
||||||
value=system.level
|
/>
|
||||||
localize=true
|
<p class="hint">{{localize "PRISMRPG.Hint.spellAscension"}}</p>
|
||||||
label="PRISMRPG.Label.level"
|
</div>
|
||||||
}}
|
{{#if system.canAscend}}
|
||||||
{{formField
|
<label>{{localize "PRISMRPG.Label.ascensionEffect"}}</label>
|
||||||
systemFields.targets
|
{{formInput
|
||||||
value=system.targets
|
systemFields.ascensionEffect
|
||||||
localize=true
|
enriched=enrichedAscensionEffect
|
||||||
label="PRISMRPG.Label.targets"
|
value=system.ascensionEffect
|
||||||
}}
|
name="system.ascensionEffect"
|
||||||
{{formField
|
toggled=true
|
||||||
systemFields.resolve
|
}}
|
||||||
value=system.resolve
|
{{/if}}
|
||||||
localize=true
|
</fieldset>
|
||||||
label="PRISMRPG.Label.resolve"
|
</div>
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.castingTime
|
|
||||||
value=system.castingTime
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.castingTime"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.spellRange
|
|
||||||
value=system.spellRange
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.range"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.areaAffected
|
|
||||||
value=system.areaAffected
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.areaAffected"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.duration
|
|
||||||
value=system.duration
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.duration"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.savingThrow
|
|
||||||
value=system.savingThrow
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.savingThrow"
|
|
||||||
}}
|
|
||||||
{{formField
|
|
||||||
systemFields.keywords
|
|
||||||
value=system.keywords
|
|
||||||
localize=true
|
|
||||||
label="PRISMRPG.Label.keywords"
|
|
||||||
}}
|
|
||||||
|
|
||||||
<fieldset>
|
{{! Onglet Description }}
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<div
|
||||||
{{formInput
|
class="tab {{tabs.description.cssClass}}"
|
||||||
systemFields.description
|
data-group="primary"
|
||||||
enriched=enrichedDescription
|
data-tab="description"
|
||||||
value=system.description
|
>
|
||||||
name="system.description"
|
<fieldset>
|
||||||
toggled=true
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
}}
|
{{formInput
|
||||||
</fieldset>
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div
|
||||||
|
class="tab {{tabs.effects.cssClass}}"
|
||||||
|
data-group="primary"
|
||||||
|
data-tab="effects"
|
||||||
|
>
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
@@ -0,0 +1,186 @@
|
|||||||
|
<form class="weapon-types-config">
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item" data-tab="types">{{localize
|
||||||
|
"PRISMRPG.Settings.tabs.weaponTypes"
|
||||||
|
}}</a>
|
||||||
|
<a class="item" data-tab="groups">{{localize
|
||||||
|
"PRISMRPG.Settings.tabs.weaponGroups"
|
||||||
|
}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
<div class="content">
|
||||||
|
{{! Weapon Types Tab }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="types">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="section-header">
|
||||||
|
{{localize "PRISMRPG.Settings.weaponTypes.header"}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="add-weapon-type"
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Settings.addWeaponType'}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="weapon-types-list">
|
||||||
|
{{#each weaponTypes}}
|
||||||
|
<div class="weapon-type-entry" data-id="{{this.id}}">
|
||||||
|
<div class="form-fields">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponType.id"}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponTypes.{{this.id}}.id"
|
||||||
|
value="{{this.id}}"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponType.label"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponTypes.{{this.id}}.label"
|
||||||
|
value="{{this.label}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponType.apc"}}</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="weaponTypes.{{this.id}}.apc"
|
||||||
|
value="{{this.apc}}"
|
||||||
|
min="0"
|
||||||
|
max="10"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponType.hands"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
name="weaponTypes.{{this.id}}.hands"
|
||||||
|
value="{{this.hands}}"
|
||||||
|
min="0"
|
||||||
|
max="2"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{#if this.isCustom}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="delete-weapon-type"
|
||||||
|
data-id="{{this.id}}"
|
||||||
|
data-tooltip="{{localize
|
||||||
|
'PRISMRPG.Settings.deleteWeaponType'
|
||||||
|
}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Weapon Groups Tab }}
|
||||||
|
<div class="tab" data-group="primary" data-tab="groups">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="section-header">
|
||||||
|
{{localize "PRISMRPG.Settings.weaponGroups.header"}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="add-weapon-group"
|
||||||
|
data-tooltip="{{localize 'PRISMRPG.Settings.addWeaponGroup'}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-plus"></i>
|
||||||
|
</button>
|
||||||
|
</label>
|
||||||
|
|
||||||
|
<div class="weapon-groups-list">
|
||||||
|
{{#each weaponGroups}}
|
||||||
|
<div class="weapon-group-entry" data-id="{{this.id}}">
|
||||||
|
<div class="form-fields">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize "PRISMRPG.Settings.weaponGroup.id"}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.id"
|
||||||
|
value="{{this.id}}"
|
||||||
|
readonly
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.label"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.label"
|
||||||
|
value="{{this.label}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passive"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.passive"
|
||||||
|
value="{{this.passive}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passiveLabel"
|
||||||
|
}}</label>
|
||||||
|
<input
|
||||||
|
type="text"
|
||||||
|
name="weaponGroups.{{this.id}}.passiveLabel"
|
||||||
|
value="{{this.passiveLabel}}"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>{{localize
|
||||||
|
"PRISMRPG.Settings.weaponGroup.passiveDescription"
|
||||||
|
}}</label>
|
||||||
|
<textarea
|
||||||
|
name="weaponGroups.{{this.id}}.passiveDescription"
|
||||||
|
rows="2"
|
||||||
|
>{{this.passiveDescription}}</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{#if this.isCustom}}
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
data-action="delete-weapon-group"
|
||||||
|
data-id="{{this.id}}"
|
||||||
|
data-tooltip="{{localize
|
||||||
|
'PRISMRPG.Settings.deleteWeaponGroup'
|
||||||
|
}}"
|
||||||
|
>
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
{{/if}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<footer class="sheet-footer flexrow">
|
||||||
|
<button type="button" data-action="reset-defaults">
|
||||||
|
<i class="fas fa-undo"></i>
|
||||||
|
{{localize "PRISMRPG.Settings.resetDefaults"}}
|
||||||
|
</button>
|
||||||
|
<button type="submit">
|
||||||
|
<i class="fas fa-save"></i>
|
||||||
|
{{localize "PRISMRPG.Settings.save"}}
|
||||||
|
</button>
|
||||||
|
</footer>
|
||||||
|
</form>
|
||||||
+108
-44
@@ -10,6 +10,15 @@
|
|||||||
{{formInput fields.name value=source.name}}
|
{{formInput fields.name value=source.name}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{! Navigation des onglets }}
|
||||||
|
<nav class="sheet-tabs tabs" data-group="primary">
|
||||||
|
<a class="item {{tabs.details.cssClass}}" data-tab="details">{{localize "PRISMRPG.Label.details"}}</a>
|
||||||
|
<a class="item {{tabs.description.cssClass}}" data-tab="description">{{localize "PRISMRPG.Label.description"}}</a>
|
||||||
|
<a class="item {{tabs.effects.cssClass}}" data-tab="effects">{{localize "PRISMRPG.Label.effects"}}</a>
|
||||||
|
</nav>
|
||||||
|
|
||||||
|
{{! Onglet Details }}
|
||||||
|
<div class="tab {{tabs.details.cssClass}}" data-group="primary" data-tab="details">
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -52,6 +61,13 @@
|
|||||||
label="PRISMRPG.Label.equipped"
|
label="PRISMRPG.Label.equipped"
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
{{formField
|
||||||
|
systemFields.isImplement
|
||||||
|
value=system.isImplement
|
||||||
|
localize=true
|
||||||
|
label="PRISMRPG.Label.isImplement"
|
||||||
|
}}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="align-top">
|
<div class="align-top">
|
||||||
|
|
||||||
@@ -94,52 +110,100 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{! Prism RPG: Weapon Passive }}
|
{{! Prism RPG: Weapon Passives }}
|
||||||
<fieldset class="weapon-passive">
|
<fieldset class="weapon-passives">
|
||||||
<legend>{{localize "PRISMRPG.Label.weaponPassive"}}</legend>
|
<legend>
|
||||||
{{formField
|
{{localize "PRISMRPG.Label.weaponPassives"}}
|
||||||
systemFields.passive
|
<button type="button" data-action="add-passive" data-tooltip="{{localize 'PRISMRPG.Label.addPassive'}}">
|
||||||
value=system.passive
|
<i class="fas fa-plus"></i>
|
||||||
localize=true
|
</button>
|
||||||
label="PRISMRPG.Label.passiveName"
|
</legend>
|
||||||
}}
|
|
||||||
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
{{#each enrichedPassives}}
|
||||||
{{formInput
|
<div class="passive-item" data-passive-index="{{@index}}">
|
||||||
systemFields.passiveDescription
|
<div class="passive-header">
|
||||||
enriched=enrichedPassiveDescription
|
{{formInput
|
||||||
value=system.passiveDescription
|
../systemFields.passives.element.fields.name
|
||||||
name="system.passiveDescription"
|
value=this.name
|
||||||
toggled=true
|
name=(concat "system.passives." @index ".name")
|
||||||
}}
|
placeholder=(localize "PRISMRPG.Label.passiveName")
|
||||||
|
}}
|
||||||
|
<button type="button" data-action="delete-passive" data-tooltip="{{localize 'PRISMRPG.Label.deletePassive'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<label>{{localize "PRISMRPG.Label.passiveDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
../systemFields.passives.element.fields.description
|
||||||
|
enriched=this.enrichedDescription
|
||||||
|
value=this.description
|
||||||
|
name=(concat "system.passives." @index ".description")
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedPassives.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noPassives"}}</p>
|
||||||
|
{{/unless}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
{{! Prism RPG: Weapon Maneuver }}
|
{{! Prism RPG: Weapon Maneuvers }}
|
||||||
<fieldset class="weapon-maneuver">
|
<fieldset class="weapon-maneuvers">
|
||||||
<legend>{{localize "PRISMRPG.Label.weaponManeuver"}}</legend>
|
<legend>
|
||||||
{{formField
|
{{localize "PRISMRPG.Label.weaponManeuvers"}}
|
||||||
systemFields.maneuver
|
<button type="button" data-action="add-maneuver" data-tooltip="{{localize 'PRISMRPG.Label.addManeuver'}}">
|
||||||
value=system.maneuver
|
<i class="fas fa-plus"></i>
|
||||||
localize=true
|
</button>
|
||||||
label="PRISMRPG.Label.maneuverName"
|
</legend>
|
||||||
}}
|
|
||||||
<label>{{localize "PRISMRPG.Label.maneuverDescription"}}</label>
|
|
||||||
{{formInput
|
|
||||||
systemFields.maneuverDescription
|
|
||||||
enriched=enrichedManeuverDescription
|
|
||||||
value=system.maneuverDescription
|
|
||||||
name="system.maneuverDescription"
|
|
||||||
toggled=true
|
|
||||||
}}
|
|
||||||
</fieldset>
|
|
||||||
|
|
||||||
<fieldset>
|
{{#each enrichedManeuvers}}
|
||||||
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
<div class="maneuver-item" data-maneuver-index="{{@index}}">
|
||||||
{{formInput
|
<div class="maneuver-header">
|
||||||
systemFields.description
|
{{formInput
|
||||||
enriched=enrichedDescription
|
../systemFields.maneuvers.element.fields.name
|
||||||
value=system.description
|
value=this.name
|
||||||
name="system.description"
|
name=(concat "system.maneuvers." @index ".name")
|
||||||
toggled=true
|
placeholder=(localize "PRISMRPG.Label.maneuverName")
|
||||||
}}
|
}}
|
||||||
|
<button type="button" data-action="delete-maneuver" data-tooltip="{{localize 'PRISMRPG.Label.deleteManeuver'}}">
|
||||||
|
<i class="fas fa-trash"></i>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<label>{{localize "PRISMRPG.Label.maneuverDescription"}}</label>
|
||||||
|
{{formInput
|
||||||
|
../systemFields.maneuvers.element.fields.description
|
||||||
|
enriched=this.enrichedDescription
|
||||||
|
value=this.description
|
||||||
|
name=(concat "system.maneuvers." @index ".description")
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</div>
|
||||||
|
{{/each}}
|
||||||
|
|
||||||
|
{{#unless enrichedManeuvers.length}}
|
||||||
|
<p class="hint">{{localize "PRISMRPG.Hint.noManeuvers"}}</p>
|
||||||
|
{{/unless}}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Description }}
|
||||||
|
<div class="tab {{tabs.description.cssClass}}" data-group="primary" data-tab="description">
|
||||||
|
<fieldset>
|
||||||
|
<legend>{{localize "PRISMRPG.Label.description"}}</legend>
|
||||||
|
{{formInput
|
||||||
|
systemFields.description
|
||||||
|
enriched=enrichedDescription
|
||||||
|
value=system.description
|
||||||
|
name="system.description"
|
||||||
|
toggled=true
|
||||||
|
}}
|
||||||
|
</fieldset>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{{! Onglet Effects }}
|
||||||
|
<div class="tab {{tabs.effects.cssClass}}" data-group="primary" data-tab="effects">
|
||||||
|
{{> systems/fvtt-prism-rpg/templates/partial-item-effects.hbs}}
|
||||||
|
</div>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
Reference in New Issue
Block a user