Add vehicles item

This commit is contained in:
sladecraven 2022-08-03 18:52:24 +02:00
parent 6479996312
commit 76c8cde3d9
14 changed files with 797 additions and 36 deletions

View File

@ -451,7 +451,8 @@ export class PegasusItemSheet extends ItemSheet {
}
if (this.object.type == 'weapon' || this.object.type == 'armor' || this.object.type == 'shield'
|| this.object.type == 'equipment') {
|| this.object.type == 'equipment' || this.object.type == 'vehiclemodule'
|| this.object.type == 'vehicleweaponmodule') {
let data = event.dataTransfer.getData('text/plain');
if (data) {
let dataItem = JSON.parse(data);

View File

@ -63,7 +63,7 @@ Hooks.once("init", async function () {
// Register sheet application classes
Actors.unregisterSheet("core", ActorSheet);
Actors.registerSheet("fvtt-pegasus", PegasusActorSheet, { types: ["character"], makeDefault: true });
Actors.registerSheet("fvtt-pegasus", PegasusNPCSheet, { types: ["npc"], makeDefault: false });
//Actors.registerSheet("fvtt-pegasus", PegasusVehicleSheet, { types: ["vehicle"], makeDefault: false });
Items.unregisterSheet("core", ItemSheet);
Items.registerSheet("fvtt-pegasus", PegasusItemSheet, { makeDefault: true });

View File

@ -180,9 +180,9 @@
"styles": [
"styles/simple.css"
],
"templateVersion": 96,
"templateVersion": 99,
"title": "Pegasus RPG",
"url": "https://www.uberwald.me/data/files/fvtt-pegasus-rpg",
"version": "0.6.7",
"version": "0.6.8",
"background" : "./images/ui/pegasus_welcome_page.webp"
}

View File

@ -1,6 +1,9 @@
{
"Actor": {
"types": ["character", "npc"],
"types": [
"character",
"vehicle"
],
"templates": {
"biodata": {
"biodata": {
@ -31,6 +34,7 @@
"racename": "",
"rolename": "",
"morality": 5,
"bonusselection": "",
"moralitythreshold": 0
}
},
@ -39,7 +43,7 @@
"abilities": [],
"subactors": [],
"statistics": {
"agi":{
"agi": {
"label": "Agility",
"abbrev": "AGI",
"level": 1,
@ -47,7 +51,7 @@
"mod": 0,
"col": 1
},
"mnd":{
"mnd": {
"label": "Mind",
"abbrev": "MND",
"level": 1,
@ -55,7 +59,7 @@
"col": 1,
"mod": 0
},
"soc":{
"soc": {
"label": "Social",
"abbrev": "SOC",
"level": 1,
@ -63,7 +67,7 @@
"col": 1,
"mod": 0
},
"str":{
"str": {
"label": "Strength",
"abbrev": "STR",
"level": 1,
@ -71,7 +75,7 @@
"col": 1,
"mod": 0
},
"phy":{
"phy": {
"label": "Physique",
"abbrev": "PHY",
"level": 1,
@ -79,7 +83,7 @@
"col": 1,
"mod": 0
},
"com":{
"com": {
"label": "Combat",
"abbrev": "COM",
"level": 1,
@ -87,7 +91,7 @@
"col": 2,
"mod": 0
},
"def":{
"def": {
"label": "Defence",
"abbrev": "DEF",
"level": 1,
@ -95,7 +99,7 @@
"col": 2,
"mod": 0
},
"stl":{
"stl": {
"label": "Stealth",
"abbrev": "STL",
"level": 1,
@ -103,7 +107,7 @@
"col": 2,
"mod": 0
},
"per":{
"per": {
"label": "Perception",
"abbrev": "PER",
"level": 1,
@ -111,7 +115,7 @@
"col": 2,
"mod": 0
},
"foc":{
"foc": {
"label": "Focus",
"abbrev": "FOC",
"level": 1,
@ -120,7 +124,7 @@
"mod": 0
}
},
"nrg": {
"nrg": {
"label": "NRG",
"type": "value",
"absolutemax": 0,
@ -129,6 +133,11 @@
"mod": 0,
"activated": 0
},
"ppp": {
"label": "Power Purchase Points (PPP)",
"availablePPP": 0,
"spentPPP": 0
},
"mr": {
"label": "MR (Initiative)",
"type": "dice",
@ -188,17 +197,152 @@
"npccore": {
"npctype": "",
"description": ""
},
"vehicle": {
"statistics": {
"fc": {
"label": "FC",
"abbrev": "fc",
"level": 0,
"currentlevel": 0
},
"man": {
"label": "FC",
"abbrev": "fc",
"dicevalue": "",
"level": 0,
"currentlevel": 0
},
"hr": {
"label": "HR",
"abbrev": "hr",
"level": 0,
"currentlevel": 0,
"size": 0
},
"pc": {
"label": "PC",
"abbrev": "pc",
"level": 0,
"currentlevel": 0,
"avgnrg": 0,
"curnrg": 0
},
"mr": {
"label": "MR",
"abbrev": "mr",
"level": 0,
"currentlevel": 0
},
"ad": {
"label": "A/D",
"abbrev": "ad",
"level": 0,
"currentlevel": 0,
"accmode": "",
"currentspeed": ""
}
},
"stun": {
"value": 0
},
"secondary": {
"traveldirection": "",
"moverange": "",
"is3Dcombat": false,
"elevation": 0,
"angle": ""
},
"modules": {
"activatedmoduleenergy": 0,
"vdp": 0,
"vehiculevalue": 0,
"availablevms": 0,
"vmsused": 0,
"totalcost": 0
},
"cargo": {
"cargocapacity": 0,
"totalcargocapacity": 0,
"cargoinformation": ""
},
"details": {
"crewcapacity": 0,
"totalcrew": 0,
"passengercapacity": 0,
"totalpassengers": 0,
"information": ""
},
"arcs": {
"frontarc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
},
"reararc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
},
"rightarc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
},
"leftarc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
},
"toparc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
},
"bottomarc": {
"topspeed": "",
"shieldlevel": 0,
"armourlevel": 0
}
}
}
},
"character": {
"templates": [ "biodata", "core" ]
"templates": [
"biodata",
"core"
]
},
"npc": {
"templates": [ "npccore" ]
}
"vehicle": {
"templates": [
"vehicle"
]
}
},
"Item": {
"types": [ "race", "role", "ability", "specialisation", "perk", "power" , "armor", "shield", "equipment", "weapon", "effect", "money", "virtue", "vice"],
"types": [
"race",
"role",
"ability",
"specialisation",
"perk",
"power",
"armor",
"shield",
"equipment",
"weapon",
"effect",
"money",
"virtue",
"vice",
"vehiclehull",
"powercoremodule",
"mobilitymodule",
"combatmodule",
"vehiclemodule",
"vehicleweaponmodule",
"propulsionmodule"
],
"effect": {
"type": "",
"genre": "",
@ -209,7 +353,7 @@
"statdice": false,
"bonusdice": false,
"weapondamage": false,
"hindrance" : false,
"hindrance": false,
"resistedby": "",
"recoveryroll": false,
"recoveryrollstat": "",
@ -345,9 +489,9 @@
},
"status": "",
"nbuse": "",
"used1":false,
"used2":false,
"used3":false
"used1": false,
"used2": false,
"used3": false
},
"power": {
"rollneeded": false,
@ -376,7 +520,7 @@
"locationprotected": "",
"effects": [],
"activated": false,
"description":""
"description": ""
},
"shield": {
"deftype": "",
@ -387,7 +531,7 @@
"equipped": false,
"effects": [],
"activated": false,
"description":""
"description": ""
},
"equipment": {
"type": "",
@ -407,13 +551,13 @@
"containercapacity": 0,
"containerid": "",
"threatlevel": 0,
"description":""
"description": ""
},
"money" : {
"money": {
"value": 0,
"quantity": 0,
"weight": 0,
"idr":"",
"idr": "",
"description": ""
},
"weapon": {
@ -430,6 +574,7 @@
"enhancedstat": "",
"enhancedlevel": 0,
"damagetype": "",
"itemsize": 0,
"damagetypelevel": 0,
"vehicledamagetype": "",
"vehicledamagetypelevel": 0,
@ -439,6 +584,64 @@
"effects": [],
"activated": false,
"description": ""
},
"vehiclehull": {
"size": 0,
"hulltype": "",
"hr": 0,
"man": 0,
"vms": 0
},
"powercoremodule": {
"coretype": "",
"pc": 0,
"nrg": 0
},
"mobilitymodule": {
"vehiclecategory": "",
"quality": "",
"mr": "",
"ts_f": "",
"ts_s": "",
"ts_r": "",
"man": ""
},
"propulsionmodule": {
"quality": "",
"ad": ""
},
"combatmodule": {
"combattype": "",
"fc": ""
},
"vehiclemodule": {
"category": "",
"location": "",
"activated": false,
"nrg": 0,
"nrgbonus": 0,
"effects": [],
"arccoverage": "",
"armourdicevalue": "",
"shielddicevalue": "",
"securitydicevalue": "",
"range": "",
"idr": ""
},
"vehicleweaponmodule": {
"location": "",
"weaponsize": 0,
"space": 0,
"activated": false,
"nrg": 0,
"effects": [],
"damagedicevalue": "",
"damagetype": "",
"aoe": "",
"range": "",
"turret": "",
"linkedweapon": "",
"idr": ""
}
}
}

View File

@ -393,6 +393,18 @@
data-dtype="Number" />
<span class="small-label padd-right packed-left"> / {{data.nrg.absolutemax}}</span>
</li>
<li class="item flexrow list-item" data-key="nrg">
<span class="stat-label flexrow" name="nrg">
<h4>Power Purchase Points (PPP)</h4>
</span>
<span class="small-label padd-right packed-left">Available PPP</span><input type="text"
class="padd-right input-numeric-short" name="data.ppp.available" value="{{data.ppp.available}}"
data-dtype="Number" />
&nbsp;&nbsp;
<span class="small-label padd-right packed-left">Spent PPP</span><input type="text"
class="padd-right input-numeric-short" name="data.ppp.spent" value="{{data.ppp.spent}}"
data-dtype="Number" />
</li>
</ul>
<ul class="stat-list alternate-list">
@ -1007,6 +1019,10 @@
<label class="short-label">Character Development Points Total (CDP total) : </label>
<input type="text" class="" name="data.biodata.cdp" value="{{data.biodata.cdp}}" data-dtype="Number" />
</li>
<li class="flexrow">
<label class="short-label">Bonus selection : </label>
<input type="text" class="" name="data.biodata.bonusselection" value="{{data.biodata.bonusselection}}" data-dtype="String" />
</li>
<li class="flexrow">
<label class="short-label">Morality : </label>
<input type="text" class="" name="data.biodata.morality" value="{{data.biodata.morality}}" data-dtype="Number" />

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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Type</label>
<select class="competence-base flexrow" type="text" name="data.combattype" value="{{data.combattype}}" data-dtype="String">
{{#select data.combattype}}
<option value="civilian">Civilian</option>
<option value="poorcombat">Poor Combat System</option>
<option value="standardcombat">Standard Combat System</option>
<option value="superiorcombat">Superior Combat System</option>
<option value="military">Military grade</option>
<option value="superiormilitary">Superior Military grade</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">FC</label>
<select class="competence-base flexrow" type="text" name="data.fc" value="{{data.fc}}" data-dtype="String">
{{#select data.fc}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,93 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Vehicle category</label>
<select class="competence-base flexrow" type="text" name="data.vehiclecategory" value="{{data.vehiclecategory}}" data-dtype="String">
{{#select data.vehiclecategory}}
<option value="wheeled">Wheeled</option>
<option value="walker">Walker</option>
<option value="aircraft">Aircraft</option>
<option value="starship">Starship</option>
<option value="vtol">VTOL</option>
<option value="poweredboat">Powered Boat</option>
<option value="sailboat">Sail/Oar Boat</option>
<option value="submersibme">Submersible</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Quality</label>
<select class="competence-base flexrow" type="text" name="data.quality" value="{{data.quality}}" data-dtype="String">
{{#select data.quality}}
<option value="poor">Poor</option>
<option value="standard">Standard</option>
<option value="luxury">Luxury</option>
<option value="superior">Superior</option>
<option value="oars">Oars</option>
<option value="Poorsails">Poor sails</option>
<option value="luxurysails">Luxury Sails</option>
<option value="oarspoorsails">Oars & Poor Sails</option>
<option value="oarsluxurysails">Oars & Luxury Sails</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">MR</label>
<select class="competence-base flexrow" type="text" name="data.mr" value="{{data.mr}}" data-dtype="String">
{{#select data.mr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">MAN</label>
<select class="competence-base flexrow" type="text" name="data.man" value="{{data.man}}" data-dtype="String">
{{#select data.man}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Top speed - Front</label>
<select class="competence-base flexrow" type="text" name="data.ts_f" value="{{data.ts_f}}" data-dtype="String">
{{#select data.ts_f}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Top speed - Left/Tight/Top/Bottom</label>
<select class="competence-base flexrow" type="text" name="data.ts_s" value="{{data.ts_s}}" data-dtype="String">
{{#select data.ts_s}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Top speed - Rear</label>
<select class="competence-base flexrow" type="text" name="data.ts_r" value="{{data.ts_r}}" data-dtype="String">
{{#select data.ts_r}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-vehicle-speed.html notapplicable=true}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,45 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Power core type</label>
<select class="competence-base flexrow" type="text" name="data.coretype" value="{{data.coretype}}" data-dtype="String">
{{#select data.coretype}}
<option value="small">Small</option>
<option value="standard">Standard</option>
<option value="luxury">Luxury</option>
<option value="enhanced">Enhanced</option>
<option value="superior">Superior</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">PC</label>
<select class="competence-base flexrow" type="text" name="data.pc" value="{{data.pc}}" data-dtype="String">
{{#select data.pc}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">NRG</label>
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,39 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Quality</label>
<select class="competence-base flexrow" type="text" name="data.quality" value="{{data.quality}}" data-dtype="String">
{{#select data.quality}}
<option value="poor">Poor</option>
<option value="standard">Standard</option>
<option value="luxury">Luxury</option>
<option value="superior">Superior</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">A/D</label>
<select class="competence-base flexrow" type="text" name="data.mr" value="{{data.mr}}" data-dtype="String">
{{#select data.mr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,65 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Hull type</label>
<select class="competence-base flexrow" type="text" name="data.hulltype" value="{{data.hulltype}}" data-dtype="String">
{{#select data.hulltype}}
<option value="tiny">Tiny</option>
<option value="small">Small</option>
<option value="average">Average</option>
<option value="large">Large</option>
<option value="huge">Huge</option>
<option value="colossal">Colossal</option>
<option value="titanic">Titanic</option>
<option value="enormous">Enormous</option>
<option value="massive">Massive</option>
<option value="gigantic">Gigantic</option>
<option value="immense">Immense</option>
<option value="humongous">Humongous</option>
<option value="gargantuan">Gargantuan</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Size</label>
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">HR</label>
<select class="competence-base flexrow" type="text" name="data.hr" value="{{data.hr}}" data-dtype="String">
{{#select data.hr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">MAN</label>
<select class="competence-base flexrow" type="text" name="data.man" value="{{data.man}}" data-dtype="String">
{{#select data.man}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">VMS</label>
<input type="text" class="" name="data.vms" value="{{data.vms}}" data-dtype="Number"/>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,116 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Category</label>
<select class="competence-base flexrow" type="text" name="data.category" value="{{data.category}}" data-dtype="String">
{{#select data.category}}
<option value="mobility">Mobility</option>
<option value="com">Com</option>
<option value="detect">Detect</option>
<option value="scrambler">Scrambler</option>
<option value="energy">Energy</option>
<option value="misc">Misc</option>
<option value="capfuel">Cap/Fuel</option>
<option value="repair">Repair</option>
<option value="software">Software</option>
<option value="targetting">Targetting</option>
<option value="shield">Shield</option>
<option value="armor">Armor</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Location</label>
<select class="competence-base flexrow" type="text" name="data.location" value="{{data.location}}" data-dtype="String">
{{#select data.location}}
<option value="front">Front</option>
<option value="left">Left</option>
<option value="rear">Rear</option>
<option value="right">Right</option>
<option value="top">Top</option>
<option value="bottom">Bottom</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Activated ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
</li>
<li class="flexrow"><label class="generic-label">NRG</label>
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Arc coverage</label>
<select class="competence-base flexrow" type="text" name="data.location" value="{{data.location}}" data-dtype="String">
{{#select data.location}}
<option value="none">None</option>
<option value="all">All</option>
<option value="front">Front</option>
<option value="left">Left</option>
<option value="rear">Rear</option>
<option value="right">Right</option>
<option value="top">Top</option>
<option value="bottom">Bottom</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Armour Dice Value</label>
<select class="competence-base flexrow" type="text" name="data.armourdicevalue" value="{{data.armourdicevalue}}" data-dtype="String">
{{#select data.armourdicevalue}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Shield Dice Value</label>
<select class="competence-base flexrow" type="text" name="data.shielddicevalue" value="{{data.shielddicevalue}}" data-dtype="String">
{{#select data.shielddicevalue}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Security Dice Value</label>
<select class="competence-base flexrow" type="text" name="data.securitydicevalue" value="{{data.securitydicevalue}}" data-dtype="String">
{{#select data.securitydicevalue}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="Number">
{{#select data.range}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -0,0 +1,131 @@
<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-pegasus-rpg/templates/partial-item-nav.html}}
{{!-- Sheet Body --}}
<section class="sheet-body">
{{> systems/fvtt-pegasus-rpg/templates/partial-item-description.html}}
<div class="tab details" data-group="primary" data-tab="details">
<ul>
<li class="flexrow"><label class="generic-label">Location</label>
<select class="competence-base flexrow" type="text" name="data.location" value="{{data.location}}" data-dtype="String">
{{#select data.location}}
<option value="front">Front</option>
<option value="left">Left</option>
<option value="rear">Rear</option>
<option value="right">Right</option>
<option value="top">Top</option>
<option value="bottom">Bottom</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Weapon size</label>
<input type="text" class="" name="data.size" value="{{data.size}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Space</label>
<input type="text" class="" name="data.space" value="{{data.space}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Activated ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.activated" {{checked data.activated}}/></label>
</li>
<li class="flexrow"><label class="generic-label">NRG</label>
<input type="text" class="" name="data.nrg" value="{{data.nrg}}" data-dtype="Number"/>
</li>
{{> systems/fvtt-pegasus-rpg/templates/partial-equipment-effects.html}}
<li class="flexrow"><label class="generic-label">Damage Dice Value</label>
<select class="competence-base flexrow" type="text" name="data.damagedicevalue" value="{{data.damagedicevalue}}" data-dtype="String">
{{#select data.damagedicevalue}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Damage Type</label>
<select class="competence-base flexrow" type="text" name="data.damagetype" value="{{data.damagetype}}" data-dtype="String">
{{#select data.damagetype}} None, Cr, Pi, Sl, EMP, Kin, Therm, Pi&Therm, Pi&EMP, Pi&Kin, Cr&Therm, Cr&EMP, Cr&Kin
<option value="none">None</option>
<option value="cr">Cr</option>
<option value="pi">Pi</option>
<option value="sl">Sl</option>
<option value="emp">EMP</option>
<option value="kin">Kin</option>
<option value="therm">Therm</option>
<option value="pitherm">Pi&Therm</option>
<option value="pikin">Pi&Kin</option>
<option value="crtherm"> Cr&Therm</option>
<option value="cremp"> Cr&EMP</option>
<option value="crkin"> Cr&Kin</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Optimal Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
{{#select data.range}}
{{> systems/fvtt-pegasus-rpg/templates/partial-options-range.html notapplicable=true}}
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">AoE</label>
<select class="competence-base flexrow" type="text" name="data.aoe" value="{{data.aoe}}" data-dtype="String">
{{#select data.aoe}}
<option value="none">None</option>
<option value="tz">TZ</option>
<option value="close">Close</option>
<option value="medium">Medium</option>
<option value="long">Long</option>
<option value="extreme">Extreme</option>
<option value="special">Special</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Turret</label>
<select class="competence-base flexrow" type="text" name="data.turret" value="{{data.turret}}" data-dtype="Number">
{{#select data.turret}} F Front, F Left, F Right, F Rear, F Up, F Down, T 180 Front, T 180 Left, T 180 Rear, T 180 Right, T 360
<option value="ffront">F Front</option>
<option value="fleft">F Left</option>
<option value="fright">F Right</option>
<option value="frear">F Rear</option>
<option value="fup">F Up</option>
<option value="fdown">F Down</option>
<option value="t180front">T 180 Front</option>
<option value="t180left">T 180 Left</option>
<option value="t180rear">T 180 Rear</option>
<option value="t180right">T 180 Right</option>
<option value="t360">T 360</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Linked weapon ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.linkedweapon" {{checked data.linkedweapon}}/></label>
</li>
<li class="flexrow"><label class="generic-label">IDR</label>
<select class="competence-base flexrow" type="text" name="data.idr" value="{{data.idr}}" data-dtype="String">
{{#select data.idr}}
{{{optionsDiceList}}}
{{/select}}
</select>
</li>
</ul>
</div>
</section>
</form>

View File

@ -37,6 +37,11 @@
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Item size</label>
<input type="text" class="" name="data.itemsize" value="{{data.itemsize}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="generic-label">Optimal Range</label>
<select class="competence-base flexrow" type="text" name="data.range" value="{{data.range}}" data-dtype="String">
{{#select data.range}}
@ -44,6 +49,7 @@
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Max Range</label>
<input type="text" class="" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
</li>
@ -58,7 +64,6 @@
<option value="long">Long</option>
<option value="extreme">Extreme</option>
<option value="special">Special</option>
{{{optionsDiceList}}}
{{/select}}
</select>
</li>

View File

@ -0,0 +1,6 @@
<option value="none">None</option>
<option value="crawling">Crawling</option>
<option value="slow">Slow</option>
<option value="average">Average</option>
<option value="fast">Fast</option>
<option value="extfast">Ext. Fast</option>