Bouton pour jet de résistance
Ajout d'un bouton à côté de la carac rêve
This commit is contained in:
@@ -0,0 +1,110 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
viewBox="0 0 378.00079 384.97681"
|
||||
version="1.1"
|
||||
id="svg23"
|
||||
sodipodi:docname="resistance.svg"
|
||||
width="378.00079"
|
||||
height="384.97681"
|
||||
inkscape:version="1.0.1 (3bc2e813f5, 2020-09-07)">
|
||||
<metadata
|
||||
id="metadata27">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="1875"
|
||||
inkscape:window-height="1352"
|
||||
id="namedview25"
|
||||
showgrid="false"
|
||||
fit-margin-top="0"
|
||||
fit-margin-left="0"
|
||||
fit-margin-right="0"
|
||||
fit-margin-bottom="0"
|
||||
inkscape:zoom="1.4355469"
|
||||
inkscape:cx="186.7504"
|
||||
inkscape:cy="196.1768"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="0"
|
||||
inkscape:window-maximized="0"
|
||||
inkscape:current-layer="svg23" />
|
||||
<defs
|
||||
id="defs17">
|
||||
<linearGradient
|
||||
x1="0"
|
||||
x2="1"
|
||||
y1="1"
|
||||
y2="0"
|
||||
id="lorc-aura-gradient-4">
|
||||
<stop
|
||||
offset="0%"
|
||||
stop-color="#4a4a4a"
|
||||
stop-opacity="1"
|
||||
id="stop2" />
|
||||
<stop
|
||||
offset="100%"
|
||||
stop-color="#c9c9c9"
|
||||
stop-opacity="1"
|
||||
id="stop4" />
|
||||
</linearGradient>
|
||||
<radialGradient
|
||||
id="lorc-aura-gradient-5">
|
||||
<stop
|
||||
offset="0%"
|
||||
stop-color="#9013fe"
|
||||
stop-opacity="1"
|
||||
id="stop7" />
|
||||
<stop
|
||||
offset="100%"
|
||||
stop-color="#85562c"
|
||||
stop-opacity="1"
|
||||
id="stop9" />
|
||||
</radialGradient>
|
||||
<radialGradient
|
||||
id="lorc-aura-gradient-7">
|
||||
<stop
|
||||
offset="0%"
|
||||
stop-color="#9013fe"
|
||||
stop-opacity="1"
|
||||
id="stop12" />
|
||||
<stop
|
||||
offset="100%"
|
||||
stop-color="#85562c"
|
||||
stop-opacity="1"
|
||||
id="stop14" />
|
||||
</radialGradient>
|
||||
</defs>
|
||||
<g
|
||||
class=""
|
||||
transform="translate(-68.2496,-61.8232)"
|
||||
id="g21">
|
||||
<path
|
||||
d="m 320.938,13.28 c -16.646,34.584 -38.466,60.157 -63.094,60.157 -24.522,0 -47.035,-25.275 -63.656,-59.593 0.366,39.358 -9.71,90.884 -30.938,105.125 -21.228,14.24 -49.64,-12.002 -78.844,-32.126 17.455,34.04 42.095,67.5 29.78,92.28 -12.21,24.576 -59.172,35.96 -92.874,35.626 29.338,19.29 78.842,45.803 78.844,74.188 0.002,28.384 -49.504,53.71 -78.844,73 33.702,-0.333 80.663,11.612 92.876,36.187 12.227,24.61 -9.03,56.31 -33.75,85.563 44.826,-15.413 65.142,-5.735 85.374,10.812 h 31.75 C 154.822,459.086 125.5,386.671 125.5,302.936 125.498,184.316 184.42,88.03 256.906,88.03 c 72.488,0 131.406,96.29 131.406,214.907 0,83.74 -29.317,156.153 -72.062,191.563 h 27.313 c 19.847,-14.62 39.796,-25.65 89.687,-9.28 -26.233,-30.264 -42.2,-62.484 -29.97,-87.095 12.257,-24.665 56.658,-36.612 90.533,-36.188 -29.4,-19.297 -75.344,-44.584 -75.344,-73 0,-28.415 45.943,-54.89 75.342,-74.187 -33.874,0.424 -78.273,-10.962 -90.53,-35.625 -12.315,-24.78 9.982,-58.24 27.437,-92.28 -29.202,20.12 -57.583,46.385 -78.845,32.124 -21.262,-14.263 -31.382,-66.13 -30.938,-105.69 z m -68.97,93.75 c -19.56,2.543 -37.343,25.564 -37.343,55.407 0,16.447 5.67,30.986 14,41.032 l 10.156,12.218 -15.593,2.937 c -10.815,2.035 -18.743,7.737 -25.53,17.063 -6.79,9.325 -11.984,22.344 -15.626,37.343 -6.585,27.128 -8.078,60.24 -8.31,89.47 h 36.093 l 0.656,8.656 9.124,122.563 h 76.187 l 8.095,-122.5 0.563,-8.72 h 34.375 c -0.026,-29.592 -0.44,-63.166 -6.407,-90.5 -3.295,-15.095 -8.287,-28.096 -15.156,-37.313 -6.87,-9.216 -15.133,-14.897 -27.28,-16.78 l -15.94,-2.47 10.064,-12.593 c 7.97,-9.996 13.375,-24.36 13.375,-40.406 -0.002,-31.817 -19.884,-55.313 -41.44,-55.313 -2.54,0 -3.96,-0.103 -4.03,-0.094 h -0.03 z"
|
||||
fill="#ffffff"
|
||||
fill-opacity="1"
|
||||
transform="matrix(0.8,0,0,0.8,51.2,51.2)"
|
||||
id="path19" />
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
@@ -2,6 +2,7 @@
|
||||
|
||||
## 13.0.19 - L'introspection d'Illysis
|
||||
|
||||
- Ajout d'un bouton pour les jets de résistance sous rêve actuel
|
||||
- Fenêtre de jet v2
|
||||
- restrictions au propriétaire du personnage
|
||||
- ouverture de la fenêtre de jets
|
||||
|
||||
@@ -593,6 +593,9 @@ select,
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
.system-foundryvtt-reve-de-dragon .roll-dialog roll-action roll-section[name="resistance"] {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.system-foundryvtt-reve-de-dragon .roll-dialog roll-action roll-section {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -607,6 +610,12 @@ select,
|
||||
margin: 0 1rem;
|
||||
padding: 0;
|
||||
}
|
||||
.system-foundryvtt-reve-de-dragon .roll-dialog roll-action roll-section img.flag-resistance {
|
||||
max-width: 1.5rem;
|
||||
max-height: 1.5rem;
|
||||
text-align: right;
|
||||
filter: invert(0.6);
|
||||
}
|
||||
.system-foundryvtt-reve-de-dragon .roll-dialog roll-conditions {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
@@ -160,6 +160,9 @@
|
||||
font-size: 1.2rem;
|
||||
font-weight: bold;
|
||||
|
||||
roll-section[name="resistance"] {
|
||||
align-items: flex-end;
|
||||
}
|
||||
roll-section {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
@@ -174,6 +177,12 @@
|
||||
margin: 0 1rem;
|
||||
padding: 0;
|
||||
}
|
||||
img.flag-resistance {
|
||||
max-width: 1.5rem;
|
||||
max-height: 1.5rem;
|
||||
text-align: right;
|
||||
filter: invert(0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -208,7 +208,8 @@ export class RdDActorSheet extends RdDBaseActorSangSheet {
|
||||
}
|
||||
|
||||
// Points de reve actuel
|
||||
this.html.find('.roll-reve-actuel').click(async event => await this.actor.rollReveActuel({ resistance: true }))
|
||||
this.html.find('.roll-reve-actuel').click(async event => await this.actor.rollReveActuel({ resistance: false }))
|
||||
this.html.find('.button-reve-resistance').click(async event => await this.actor.rollReveActuel({ diff: -8, resistance: true }))
|
||||
this.html.find('.action-empoignade').click(async event => await RdDEmpoignade.onAttaqueEmpoignadeFromItem(RdDSheetUtility.getItem(event, this.actor)))
|
||||
|
||||
this.html.find('.roll-arme').click(async event => {
|
||||
|
||||
@@ -47,6 +47,7 @@ import { ActorImpacts } from "../technical/actor-impacts.mjs";
|
||||
import { RollPartEmpoignade } from "./roll-part-empoignade.mjs";
|
||||
import { RollPartEmpoignadeTaille } from "./roll-part-empoignade-taille.mjs";
|
||||
import { RollPartEcailles } from "./roll-part-ecailles.mjs";
|
||||
import { RollPartResistance } from "./roll-part-resistance.mjs";
|
||||
|
||||
|
||||
const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api
|
||||
@@ -69,6 +70,7 @@ const ROLL_PARTS = [
|
||||
new RollPartActor(),
|
||||
new RollPartAction(),
|
||||
new RollPartOpponent(),
|
||||
new RollPartResistance(),
|
||||
new RollPartCarac(),
|
||||
new RollPartComp(),
|
||||
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
import { ROLLDIALOG_SECTION, RollPart } from "./roll-part.mjs"
|
||||
|
||||
export const PART_RESISTANCE = "resistance"
|
||||
|
||||
export class RollPartResistance extends RollPart {
|
||||
|
||||
get code() { return PART_RESISTANCE }
|
||||
get section() { return ROLLDIALOG_SECTION.ACTION }
|
||||
|
||||
isValid(rollData) { return rollData.type.resistance == true }
|
||||
title(rollData) { return "de résistance" }
|
||||
}
|
||||
@@ -35,6 +35,9 @@
|
||||
<li>
|
||||
<div class="compteur">
|
||||
<label for="system.reve.reve.value">
|
||||
<span>
|
||||
<a class="button-reve-resistance"><img class="button-effect-img" src="systems/foundryvtt-reve-de-dragon/assets/ui/resistance.svg" data-tooltip="Résistance"/></a>
|
||||
</span>
|
||||
<a class="roll-reve-actuel" data-tooltip="Faire un jet de Rêve actuel (ou jet de résistance)">Rêve</a>
|
||||
</label>
|
||||
<a class="ptreve-actuel-moins"><i class="fa-solid fa-square-minus"></i></a>
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<span>de résistance</span>
|
||||
<img src="systems/foundryvtt-reve-de-dragon/assets/ui/resistance.svg"
|
||||
class="flag-resistance"
|
||||
data-tooltip="Résistance" />
|
||||
Reference in New Issue
Block a user