#Fix 78 : add role level
This commit is contained in:
parent
1bb869e715
commit
4065d46ffd
@ -443,7 +443,8 @@
|
|||||||
"specincrease": [],
|
"specincrease": [],
|
||||||
"perks": [],
|
"perks": [],
|
||||||
"perksrole": "",
|
"perksrole": "",
|
||||||
"description": ""
|
"description": "",
|
||||||
|
"rolelevel": 0
|
||||||
},
|
},
|
||||||
"ability": {
|
"ability": {
|
||||||
"affectedstat": "str",
|
"affectedstat": "str",
|
||||||
|
@ -16,15 +16,22 @@
|
|||||||
|
|
||||||
<div class="tab details" data-group="primary" data-tab="details">
|
<div class="tab details" data-group="primary" data-tab="details">
|
||||||
<ul>
|
<ul>
|
||||||
|
<li class="flexrow"><label class="generic-label">Role Level</label>
|
||||||
|
<input type="text" class="input-numeric-short padd-right" name="system.rolelevel" value="{{data.rolelevel}}"
|
||||||
|
data-dtype="Number" />
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
|
<li class="flexrow"><label class="generic-label">Stat increase 1</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.statincrease1" value="{{data.statincrease1}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.statincrease1" value="{{data.statincrease1}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.statincrease1}}
|
{{#select data.statincrease1}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
|
<li class="flexrow"><label class="generic-label">Stat increase 2</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.statincrease2" value="{{data.statincrease2}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.statincrease2" value="{{data.statincrease2}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.statincrease2}}
|
{{#select data.statincrease2}}
|
||||||
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
{{> systems/fvtt-pegasus-rpg/templates/partial-options-statistics.html notapplicable=false mr=false}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
@ -35,13 +42,16 @@
|
|||||||
<label class="generic-label">Role Ability</label>
|
<label class="generic-label">Role Ability</label>
|
||||||
</li>
|
</li>
|
||||||
<ul class="ul-level1">
|
<ul class="ul-level1">
|
||||||
<li class="flexrow"><div class="drop-specialability"><label>Drop Abilities here !</label></div>
|
<li class="flexrow">
|
||||||
|
<div class="drop-specialability"><label>Drop Abilities here !</label></div>
|
||||||
</li>
|
</li>
|
||||||
{{#each data.specialability as |ability idx|}}
|
{{#each data.specialability as |ability idx|}}
|
||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
<label name="system.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability" data-index="{{idx}}">{{ability.name}}</a></label>
|
<label name="system.specialability[{{idx}}].name"><a class="view-subitem" data-type="specialability"
|
||||||
|
data-index="{{idx}}">{{ability.name}}</a></label>
|
||||||
<div class="item-controls padd-left">
|
<div class="item-controls padd-left">
|
||||||
<a class="item-control delete-subitem padd-left" data-type="specialability" data-index="{{idx}}" title="Delete Ability"><i class="fas fa-trash"></i></a>
|
<a class="item-control delete-subitem padd-left" data-type="specialability" data-index="{{idx}}"
|
||||||
|
title="Delete Ability"><i class="fas fa-trash"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@ -53,14 +63,16 @@
|
|||||||
<li class="flexrow">
|
<li class="flexrow">
|
||||||
{{#each data.statincreasechoice as |stat idx|}}
|
{{#each data.statincreasechoice as |stat idx|}}
|
||||||
<label name="statchoice{{idx}}">{{stat.name}}</label>
|
<label name="statchoice{{idx}}">{{stat.name}}</label>
|
||||||
<label class="attribute-value checkbox"><input type="checkbox" class="stat-choice-flag" data-stat-idx="{{idx}}" {{checked stat.flag}}/></label>
|
<label class="attribute-value checkbox"><input type="checkbox" class="stat-choice-flag"
|
||||||
|
data-stat-idx="{{idx}}" {{checked stat.flag}} /></label>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="flexrow"><label class="generic-label">Role category for available perks</label>
|
<li class="flexrow"><label class="generic-label">Role category for available perks</label>
|
||||||
<select class="competence-base flexrow" type="text" name="system.perksrole" value="{{data.perksrole}}" data-dtype="String">
|
<select class="competence-base flexrow" type="text" name="system.perksrole" value="{{data.perksrole}}"
|
||||||
|
data-dtype="String">
|
||||||
{{#select data.perksrole}}
|
{{#select data.perksrole}}
|
||||||
<option value="agitator">Agitator</option>
|
<option value="agitator">Agitator</option>
|
||||||
<option value="defender">Defender</option>
|
<option value="defender">Defender</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user