Item sheets, WIP

This commit is contained in:
sladecraven 2022-11-03 20:01:45 +01:00
parent f039600065
commit c64754a586
18 changed files with 548 additions and 278 deletions

16
lang/en.json Normal file
View File

@ -0,0 +1,16 @@
{
"ACTOR": {
"TypeCharacter": "Character",
"TypeNpc": "NPC"
},
"ITEM": {
"TypeWeapon": "Weapon",
"TypeShield": "Shield",
"TypeArmor": "Armor",
"TypeSkill": "Skill",
"TypeSpell": "Spell",
"TypeModule": "Module",
"TypeMoney": "Money",
"TypeEquipment": "Equipment"
}
}

View File

@ -1,11 +1,14 @@
import { Avd12Utility } from "./avd12-utility.js";
export const defaultItemImg = {
skill: "systems/fvtt-avd12/images/icons/icon_skill.webp",
armor: "systems/fvtt-avd12/images/icons/icon_armour.webp",
weapon: "systems/fvtt-avd12/images/icons/icon_weapon.webp",
equipment: "systems/fvtt-avd12/images/icons/icon_equipment.webp",
money: "systems/fvtt-avd12/images/icons/icon_money.webp",
skill: "systems/fvtt-avd12/images/icons/skill2.webp",
armor: "systems/fvtt-avd12/images/icons/gloves2.webp",
shield: "systems/fvtt-avd12/images/icons/shield2.webp",
weapon: "systems/fvtt-avd12/images/icons/weapon2.webp",
equipment: "systems/fvtt-avd12/images/icons/cloak2.webp",
spell: "systems/fvtt-avd12/images/icons/focus2.webp",
module: "systems/fvtt-avd12/images/icons/focus2.webp",
money: "systems/fvtt-avd12/images/icons/chest2.webp",
}
/**

View File

@ -127,9 +127,12 @@ export class Avd12Utility {
'systems/fvtt-avd12/templates/actors/editor-notes-gm.hbs',
'systems/fvtt-avd12/templates/items/partial-item-nav.hbs',
'systems/fvtt-avd12/templates/items/partial-item-description.hbs',
'systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs',
'systems/fvtt-avd12/templates/items/partial-options-weapon-types.hbs',
'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs',
'systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs'
'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs',
'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs',
'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs',
]
return loadTemplates(templatePaths);
}

View File

@ -48,7 +48,7 @@
.sheet nav.sheet-tabs {
font-size: 0.8rem;
} /* For nav and title */
.window-app input, .foundryvtt-vadentis .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle {
.window-app input, .fvtt-avd12 .item-form, .sheet header.sheet-header .flex-group-center.flex-compteurs, .sheet header.sheet-header .flex-group-center.flex-fatigue, select, button, .item-checkbox, #sidebar, #players, #navigation #nav-toggle {
font-size: 0.8rem;
}
@ -73,6 +73,12 @@
text-shadow: 0 0 10px red;
cursor: pointer;
}
input:hover, select:hover {
border-width: 4px;
border-color: rgb(85, 65, 130);
}
input:disabled {
color:#1c2058;
}
@ -191,9 +197,8 @@ table {border: 1px solid #7a7971;}
flex: 'flex-shrink' ;
}
/* Styles limited to foundryvtt-vadentis sheets */
.fvtt-crucible-rpg .sheet-header {
/* Styles limited to sheets */
.fvtt-avd12 .sheet-header {
-webkit-box-flex: 0;
-ms-flex: 0 0 210px;
flex: 0 0 210px;
@ -213,7 +218,7 @@ table {border: 1px solid #7a7971;}
margin-bottom: 10px;
}
.fvtt-crucible-rpg .sheet-header .profile-img {
.fvtt-avd12 .sheet-header .profile-img {
-webkit-box-flex: 0;
-ms-flex: 0 0 128px;
flex: 0 0 128px;
@ -234,6 +239,7 @@ table {border: 1px solid #7a7971;}
border-width: 0;
border: 1px solid rgba(0, 0, 0, 0);
}
.button-img:hover {
color: rgba(255, 255, 128, 0.7);
border: 1px solid rgba(255, 128, 0, 0.8);
@ -255,34 +261,34 @@ table {border: 1px solid #7a7971;}
vertical-align: bottom;
}
.fvtt-crucible-rpg .sheet-header .header-fields {
.fvtt-avd12 .sheet-header .header-fields {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.fvtt-crucible-rpg .sheet-header h1.charname {
.fvtt-avd12 .sheet-header h1.charname {
height: 50px;
padding: 0px;
margin: 5px 0;
border-bottom: 0;
}
.fvtt-crucible-rpg .sheet-header h1.charname input {
.fvtt-avd12 .sheet-header h1.charname input {
width: 100%;
height: 100%;
margin: 0;
}
.fvtt-crucible-rpg .sheet-tabs {
.fvtt-avd12 .sheet-tabs {
-webkit-box-flex: 0;
-ms-flex: 0;
flex: 0;
}
.fvtt-crucible-rpg .sheet-body,
.fvtt-crucible-rpg .sheet-body .tab,
.fvtt-crucible-rpg .sheet-body .tab .editor {
.fvtt-avd12 .sheet-body,
.fvtt-avd12 .sheet-body .tab,
.fvtt-avd12 .sheet-body .tab .editor {
height: 100%;
font-size: 0.8rem;
}
@ -305,70 +311,70 @@ table {border: 1px solid #7a7971;}
padding: 0 3px;
}
.fvtt-crucible-rpg .tox .tox-editor-container {
.fvtt-avd12 .tox .tox-editor-container {
background: #fff;
}
.fvtt-crucible-rpg .tox .tox-edit-area {
.fvtt-avd12 .tox .tox-edit-area {
padding: 0 8px;
}
.fvtt-crucible-rpg .resource-label {
.fvtt-avd12 .resource-label {
font-weight: bold;
text-transform: uppercase;
}
.fvtt-crucible-rpg .tabs {
.fvtt-avd12 .tabs {
height: 40px;
border-top: 1px solid #AAA;
border-bottom: 1px solid #AAA;
color: #000000;
}
.fvtt-crucible-rpg .tabs .item {
.fvtt-avd12 .tabs .item {
line-height: 40px;
font-weight: bold;
}
.fvtt-crucible-rpg .tabs .item.active {
.fvtt-avd12 .tabs .item.active {
text-decoration: underline;
text-shadow: none;
}
.fvtt-crucible-rpg .items-list {
.fvtt-avd12 .items-list {
list-style: none;
margin: 1px 0;
padding: 0;
overflow-y: auto;
}
.fvtt-crucible-rpg .items-list .item-header {
.fvtt-avd12 .items-list .item-header {
font-weight: bold;
}
.fvtt-crucible-rpg .items-list .item {
.fvtt-avd12 .items-list .item {
height: 30px;
line-height: 24px;
padding: 1px 0;
border-bottom: 1px solid #BBB;
}
.fvtt-crucible-rpg .items-list .item .item-image {
.fvtt-avd12 .items-list .item .item-image {
-webkit-box-flex: 0;
-ms-flex: 0 0 24px;
flex: 0 0 24px;
margin-right: 5px;
}
.fvtt-crucible-rpg .items-list .item img {
.fvtt-avd12 .items-list .item img {
display: block;
}
.fvtt-crucible-rpg .items-list .item-name {
.fvtt-avd12 .items-list .item-name {
margin: 0;
}
.fvtt-crucible-rpg .items-list .item-controls {
.fvtt-avd12 .items-list .item-controls {
-webkit-box-flex: 0;
-ms-flex: 0 0 86px;
flex: 0 0 86px;
@ -379,22 +385,28 @@ table {border: 1px solid #7a7971;}
/* ======================================== */
/* Sheet */
.window-app.sheet .window-content .sheet-header{
background: url("../images/ui/pc_sheet_bg.webp")
/*color: rgba(168, 139, 139, 0.5);*/
/*background: url("../images/ui/pc_sheet_bg.webp");*/
background: #494e6b;
}
/* background: #011d33 url("../images/ui/fond1.webp") repeat left top;*/
/*color: rgba(168, 139, 139, 0.5);*/
.window-app.sheet .window-content .sheet-header select[type="text"], .window-app.sheet .window-content .sheet-header input[type="text"], .window-app.sheet .window-content .sheet-header input[type="number"], .window-app.sheet .window-content .sheet-body input[type="text"], .window-app.sheet .window-content .sheet-body input[type="number"], .window-app.sheet .window-content .sheet-body select[type="text"] {
background:white;
}
.window-app.sheet .window-content .sheet-header input[type="text"], .window-app.sheet .window-content .sheet-header input[type="number"], .window-app.sheet .window-content .sheet-header input[type="password"], .window-app.sheet .window-content .sheet-header input[type="date"], .window-app.sheet .window-content .sheet-header input[type="time"] {
.window-app.sheet .window-content .sheet-header input[type="password"], .window-app.sheet .window-content .sheet-header input[type="date"], .window-app.sheet .window-content .sheet-header input[type="time"] {
color: rgba(36, 37, 37, 0.75);
background: rgba(245, 245, 241, 0.95);
background: #494e6b;
border: 1 none;
margin-bottom: 0.25rem;
margin-left: 2px;
}
.window-app.sheet .window-content .sheet-body input[type="text"], .window-app.sheet .window-content .sheet-body input[type="number"], .window-app.sheet .window-content .sheet-body input[type="password"], .window-app.sheet .window-content .sheet-body input[type="date"], .window-app.sheet .window-content .sheet-body input[type="time"] {
.window-app.sheet .window-content .sheet-body input[type="password"], .window-app.sheet .window-content .sheet-body input[type="date"], .window-app.sheet .window-content .sheet-body input[type="time"] {
color: rgba(36, 37, 37, 0.75);
background: rgba(245, 245, 241, 0.95);
background: #494e6b;
border: 1 none;
margin-bottom: 0.25rem;
margin-left: 2px;
@ -402,7 +414,7 @@ table {border: 1px solid #7a7971;}
.window-app.sheet .window-content .sheet-body select, .window-app.sheet .window-content .sheet-header select {
color: rgba(36, 37, 37, 0.75);
background: rgba(245, 245, 241, 0.95);
background: #494e6b;
border: 1 none;
margin-bottom: 0.25rem;
margin-left: 2px;
@ -410,7 +422,8 @@ table {border: 1px solid #7a7971;}
.window-app .window-content, .window-app.sheet .window-content .sheet-body{
font-size: 0.8rem;
background: url("../images/ui/pc_sheet_bg.webp") repeat left top;
/*background: url("../images/ui/pc_sheet_bg.webp") repeat left top;*/
background: #494e6b;
}
/* background: rgba(245,245,240,0.6) url("../images/ui/sheet_background.webp") left top;*/
@ -436,7 +449,7 @@ section.sheet-body{padding: 0.25rem 0.5rem;}
line-height: 1.5rem;
border-top: 0 none;
border-bottom: 0 none;
background-color:black;
background-color:#252525;
color:beige;
}
@ -560,9 +573,6 @@ ul, li {
.item-display-hide {
display: none;
}
.conteneur-type {
background: rgb(200, 10, 100, 0.25);
}
.item-quantite {
margin-left: 0.5rem;
}
@ -600,17 +610,7 @@ ul, li {
font-weight: bold;
flex-grow: 0;
}
.secondaire-label,
.arme-label,
.generic-label,
.competence-label,
.devotion-label,
.sort-label,
.technique-label,
.ability-label,
.arme-label,
.armure-label,
.equipement-label,
.description-label {
flex-grow: 2;
margin-left: 4px;
@ -1080,38 +1080,10 @@ ul, li {
transition: opacity 0.3s;
}
.tooltip .ttt-fatigue{
width: 360px;
background: rgba(30, 25, 20, 0.9);
border-image: url(img/ui/bg_control.jpg) 21 repeat;
border-image-slice: 6 6 6 6 fill;
border-image-width: 6px 6px 6px 6px;
border-image-outset: 0px 0px 0px 0px;
border-radius: 0px;
font-size: 0.8rem;
padding: 3px 0;
}
.tooltip .ttt-ajustements {
width: 150px;
background: rgba(220,220,210,0.95);
border-radius: 6px;
font-size: 0.9rem;
padding: 3px 0;
}
.tooltip-nobottom {
border-bottom: unset; /* If you want dots under the hoverable text */
}
.tooltip .ttt-xp {
width: 250px;
background: rgba(220,220,210,0.95);
border-radius: 6px;
font-size: 0.9rem;
padding: 3px 0;
}
/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
@ -1119,23 +1091,6 @@ ul, li {
opacity: 1;
}
.river-button {
box-shadow: inset 0px 1px 0px 0px #a6827e;
background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
background-color: #7d5d3b00;
border-radius: 3px;
border: 2px ridge #846109;
display: inline-block;
cursor: pointer;
color: #ffffff;
font-size: 0.8rem;
padding: 2px 4px 0px 4px;
text-decoration: none;
text-shadow: 0px 1px 0px #4d3534;
position: relative;
margin:4px;
}
.chat-card-button {
box-shadow: inset 0px 1px 0px 0px #a6827e;
background: linear-gradient(to bottom, #21374afc 5%, #152833ab 100%);
@ -1179,7 +1134,6 @@ ul, li {
margin:0px;
}
.river-button:hover,
.plus-minus-button:hover,
.chat-card-button:hover {
background: linear-gradient(to bottom, #800000 5%, #3e0101 100%);
@ -1201,34 +1155,6 @@ ul, li {
padding-left: 2rem;
}
.drop-equipment-effect,
.drop-power-effect,
.drop-perk-effect,
.drop-ability-effect,
.drop-effect-specaffected,
.drop-effect-spec,
.drop-ability-weapon,
.drop-ability-armor,
.drop-race-perk,
.drop-spec-perk,
.drop-ability-power,
.drop-ability-spec,
.drop-spec-power,
.drop-specialability,
.drop-abilities,
.drop-optionnal-abilities,
.drop-virtue-vice-effect,
.drop-virtue-vice,
.drop-vice-virtue,
.drop-specialperk1,
.drop-perk2,
.drop-spec1 ,
.drop-spec2 {
background: linear-gradient(to bottom, #6c95b9fc 5%, #105177ab 100%);
background-color: #7d5d3b00;
border-radius: 3px;
border: 2px ridge #846109;
}
/*************************************************************/
#pause
@ -1266,76 +1192,9 @@ ul, li {
position:relative;
}
/* =================== 1. ACTOR SHEET FONT STYLES =========== *//*
Agility AGI: #02a41d Also Used for Ranged Damage
Mind MND: #a100fe
Social SOC: #fd7100
Strength STR: #5f3d00 Also Used For Melee Damage
Physique PHY: #990304 Also used For Damage Resistance
Combat COM: 0136ff Also Used for Melee Attack
Defence DEF: #88826a Also used in the Defence on Combat Tab
Stealth STL: #505050
Perception PER: #f9c801 Also Used for Ranged Damage
Focus FOC: #ff0084
*/
.color-class-black {
background-color: black;
background: black;
}
.color-class-agi,
.color-class-range {
background-color: #02a41d;
background: #02a41d;
}
.color-class-pool {
background-color:#c5c3c3;
}
.color-class-mnd {
background-color: #a100fe;
}
.color-class-soc {
background-color: #fd7100;
}
.color-class-str,
.color-class-meleedmg {
background-color: #5f3d00;
}
.color-class-phy,
.color-class-dmgres {
background-color: #990304;
}
.color-class-mr {
background-color: #050505;
}
.color-class-com,
.color-class-melee {
background-color: #0136ff;
}
.color-class-def,
.color-class-defence {
background-color: #88826a;
}
.color-class-stl {
background-color: #505050;
}
.color-class-per,
.color-class-ranged {
background-color: #f9c801;
}
.color-class-foc {
background-color: #ff0084;
}
.color-class-common {
background: rgba(185, 183, 40, 0.45);
}
.status-small-label {
font-size: 0.65rem;
}
.combat-button {
min-height: 26px;
max-height: 26px;
margin-top: 4px;
}
.no-grow {
flex-grow: 1;
max-width: 32px;
@ -1343,41 +1202,6 @@ Focus FOC: #ff0084
.status-col-name {
max-width: 72px;
}
.status-block {
max-width: 216px;
}
.momentum-block {
max-width: 128px;
justify-content: flex-start;
}
.ability-item {
flex-grow: 1;
justify-content: flex-start;
margin: 2px;
}
.ability-block {
min-width: 160px;
}
.ability-margin {
margin-left: 4px;
margin-top: 5px;
}
.combat-margin {
margin-left: 4px;
margin-top: 3px;
}
.item-ability-roll {
max-height: 42px;
min-height: 36px;
}
.item-ability-roll select, .item-ability-roll input {
margin-top: 4px;
margin-right: 2px;
}
.table-momentum {
background: none;
border: 0;
}
.img-no-border {
max-width: 48px;
max-height: 48px;
@ -1450,6 +1274,7 @@ Focus FOC: #ff0084
min-width: 6rem;
}
.item-field-label-long {
margin-top: 4px;
flex-grow:1;
max-width: 8rem;
min-width: 8rem;
@ -1469,29 +1294,3 @@ Focus FOC: #ff0084
min-width:2rem;
max-width: 2rem;
}
.dice-pool-stack {
flex: 1 1 5rem;
display: flex !important;
flex-grow: 0;
justify-content: flex-start;
}
.dice-pool-label {
margin-left: 4px;
}
.dice-pool-div {
border-left: 4px;
border-radius: 2px;
margin-bottom: 1rem;
background-color: #403f3e40;
}
.dice-pool-image {
border: 0;
margin-left: 4px;
min-width: 48px;
min-height: 48px;
max-width: 48px;
max-height: 48px;
flex-grow: 0;
}

View File

@ -6,6 +6,12 @@
"gridDistance": 5,
"gridUnits": "m",
"languages": [
{
"lang": "en",
"name": "English",
"path": "lang/en.json",
"flags": {}
}
],
"authors": [
{

View File

@ -312,6 +312,7 @@
},
"money": {
"value": 0,
"abbreviation": "",
"quantity": 0,
"weight": 0,
"description": ""

View File

@ -0,0 +1,34 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
<li class="flexrow">
<label class="item-field-label-long">Equipped</label>
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,48 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Type</label>
<select class="item-field-label-long" type="text" name="system.equiptype" value="{{system.equiptype}}" data-dtype="String">
{{#select system.equiptype}}
{{> systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs}}
{{/select}}
</select>
</li>
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
<li class="flexrow">
<label class="item-field-label-long">Quantity</label>
<input type="text" class="item-field-label-short" name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Equipped</label>
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,50 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Value</label>
<input type="text" class="item-field-label-short" name="system.value" value="{{system.value}}" data-dtype="Number"/>
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Quantity</label>
<input type="text" class="item-field-label-short" name="system.quantity" value="{{system.quantity}}" data-dtype="Number"/>
</li>
<li class="flexrow">
</li>
<li class="flexrow">
<label class="item-field-label-long">Abbreviation</label>
<input type="text" class="item-field-label-short" name="system.abbreviation" value="{{system.abbreviation}}" data-dtype="String"/>
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Weight</label>
<input type="text" class="item-field-label-short" name="system.weight" value="{{system.weight}}" data-dtype="Number"/>
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,34 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
<li class="flexrow">
<label class="item-field-label-long">Equipped</label>
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,41 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Attribute</label>
<select class="item-field-label-long" type="text" name="system.attribute" value="{{system.attribute}}" data-dtype="String">
{{#select system.attribute}}
{{> systems/fvtt-avd12/templates/items/partial-options-attributes.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow">
<label class="item-field-label-long">Level</label>
<input type="text" class="item-field-label-short" name="system.value" value="{{system.value}}" data-dtype="Number"/>
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -0,0 +1,41 @@
<form class="{{cssClass}}" autocomplete="off">
<header class="sheet-header">
<img class="item-sheet-img" src="{{img}}" data-edit="img" title="{{name}}"/>
<div class="header-fields">
<h1 class="charname"><input name="name" type="text" value="{{name}}" placeholder="Name"/></h1>
</div>
</header>
{{> systems/fvtt-avd12/templates/items/partial-item-nav.hbs}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-avd12/templates/items/partial-item-description.hbs}}
<div class="tab details" data-group="primary" data-tab="details">
<div class="tab" data-group="primary">
<ul>
<li class="flexrow">
<label class="item-field-label-long">Type</label>
<select class="item-field-label-long" type="text" name="system.spelltype" value="{{system.spelltype}}" data-dtype="String">
{{#select system.spelltype}}
{{> systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow">
<label class="item-field-label-long">Level</label>
<input type="text" class="item-field-label-short" name="system.value" value="{{system.value}}" data-dtype="Number"/>
</li>
</ul>
</div>
</div>
</section>
</form>

View File

@ -18,29 +18,90 @@
<div class="tab" data-group="primary">
<ul>
<li class="flexrow"><label class="item-field-label-long">Weapon type</label>
<select class="competence-base flexrow" type="text" name="system.weapontype" value="{{system.weapontype}}" data-dtype="String">
{{#select system.weapontype}}
{{> systems/fvtt-avd12/templates/items/partial-options-weapon-types.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="item-field-label-long">Weapon category</label>
<select class="competence-base flexrow" type="text" name="system.category" value="{{system.category}}" data-dtype="String">
<li class="flexrow">
<label class="item-field-label-long">Weapon category</label>
<select class="item-field-label-long" type="text" name="system.category" value="{{system.category}}" data-dtype="String">
{{#select system.category}}
{{> systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs}}
{{/select}}
</select>
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Weapon type</label>
<select class="item-field-label-long" type="text" name="system.weapontype" value="{{system.weapontype}}" data-dtype="String">
{{#select system.weapontype}}
{{> systems/fvtt-avd12/templates/items/partial-options-weapon-types.hbs}}
{{/select}}
</select>
</li>
{{> systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs}}
<li class="flexrow"><label class="item-field-label-long">Min Range</label>
<input type="text" class="right" name="system.minrange" value="{{system.minrange}}" data-dtype="Number"/>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Range
</h3>
</li>
<li class="flexrow"><label class="generic-label">Max Range</label>
<input type="text" class="right" name="item-field-label-long" value="{{system.maxrange}}" data-dtype="Number"/>
<li class="flexrow">
<label class="item-field-label-long">Min Range</label>
<input type="text" class="item-field-label-short" name="system.minrange" value="{{system.minrange}}" data-dtype="Number"/>
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Max Range</label>
<input type="text" class="item-field-label-short" name="system.maxrange" value="{{system.maxrange}}" data-dtype="Number"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Throw Range</label>
<input type="text" class="item-field-label-short" name="system.throwrange" value="{{system.throwrange}}" data-dtype="Number"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Magical</label>
<input type="checkbox" class="item-field-label-short" name="system.magical" {{checked system.magical}} />
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Blackened Iron</label>
<input type="checkbox" class="item-field-label-short" name="system.blackenediron" {{checked system.blackenediron}} />
</li>
<li class="flexrow">
<label class="item-field-label-long">Silvered</label>
<input type="checkbox" class="item-field-label-short" name="system.silvered" {{checked system.silvered}} />
<label class="item-field-label-short">&nbsp;</label>
<label class="item-field-label-long">Equipped</label>
<input type="checkbox" class="item-field-label-short" name="system.equipped" {{checked system.equipped}} />
</li>
<li class="flexrow">
<h3 class="item-field-label-long">Damages</h3>
</li>
<li class="flexrow">
{{#each system.damages as |damage key|}}
<div class="flexcol">
<label class="item-field-label-long">{{upperFirst key}}</label>
<div class="flexrow">
<label class="item-field-label-short">Type</label>
<input type="text" class="item-field-label-short" name="system.damages.{{key}}.damagetype" value="{{damage.damagetype}}" data-dtype="Number"/>
</div>
<div class="flexrow">
<label class="item-field-label-short">Dice</label>
<input type="text" class="item-field-label-short" name="system.damages.{{key}}.dice" value="{{damage.dice}}" data-dtype="Number"/>
</div>
<div class="flexrow">
<label class="item-field-label-short">Bonus</label>
<input type="text" class="item-field-label-short" name="system.damages.{{key}}.bonus" value="{{damage.bonus}}" data-dtype="Number"/>
</div>
</div>
{{/each}}
</li>
</ul>

View File

@ -4,20 +4,22 @@
</label>
<input
type='text'
class='padd-right'
class='item-field-label-short'
name='system.focuspointsbonus'
value="{{system.focuspointsbonus}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Focus Regen Bonus
</label>
<input
type='text'
class='padd-right'
class='item-field-label-short'
name='system.focusregenbonus'
value="{{system.focusregenbonus}}"
data-dtype='Number'
@ -30,9 +32,123 @@
</label>
<input
type='text'
class='padd-right'
class='item-field-label-short'
name='system.burnchancebonus'
value="{{system.burnchancebonus}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Mitigations
</h3>
</li>
<li class='flexrow'>
{{#each system.mitigation as |mitigation key|}}
<div>
<label class='item-field-label-short'>
{{upperFirst key}}
</label>
<input
type='text'
class='item-field-label-short padd-right'
name="system.mitigation.{{key}}.value"
value="{{mitigation.value}}"
data-dtype='Number'
/>
<label>
&nbsp;
</label>
</div>
{{/each}}
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Bonus
</h3>
</li>
<li class='flexrow'>
{{#each system.bonus as |bonus key|}}
<div>
<label class='item-field-label-short'>
{{upperFirst key}}
</label>
<input
type='text'
class='item-field-label-short padd-right'
name="system.bonus.{{key}}.value"
value="{{bonus.value}}"
data-dtype='Number'
/>
<label>
&nbsp;
</label>
</div>
{{/each}}
</li>
<li class='flexrow'>
<h3 class='item-field-label-long'>
Various
</h3>
</li>
<li class='flexrow'>
<label class='item-field-label-long'>
Weight
</label>
<input
type='text'
class='item-field-label-short'
name='system.weight'
value="{{system.weight}}"
data-dtype='Number'
/>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Cost
</label>
<input
type='text'
class='item-field-label-short'
name='system.cost'
value="{{system.cost}}"
data-dtype='Number'
/>
</li>
<li class='flexrow'>
<label class='item-field-label-long'>
Health
</label>
<input
type='text'
class='item-field-label-short'
name='system.health'
value="{{system.health}}"
data-dtype='Number'
/>
<label class='item-field-label-short'>
&nbsp;
</label>
<label class='item-field-label-long'>
Move speed
</label>
<input
type='text'
class='item-field-label-short'
name='system.movespeed'
value="{{system.movespeed}}"
data-dtype='Number'
/>
</li>

View File

@ -0,0 +1,5 @@
<option value="might">Might</option>
<option value="agility">Agility</option>
<option value="willpower">Willpower</option>
<option value="knowledge">Knowledge</option>
<option value="social">Social</option>

View File

@ -0,0 +1,2 @@
<option value="cloth">Clothes</option>
<option value="misc">Misc</option>

View File

@ -0,0 +1,5 @@
<option value="might">Might</option>
<option value="agility">Agility</option>
<option value="willpower">Willpower</option>
<option value="knowledge">Knowledge</option>
<option value="social">Social</option>

View File

@ -1,4 +1,9 @@
<option value="ranged">Ranged</option>
<option value="blunt">Blunt</option>
<option value="slash">Slash</option>
<option value="pierce">Pierce</option>
<option value="unarmed">Unarmed</option>
<option value="light1h">Light - 1 Handed</option>
<option value="heavy1h">Heavy - 1 Handed</option>
<option value="light2h">Light - 2 Handed</option>
<option value="heavy2h">Heavy - 2 Handed</option>
<option value="ulightranged">Ultra Light - Ranged</option>
<option value="lightranged">Light - Ranged</option>
<option value="heavyranged">Heavy - Ranged</option>
<option value="uheavyranged">Ultra Heavy - Ranged</option>