Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a92a61f12 | ||
|
|
8ec36673a9 | ||
|
|
3404ca0c8f | ||
|
|
607c7d9e6b |
@@ -50,7 +50,11 @@ export class BaseSheetL5r5e extends ActorSheet {
|
||||
}
|
||||
|
||||
// Check if technique is allowed for this character
|
||||
if (item.data.type === "technique" && !this.actor.data.data.techniques[item.data.data.technique_type]) {
|
||||
if (
|
||||
!game.user.isGM &&
|
||||
item.data.type === "technique" &&
|
||||
!this.actor.data.data.techniques[item.data.data.technique_type]
|
||||
) {
|
||||
new Dialog({
|
||||
title: "Nope !",
|
||||
content: game.i18n.localize("l5r5e.techniques.not_allowed"),
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -137,47 +137,4 @@
|
||||
margin: 0.5rem 0.25rem 0;
|
||||
}
|
||||
}
|
||||
.limited {
|
||||
h1 {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
img {
|
||||
&.full {
|
||||
flex: 0 0 content;
|
||||
height: auto;
|
||||
width: auto;
|
||||
border: 0 none;
|
||||
}
|
||||
}
|
||||
.sheet-header {
|
||||
flex: none;
|
||||
}
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
li {
|
||||
flex: 50%;
|
||||
padding: 0.25rem 0;
|
||||
input {
|
||||
width: 75%;
|
||||
float: right;
|
||||
}
|
||||
&:nth-child(1) {
|
||||
flex: calc(50% - 1rem);
|
||||
margin-right: 1rem;
|
||||
}
|
||||
&:nth-child(3),
|
||||
&:nth-child(4) {
|
||||
flex: calc(50% - 5rem);
|
||||
margin-right: 1rem;
|
||||
}
|
||||
&:nth-child(5) {
|
||||
flex: auto;
|
||||
input {
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,9 +156,22 @@
|
||||
flex: 33%;
|
||||
&:nth-child(1),
|
||||
&:nth-child(2) {
|
||||
flex: 50%;
|
||||
flex: calc(50% - 5rem);
|
||||
margin: 0 0 0.5rem;
|
||||
}
|
||||
&:nth-child(3) {
|
||||
flex: auto;
|
||||
input {
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
&:nth-child(4),
|
||||
&:nth-child(5) {
|
||||
flex: 50%;
|
||||
input {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -495,4 +508,55 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
&.actor,
|
||||
&.npc {
|
||||
.limited {
|
||||
h1 {
|
||||
margin: 0.5rem 0;
|
||||
}
|
||||
img {
|
||||
&.full {
|
||||
flex: 0 0 content;
|
||||
height: auto;
|
||||
width: auto;
|
||||
border: 0 none;
|
||||
}
|
||||
}
|
||||
.sheet-header {
|
||||
flex: none;
|
||||
height: auto;
|
||||
}
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
li {
|
||||
flex: 50%;
|
||||
padding: 0.25rem 0;
|
||||
input {
|
||||
width: 75%;
|
||||
float: right;
|
||||
}
|
||||
&:nth-child(1),
|
||||
&:nth-child(2) {
|
||||
flex: calc(50% - 5rem);
|
||||
margin-right: 1rem;
|
||||
}
|
||||
&:nth-child(3) {
|
||||
flex: auto;
|
||||
input {
|
||||
width: 2rem;
|
||||
}
|
||||
}
|
||||
&:nth-child(4),
|
||||
&:nth-child(5) {
|
||||
flex: calc(50% - 1rem);
|
||||
margin-right: 1rem;
|
||||
input {
|
||||
font-size: 1rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"name": "l5r5e",
|
||||
"title": "Legend of the Five Rings (5th Edition)",
|
||||
"description": "This is a game system, multilanguage in En/FR/ES, for Legend of the Five Rings (5th Edition) by <a href='https://edge-studio.net/'>Edge Studio</a> <p> - Join the official Discord server: <a href='https://discord.gg/foundryvtt'> Official Discord</a></p><p> - Rejoignez la communauté Francophone: <a href='https://discord.gg/pPSDNJk'>Francophone Discord</a></p>",
|
||||
"version": "0.5.0",
|
||||
"version": "0.5.1",
|
||||
"minimumCoreVersion": "0.7.5",
|
||||
"compatibleCoreVersion": "0.7.9",
|
||||
"author": "Team L5R",
|
||||
@@ -96,5 +96,5 @@
|
||||
],
|
||||
"url": "https://gitlab.com/teaml5r/l5r5e",
|
||||
"manifest": "https://gitlab.com/teaml5r/l5r5e/-/raw/master/system/system.json",
|
||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v0.5.0/raw/l5r5e.zip?job=build"
|
||||
"download": "https://gitlab.com/teaml5r/l5r5e/-/jobs/artifacts/v0.5.1/raw/l5r5e.zip?job=build"
|
||||
}
|
||||
|
||||
@@ -13,14 +13,14 @@
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.school' }}
|
||||
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
|
||||
{{ localize 'l5r5e.schoolrank' }}
|
||||
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.schoolrank' }}
|
||||
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
|
||||
{{ localize 'l5r5e.school' }}
|
||||
<input type="text" name="data.identity.school" value="{{data.identity.school}}"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
@@ -17,6 +17,12 @@
|
||||
<input type="text" name="data.identity.family" value="{{data.identity.family}}"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.schoolrank' }}
|
||||
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.school' }}
|
||||
@@ -29,12 +35,6 @@
|
||||
<input type="text" name="data.identity.roles" value="{{data.identity.roles}}"/>
|
||||
</label>
|
||||
</li>
|
||||
<li>
|
||||
<label class="attribute-label">
|
||||
{{ localize 'l5r5e.schoolrank' }}
|
||||
<input type="number" name="data.identity.school_rank" value="{{data.identity.school_rank}}" class="select-on-focus" data-dtype="Number" min="0" placeholder="0"/>
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -7,5 +7,7 @@
|
||||
<li data-item-id="{{advancement._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{#if advancement.data.description}}
|
||||
<div class="item-description item-description-{{advancement._id}}">{{{ advancement.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -16,5 +16,7 @@
|
||||
<li>{{{ property.name }}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#if item.data.description}}
|
||||
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -12,5 +12,7 @@
|
||||
<li>{{{ property.name }}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#if item.data.description}}
|
||||
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -7,5 +7,7 @@
|
||||
<li data-item-id="{{peculiarity._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{#if peculiarity.data.description}}
|
||||
<div class="item-description item-description-{{peculiarity._id}}">{{{ peculiarity.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -6,5 +6,7 @@
|
||||
<li class="property-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{#if item.data.description}}
|
||||
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -7,5 +7,7 @@
|
||||
<li data-item-id="{{technique._id}}" class="item-control item-delete" title="{{localize 'l5r5e.global.delete'}}"><i class="fas fa-trash"></i></li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
{{#if technique.data.description}}
|
||||
<div class="item-description item-description-{{technique._id}}">{{{ technique.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
@@ -17,5 +17,7 @@
|
||||
<li>{{{ property.name }}}</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{#if item.data.description}}
|
||||
<div class="item-description item-description-{{item._id}}">{{{ item.data.description }}}</div>
|
||||
{{/if}}
|
||||
</li>
|
||||
Reference in New Issue
Block a user