Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d499f60386 | ||
|
|
1c7e05bae6 | ||
|
|
06603ceff7 |
@@ -833,6 +833,30 @@ ol.chat-log {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.weapon-traits {
|
||||||
|
gap: 4px 6px;
|
||||||
|
margin-top: 4px;
|
||||||
|
padding-top: 4px;
|
||||||
|
border-top: 1px dashed fade(@color-hemolymph, 35%);
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
.weapon-traits-label {
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.weapon-trait {
|
||||||
|
flex: none;
|
||||||
|
font-family: "Roboto", sans-serif;
|
||||||
|
font-size: @font-size-11;
|
||||||
|
font-weight: 600;
|
||||||
|
padding: 1px 6px;
|
||||||
|
border: 1px solid @color-border-dark-4;
|
||||||
|
border-radius: 3px;
|
||||||
|
background: fade(@color-acid-green, 10%);
|
||||||
|
cursor: help;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Échange de coups ─────────────────────────────────────────────
|
// ── Échange de coups ─────────────────────────────────────────────
|
||||||
|
|||||||
@@ -253,7 +253,7 @@ export function baseItemSchema() {
|
|||||||
return {
|
return {
|
||||||
description: new fields.HTMLField({ required: true, initial: "", textSearch: true }),
|
description: new fields.HTMLField({ required: true, initial: "", textSearch: true }),
|
||||||
rarity: raritySchema(),
|
rarity: raritySchema(),
|
||||||
reliability: new fields.NumberField({ ...reqInt, initial: 3, min: 1, max: 5 }),
|
reliability: new fields.NumberField({ ...reqInt, initial: 3, min: 1, max: 10 }),
|
||||||
handicap: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
handicap: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
||||||
quantity: new fields.NumberField({ ...reqInt, initial: 1, min: 1 }),
|
quantity: new fields.NumberField({ ...reqInt, initial: 1, min: 1 }),
|
||||||
weight: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
weight: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default class VermineWeaponData extends foundry.abstract.TypeDataModel {
|
|||||||
min_range: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
min_range: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
||||||
max_range: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
max_range: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
||||||
damage: new fields.SchemaField({
|
damage: new fields.SchemaField({
|
||||||
value: new fields.NumberField({ ...reqInt, initial: 0, min: 0 }),
|
value: new fields.NumberField({ ...reqInt, initial: 0, min: -10 }),
|
||||||
type: new fields.StringField({ required: true, initial: "" }),
|
type: new fields.StringField({ required: true, initial: "" }),
|
||||||
addVigor: new fields.BooleanField({ required: true, initial: false })
|
addVigor: new fields.BooleanField({ required: true, initial: false })
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -36,6 +36,18 @@
|
|||||||
{{param.weapon.system.ammo}}
|
{{param.weapon.system.ammo}}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
{{#if param.weapon.system.traits}}
|
||||||
|
<div class="flexrow flex-wrap weapon-traits">
|
||||||
|
<span class="weapon-detail weapon-traits-label">
|
||||||
|
<strong>{{localize "VERMINE.traits"}}:</strong>
|
||||||
|
</span>
|
||||||
|
{{#each param.weapon.system.traits as |trait key|}}
|
||||||
|
{{#if trait}}
|
||||||
|
<span class="weapon-trait" data-tooltip="{{trait.description}}">{{trait.name}}{{#if trait.value}} ({{trait.value}}){{/if}}</span>
|
||||||
|
{{/if}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user