Data model change

This commit is contained in:
sladecraven 2022-07-24 18:43:32 +02:00
parent cc3c61375e
commit db3f10bfb1
4 changed files with 24 additions and 3 deletions

View File

@ -88,11 +88,11 @@
"styles": [ "styles": [
"styles/simple.css" "styles/simple.css"
], ],
"templateVersion": 3, "templateVersion": 4,
"title": "Crucible RPG", "title": "Crucible RPG",
"manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json", "manifest": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/raw/master/system.json",
"download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v0.1.3.zip", "download": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg/archive/fvtt-crucible-rpg-v0.1.4.zip",
"url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg", "url": "https://www.uberwald.me/gitea/public/fvtt-crucible-rpg",
"version": "0.1.3", "version": "0.1.4",
"background" : "./images/ui/crucible_welcome_page.webp" "background" : "./images/ui/crucible_welcome_page.webp"
} }

View File

@ -99,6 +99,7 @@
"skill": { "skill": {
"ability": "", "ability": "",
"armorpenalty": false, "armorpenalty": false,
"bonusdice": "",
"level": 0, "level": 0,
"background": 0, "background": 0,
"basic": 0, "basic": 0,
@ -140,6 +141,7 @@
"damage": "", "damage": "",
"range": "", "range": "",
"maxrange": "", "maxrange": "",
"minstr": 0,
"cost": 0, "cost": 0,
"equipped": false, "equipped": false,
"description": "" "description": ""

View File

@ -43,6 +43,22 @@
</select> </select>
</li> </li>
<li class="flexrow"><label class="generic-label">Bonus dice</label>
<select class="competence-base flexrow" type="text" name="data.bonusdice" value="{{data.bonusdice}}" data-dtype="String">
{{#select data.bonusdice}}
<option value="none">None</option>
<option value="1d6">1d6</option>
<option value="2d6">2d6</option>
<option value="3d6">3d6</option>
<option value="4d6">4d6</option>
<option value="5d6">5d6</option>
<option value="6d6">6d6</option>
<option value="7d6">7d6</option>
<option value="8d6">8d6</option>
{{/select}}
</select>
</li>
<li class="flexrow"><label class="generic-label">Background</label> <li class="flexrow"><label class="generic-label">Background</label>
<input type="text" class="" name="data.background" value="{{data.background}}" data-dtype="Number"/> <input type="text" class="" name="data.background" value="{{data.background}}" data-dtype="Number"/>
</li> </li>

View File

@ -47,6 +47,9 @@
<li class="flexrow"><label class="generic-label">Max range</label> <li class="flexrow"><label class="generic-label">Max range</label>
<input type="text" class="right" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/> <input type="text" class="right" name="data.maxrange" value="{{data.maxrange}}" data-dtype="String"/>
</li> </li>
<li class="flexrow"><label class="generic-label">Minimum strength</label>
<input type="text" class="input-numeric-short padd-right" name="data.minstr" value="{{data.minstr}}" data-dtype="Number"/>
</li>
<li class="flexrow"><label class="generic-label">Equipped ?</label> <li class="flexrow"><label class="generic-label">Equipped ?</label>
<label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label> <label class="attribute-value checkbox"><input type="checkbox" name="data.equipped" {{checked data.equipped}}/></label>