Fix weapons

This commit is contained in:
LeRatierBretonnien 2023-04-10 00:01:36 +02:00
parent 2da3d19dbe
commit 606271e725
3 changed files with 40 additions and 10 deletions

View File

@ -100,7 +100,7 @@
"styles": [ "styles": [
"styles/simple.css" "styles/simple.css"
], ],
"version": "10.0.14", "version": "10.0.15",
"compatibility": { "compatibility": {
"minimum": "10", "minimum": "10",
"verified": "10", "verified": "10",
@ -108,7 +108,7 @@
}, },
"title": "Dark Stars RPG", "title": "Dark Stars RPG",
"manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/raw/branch/main/system.json", "manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/raw/branch/main/system.json",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/archive/fvtt-dark-stars-v10.0.14.zip", "download": "https://www.uberwald.me/gitea/uberwald/fvtt-dark-stars/archive/fvtt-dark-stars-v10.0.15.zip",
"url": "https://www.uberwald.me/gitea/uberwald/", "url": "https://www.uberwald.me/gitea/uberwald/",
"background": "images/ui/dark_stars_welcome_page.webp", "background": "images/ui/dark_stars_welcome_page.webp",
"id": "fvtt-dark-stars" "id": "fvtt-dark-stars"

View File

@ -379,8 +379,15 @@
"maxrange": "", "maxrange": "",
"sp": 0, "sp": 0,
"cost": 0, "cost": 0,
"size": 0, "size": "",
"skillbonus": "", "skillbonus": "",
"incendiary": false,
"armourdestruction": false,
"disablesystems": false,
"fatiguedamage": false,
"specialffect": false,
"guidedweapon": false,
"ammotype": "",
"equipped": false, "equipped": false,
"description": "" "description": ""
} }

View File

@ -23,7 +23,7 @@
<select class="item-field-label-vlong" type="text" name="system.weapontype" value="{{system.weapontype}}" data-dtype="String"> <select class="item-field-label-vlong" type="text" name="system.weapontype" value="{{system.weapontype}}" data-dtype="String">
{{#select system.weapontype}} {{#select system.weapontype}}
{{#each config.weapontypes as |type key|}} {{#each config.weapontypes as |type key|}}
<option value="{{key.name}}">{{type}}</option> <option value="{{key}}">{{type}}</option>
{{/each}} {{/each}}
{{/select}} {{/select}}
</select> </select>
@ -71,7 +71,7 @@
<select class="item-field-label-long" type="text" name="system.effectiverange" value="{{system.effectiverange}}" data-dtype="Number"> <select class="item-field-label-long" type="text" name="system.effectiverange" value="{{system.effectiverange}}" data-dtype="Number">
{{#select system.effectiverange}} {{#select system.effectiverange}}
{{#each config.range as |type key|}} {{#each config.range as |type key|}}
<option value="{{key.name}}">{{type}}</option> <option value="{{key}}">{{type}}</option>
{{/each}} {{/each}}
{{/select}} {{/select}}
</select> </select>
@ -81,7 +81,7 @@
<select class="item-field-label-long" type="text" name="system.maxrange" value="{{system.maxrange}}" data-dtype="Number"> <select class="item-field-label-long" type="text" name="system.maxrange" value="{{system.maxrange}}" data-dtype="Number">
{{#select system.maxrange}} {{#select system.maxrange}}
{{#each config.range as |type key|}} {{#each config.range as |type key|}}
<option value="{{key.name}}">{{type}}</option> <option value="{{key}}">{{type}}</option>
{{/each}} {{/each}}
{{/select}} {{/select}}
</select> </select>
@ -91,15 +91,38 @@
<input type="text" class="input-numeric-short padd-right" name="system.sp" value="{{system.sp}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="system.sp" value="{{system.sp}}" data-dtype="Number"/>
</li> </li>
<li class="flexrow"><label class="item-field-label-vlong">Size (-1 for non applicable)</label> <li class="flexrow"><label class="item-field-label-vlong">Size </label>
<input type="text" class="input-numeric-short padd-right" name="system.size" value="{{system.size}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="system.size" value="{{system.size}}" data-dtype="String"/>
</li> </li>
<li class="flexrow"><label class="item-field-label-long">Equipped ?</label> <li class="flexrow"><label class="item-field-label-vlong">Ammo type </label>
<input type="text" class="item-field-label-long padd-right" name="system.ammotype" value="{{system.ammotype}}" data-dtype="String"/>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Incendiary ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.incendiary" {{checked system.incendiary}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Armour destruction ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.armourdestruction" {{checked system.armourdestruction}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Disable system ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.disablesystems" {{checked system.disablesystems}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Fatigue damage ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.fatiguedamage" {{checked system.fatiguedamage}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Special effect ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.specialffect" {{checked system.specialffect}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Guided weapon ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.guidedweapon" {{checked system.guidedweapon}}/></label>
</li>
<li class="flexrow"><label class="item-field-label-vlong">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked system.equipped}}/></label> <label class="attribute-value checkbox"><input type="checkbox" name="system.equipped" {{checked system.equipped}}/></label>
</li> </li>
<li class="flexrow"><label class="item-field-label-long">Cost</label> <li class="flexrow"><label class="item-field-label-vlong">Cost</label>
<input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{system.cost}}" data-dtype="Number"/> <input type="text" class="input-numeric-short padd-right" name="system.cost" value="{{system.cost}}" data-dtype="Number"/>
</li> </li>