dissociated Pc & All for : Scene End, Sleep, Void Pts actions.

This commit is contained in:
Vlyan
2021-08-16 20:04:28 +02:00
parent c0049aaf38
commit ba4eb99dcb
10 changed files with 147 additions and 143 deletions

View File

@@ -130,12 +130,12 @@
"gm_toolbox": {
"title": "GM ToolBox",
"difficulty_hidden": "Change difficulty visibility",
"difficulty": "Change difficulty (right: add, left: subtract, middle: TN 2)",
"sleep": "Comfortable rest for all characters (Remove Water x2 fatigue)",
"difficulty": "Change difficulty (right click: add, left: subtract, middle: TN 2)",
"sleep": "Comfortable rest for all characters (Remove Water x2 fatigue. Right click: controlled pc only. Left: All actors)",
"sleep_info": "The characters had a good night's sleep.",
"scene_end": "End of scene (Conflict and Fatigue half reset for all characters)",
"scene_end": "End of scene (Conflict and Fatigue half reset for all characters. Right click: controlled pc only. Left: All actors)",
"scene_end_info": "The tension of the scene finally drops.",
"reset_void": "Start of the game: Reset the players' void points",
"reset_void": "Start of the game: Reset the players' void points (Right click: controlled pc only. Left: All actors",
"reset_void_info": "Void points have been attributed."
},
"gm_monitor": {

View File

@@ -131,11 +131,11 @@
"title": "GM ToolBox",
"difficulty_hidden": "Cambiar la dificultad visible",
"difficulty": "Cambiar dificultad (derecha: añadir, izquierda: sustraer, central: NO 2)",
"sleep": "Descanso confortable para todos los personajes (Eliminar fatiga = Agua x2)",
"sleep": "Descanso confortable para todos los personajes (Eliminar fatiga = Agua x2. Right click: controlled pc only. Left: All actors)",
"sleep_info": "Los personajes han dormido bien.",
"scene_end": "Final de la escena (El Conflicto y la Fatiga de los personajes se reduce hasta la mitad del máximo del valor)",
"scene_end": "Final de la escena (El Conflicto y la Fatiga de los personajes se reduce hasta la mitad del máximo del valor. Right click: controlled pc only. Left: All actors)",
"scene_end_info": "La tensión de la escena por fin disminuye.",
"reset_void": "Start of the game: Reset the players' void points",
"reset_void": "Start of the game: Reset the players' void points (Right click: controlled pc only. Left: All actors)",
"reset_void_info": "Void points have been attributed."
},
"gm_monitor": {

View File

@@ -130,12 +130,12 @@
"gm_toolbox": {
"title": "GM ToolBox",
"difficulty_hidden": "Modifier la visibilité de la difficulté",
"difficulty": "Modifier la difficulté (droite: ajout, gauche: soustraction, milieu: ND 2)",
"sleep": "Repos confortable pour tous les personnages (Enlève Eau x2 de fatigue)",
"difficulty": "Modifier la difficulté (Clic Droit: ajout, Gauche: soustraction, Milieu: ND 2)",
"sleep": "Repos confortable pour tous les personnages (Enlève Eau x2 de fatigue. Clic Droit: Personnage contrôlé uniquement. Gauche: Tous)",
"sleep_info": "Les personnages ont passé une bonne nuit de sommeil.",
"scene_end": "Fin de scène (Conflit et Fatigue à moitié pour tous les personnages dont la valeur dépasse ce seuil)",
"scene_end": "Fin de scène (Conflit et Fatigue à moitié pour tous les personnages dont la valeur dépasse ce seuil. Clic Droit: Personnage contrôlé uniquement. Gauche: Tous)",
"scene_end_info": "La tension de la scène retombe enfin",
"reset_void": "Début de partie : Réinitialiser les points du vide des joueurs",
"reset_void": "Début de partie : Réinitialiser les points du vide des joueurs (Clic Droit: Personnage contrôlé uniquement. Gauche: Tous)",
"reset_void_info": "Les points du vide ont été attribués"
},
"gm_monitor": {

View File

@@ -9,4 +9,4 @@
{"_id":"L5RCoreOpp000009","name":"While Tainted Use","content":"<blockquote>Shadowlands p.131</blockquote><br><h2><i class=\"i_air\" title=\"\"></i> Air (Precision, Stealth, Subtlety, Trickery, Detail, Emotion)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> Your newfound cunning is able to redirect attention away from you, potentially concealing your Tainted nature or letting you avoid scrutiny. The TN of the next check made to scrutinize you or your actions is increased by 1.</p><br><br><h2><i class=\"i_earth\" title=\"\"></i> Earth (Caution, Calm, Thoroughness, Memory, Defense)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> No mortal concern can slow you, as you already endure worse than most can even imagine. For the rest of the scene, whenever you suffer fatigue reduce the value suffered by 2, to a minimum of 0.</p><br><br><h2><i class=\"i_fire\" title=\"\"></i> Fire (Creativity, Intimidation, Attention, Motivation, Insight, Absence)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> The furious power of Jigoku flows through you, granting you unnatural might. Add 1 kept <i class=\"i_ring\" title=\"\"></i> showing a <i class=\"i_strife\" title=\"\"></i> result to the next Martial Arts check you make. This effect persists until the start of their next turn.</p><br><br><h2><i class=\"i_water\" title=\"\"></i> Water (Efficiency, Flexibility, Friendliness, Environmental awareness)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> You briefly become fluid in mind or body, shaking off disorientation or even injury. You remove one of the following conditions: Dazed, Disoriented, Immobilized, Intoxicated, Lightly Wounded, or Prone.</p><br><br><h2><i class=\"i_void\" title=\"\"></i> Void (Instinct, Inscrutability, Mystery, the Supernatural)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> The unnatural insights of the kansen voice themselves wordlessly to you, granting knowledge you could not possibly have known otherwise. You learn something relevant to the current situation, appropriate in scope to the number of <i class=\"i_opportunity\" title=\"\"></i> spent. For each <i class=\"i_opportunity\" title=\"\"></i> spent in this way, you receive 1 strife due to the unnatural means by which you gained this knowledge.</p>","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}}
{"_id":"L5RCoreOpp000010","name":"Negotiations Use","content":"<blockquote>Court of Stones p.132</blockquote><br><h2><i class=\"i_air\" title=\"\"></i> Air (Precision, Stealth, Subtlety, Trickery, Detail, Emotion)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> Your careful verbal trap ensnares someone in a position in which they must either give up ground or give you a boon. They must offer you a minor concession unrelated to your current social objective unless they give up 1 momentum point per <i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> spent this way.</p><br><br><h2><i class=\"i_earth\" title=\"\"></i> Earth (Caution, Calm, Thoroughness, Memory, Defense)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> Your uncompromising dedication to your bottom line stalls the conversation. Choose a character in the scene: that character cannot gain momentum points toward any social objective until the end of your next turn.</p><br><br><h2><i class=\"i_fire\" title=\"\"></i> Fire (Creativity, Intimidation, Attention, Motivation, Insight, Absence)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> You set someone else on the defense with fast-paced questions and demands. Choose a demand or statement another character in the scene has made. Their player (or the GM, for NPCs) must tell you any hidden motivations behind that demand or statement.</p><br><br><h2><i class=\"i_water\" title=\"\"></i> Water (Efficiency, Flexibility, Friendliness, Environmental awareness)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> You break the tension with a well-timed joke or clever comment. You may ask one personal question of a character in the scene with a different social objective. The question must be unrelated to the subject of the negotiations. If the character answers honestly, they gain 1 momentum point toward their current objective and may ask you a personal question in turn. If they do, you gain 1 momentum point toward your current objective.</p><br><br><h2><i class=\"i_void\" title=\"\"></i> Void (Instinct, Inscrutability, Mystery, the Supernatural)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> You briefly shake someones conviction with a deep insight into their character or circumstances, causing them to speak without certainty. Until the end of your next turn, any momentum points they score are added to your current social objective instead of to their own.</p>","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}}
{"_id":"L5RCoreOpp000011","name":"Romance Use","content":"<blockquote>Court of Stones p.132</blockquote><br><h2><i class=\"i_air\" title=\"\"></i> Air (Precision, Stealth, Subtlety, Trickery, Detail, Emotion)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> The conversation turns to mutual friends or acquaintances. Name a character you and your intended both know. They must tell you what they think of that character, revealing one of that persons advantages or disadvantages.</p><br><br><h2><i class=\"i_earth\" title=\"\"></i> Earth (Caution, Calm, Thoroughness, Memory, Defense)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> An offhand comment reveals that you and your intended share some common ground: an odd hobby, a favorite actor, or a core belief. Make three suggestions to your intendeds player; they must tell you which one it is. You and your intended may each remove 2 strife.</p><br><br><h2><i class=\"i_fire\" title=\"\"></i> Fire (Creativity, Intimidation, Attention, Motivation, Insight, Absence)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> A detail of your appearance catches your intendeds interest. Their player must tell you which of your physical attributes they find most captivating. You and your intended each receive 1 strife, and you each reduce the TN of your next Social skill check by 1.</p><br><br><h2><i class=\"i_water\" title=\"\"></i> Water (Efficiency, Flexibility, Friendliness, Environmental awareness)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> Your interaction is pleasant enough that your intended, not you, suggests another meeting within the next day or two. They offer you several options for the next time you and they spend personal time together; choose whichever you like the best, and dont be late.</p><br><br><h2><i class=\"i_void\" title=\"\"></i> Void (Instinct, Inscrutability, Mystery, the Supernatural)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> Due to circumstances beyond your control—a gust of wind or an earth tremor, perhaps—you and your intended find yourselves unexpectedly aware of one another! Your intended decides what kind of contact it was, from a fateful meeting of the eyes to a brush of your hands against one another as you both reach for a dropped scroll. They also decide how they react, although they will not blame you for anything untoward (after all, it wasnt your fault).</p>","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}}
{"_id":"L5RCoreOpp000012","name":"Espionage Use","content":"<blockquote>Court of Stones p.133</blockquote><br><h2><i class=\"i_air\" title=\"\"></i> Air (Precision, Stealth, Subtlety, Trickery, Detail, Emotion)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> Your subtlety allows you to step out of sight of people, whether by hiding in a crowd or within convenient terrain. Designate a number of Minion NPCs equal to <i class=\"i_opportunity\" title=\"\"></i> spent this way or a single Adversary NPC with vigilance lower than or equal to spent this way. Those characters lose sight of you (and do not notice your absence unless actively looking for you).</p><br><br><h2><i class=\"i_earth\" title=\"\"></i> Earth (Caution, Calm, Thoroughness, Memory, Defense)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> You locate an excellent hiding place, either a place where no one questions your cover identity or a concealed location no one checks. While hiding in this location, you reduce the TN of your checks to avoid notice by <i class=\"i_opportunity\" title=\"\"></i> spent this way.</p><br><br><h2><i class=\"i_fire\" title=\"\"></i> Fire (Creativity, Intimidation, Attention, Motivation, Insight, Absence)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> A stray motion of yours catches the attention of a person or creature—but unexpectedly, they are sympathetic or helpful to you when they notice you. Who are they, and how do they offer to help? Do they think you are someone youre not?</p><br><br><h2><i class=\"i_water\" title=\"\"></i> Water (Efficiency, Flexibility, Friendliness, Environmental awareness)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i> :</strong> You observe a clue or hint that indicates to you that information about your target or goal might also be found elsewhere. The GM reveals another viable avenue for espionage on the same subject, unrelated to your current operation.</p><br><br><h2>(Void (Instinct, Inscrutability, Mystery, the Supernatural)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i> :</strong> Your understanding of stealth clues you in on the possibility that you are not the first spy to pass this way. The GM reveals whether another spy has traversed your location and, if so, what trace they unwittingly left behind.</p>","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}}
{"_id":"L5RCoreOpp000012","name":"Espionage Use","content":"<blockquote>Court of Stones p.133</blockquote><br><h2><i class=\"i_air\" title=\"\"></i> Air (Precision, Stealth, Subtlety, Trickery, Detail, Emotion)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> Your subtlety allows you to step out of sight of people, whether by hiding in a crowd or within convenient terrain. Designate a number of Minion NPCs equal to <i class=\"i_opportunity\" title=\"\"></i> spent this way or a single Adversary NPC with vigilance lower than or equal to spent this way. Those characters lose sight of you (and do not notice your absence unless actively looking for you).</p><br><br><h2><i class=\"i_earth\" title=\"\"></i> Earth (Caution, Calm, Thoroughness, Memory, Defense)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i>+ :</strong> You locate an excellent hiding place, either a place where no one questions your cover identity or a concealed location no one checks. While hiding in this location, you reduce the TN of your checks to avoid notice by <i class=\"i_opportunity\" title=\"\"></i> spent this way.</p><br><br><h2><i class=\"i_fire\" title=\"\"></i> Fire (Creativity, Intimidation, Attention, Motivation, Insight, Absence)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i><i class=\"i_opportunity\" title=\"\"></i> :</strong> A stray motion of yours catches the attention of a person or creature—but unexpectedly, they are sympathetic or helpful to you when they notice you. Who are they, and how do they offer to help? Do they think you are someone youre not?</p><br><br><h2><i class=\"i_water\" title=\"\"></i> Water (Efficiency, Flexibility, Friendliness, Environmental awareness)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i> :</strong> You observe a clue or hint that indicates to you that information about your target or goal might also be found elsewhere. The GM reveals another viable avenue for espionage on the same subject, unrelated to your current operation.</p><br><br><h2>(Void (Instinct, Inscrutability, Mystery, the Supernatural)</h2><p><strong><i class=\"i_opportunity\" title=\"\"></i> :</strong> Your understanding of stealth clues you in on the possibility that you are not the first spy to pass this way. The GM reveals whether another spy has traversed your location and, if so, what trace they unwittingly left behind.</p>","img":"systems/l5r5e/assets/icons/social.svg","folder":null,"sort":100001,"permission":{"default":0},"flags":{}}

View File

@@ -152,12 +152,8 @@ export class GmToolbox extends FormApplication {
game.settings.set("l5r5e", "initiative-difficulty-value", this.object.difficulty).then(() => this.submit());
});
// Scene End, Sleep, void pt
html.find(`.gm_actor_updates`).on("click", (event) => {
event.preventDefault();
event.stopPropagation();
this._updatesActors($(event.currentTarget).data("type"));
});
// Scene End, Sleep, Void Pts
html.find(`.gm_actor_updates`).on("mousedown", this._updatesActors.bind(this));
// GM Monitor
html.find(`.gm_monitor`).on("click", (event) => {
@@ -186,15 +182,23 @@ export class GmToolbox extends FormApplication {
/**
* Update all actors
* @param {string} type
* @param {Event} event
* @private
*/
async _updatesActors(type) {
async _updatesActors(event) {
if (!game.user.isGM) {
return;
}
const isAll = event.which !== 1;
const type = $(event.currentTarget).data("type");
for await (const actor of game.actors.contents) {
// only controlled pc
if (!isAll && (actor.data.type !== "character" || !actor.hasPlayerOwner)) {
continue;
}
switch (type) {
case "sleep":
// Remove 'water x2' fatigue points
@@ -217,10 +221,6 @@ export class GmToolbox extends FormApplication {
break;
case "reset_void":
// only pc
if (actor.data.type !== "character" || !actor.hasPlayerOwner) {
return;
}
actor.data.data.void_points.value = Math.ceil(actor.data.data.void_points.max / 2);
break;
}

File diff suppressed because one or more lines are too long

View File

@@ -399,121 +399,6 @@
}
}
#l5r5e-gm-monitor {
min-height: 170px;
min-width: 500px;
.window-content {
form {
padding: 0 0.5rem;
}
th,
td {
border: 1px solid #5a6e5a;
padding: 0.25em;
}
img {
border: none;
max-width: 28px;
max-height: 28px;
}
.goodvalue {
color: rgba(0, 128, 0, 0.75);
}
.badvalue {
color: $red-dice;
}
}
}
#l5r5e-gm-toolbox {
//bottom: 0;
//right: 0.5rem;
display: flex;
background-position: center;
background-size: 100%;
background: linear-gradient(
$l5r5e-linear-gradient-second,
$l5r5e-linear-gradient-second-dark,
$l5r5e-linear-gradient-second
);
background-origin: padding-box;
border: 1px solid rgb(195, 165, 130);
background-origin: padding-box;
border-image: url("../assets/ui/macro-button.webp") 10 repeat;
border-image-width: 0.5rem;
border-image-outset: 0px;
padding: 0;
margin: 0.5rem;
.window-header {
text-align: center;
border-bottom: 1px solid rgb(195, 165, 130);
h4 {
letter-spacing: 0.25rem;
line-height: 2.25rem;
color: $white-light;
}
}
.window-content {
text-align: center;
vertical-align: middle;
background: transparent;
color: $white-light;
form {
padding: 0;
}
.gm-tools-container {
display: flex;
font-size: 2rem;
line-height: 2rem;
min-height: 2rem;
margin: 0;
li {
flex: 1;
display: flex;
margin: 0;
padding: 0;
border-right: 1px solid #c3a582;
cursor: url("../assets/cursors/pointer.webp"), pointer;
&:last-child {
margin: 0;
border: 0 none;
}
:hover {
text-shadow: 0 0 $red;
}
}
.difficulty_hidden {
.fa {
width: 3rem;
}
.difficulty {
flex: 1rem;
width: 2rem;
font-size: 2rem;
text-align: center;
margin: 0;
padding: 0.5rem;
}
}
.fa {
padding: 0.5rem;
}
.fa-bed,
.fa-star-half-alt,
.fa-table,
.fa-podcast {
width: 100%;
padding: 0.5rem;
}
}
}
// hide "search anywhere" draggable icon
.window-draggable-handle {
display: none;
}
}
.dice-picker-dialog,
.roll-n-keep-dialog {
button {

View File

@@ -762,3 +762,122 @@ button {
padding: 0;
}
}
#l5r5e-gm-monitor {
min-height: 170px;
min-width: 500px;
.window-content {
form {
padding: 0 0.5rem;
}
th,
td {
border: 1px solid #5a6e5a50;
padding: 0.25em;
}
img {
border: none;
max-width: 28px;
max-height: 28px;
}
.goodvalue {
color: rgba(0, 128, 0, 0.75);
}
.badvalue {
color: $red-dice;
}
}
// hide "search anywhere" draggable icon
.window-draggable-handle {
display: none;
}
}
#l5r5e-gm-toolbox {
//bottom: 0;
//right: 0.5rem;
display: flex;
background-position: center;
background-size: 100%;
background: linear-gradient(
$l5r5e-linear-gradient-second,
$l5r5e-linear-gradient-second-dark,
$l5r5e-linear-gradient-second
);
background-origin: padding-box;
border: 1px solid rgb(195, 165, 130);
background-origin: padding-box;
border-image: url("../assets/ui/macro-button.webp") 10 repeat;
border-image-width: 0.5rem;
border-image-outset: 0px;
padding: 0;
margin: 0.5rem;
.window-header {
text-align: center;
border-bottom: 1px solid rgb(195, 165, 130);
h4 {
letter-spacing: 0.25rem;
line-height: 2.25rem;
color: $white-light;
}
}
.window-content {
text-align: center;
vertical-align: middle;
background: transparent;
color: $white-light;
form {
padding: 0;
}
.gm-tools-container {
display: flex;
font-size: 2rem;
line-height: 2rem;
min-height: 2rem;
margin: 0;
li {
flex: 1;
display: flex;
margin: 0;
padding: 0;
border-right: 1px solid #c3a582;
cursor: url("../assets/cursors/pointer.webp"), pointer;
&:last-child {
margin: 0;
border: 0 none;
}
:hover {
text-shadow: 0 0 $red;
}
}
.difficulty_hidden {
.fa {
width: 3rem;
}
.difficulty {
flex: 1rem;
width: 2rem;
font-size: 2rem;
text-align: center;
margin: 0;
padding: 0.5rem;
}
}
.fa {
padding: 0.5rem;
}
.fa-bed,
.fa-star-half-alt,
.fa-table,
.fa-podcast {
width: 100%;
padding: 0.5rem;
}
}
}
// hide "search anywhere" draggable icon
.window-draggable-handle {
display: none;
}
}

View File

@@ -3,7 +3,7 @@
<thead>
<th class="img"></th>
<th class="name">{{localize 'l5r5e.name'}}</th>
<th class="stance"><i class="i_fire"></i></th>
<th class="stance"><i class="i_earth"></i></th>
<th class="weapon"><i class="fas fa-fan"></i></th>
<th class="armor"><i class="fas fa-user-shield"></i></th>
<th class="rank"><i class="i_bushi"></i> / <i class="i_courtier"></i></th>