ENH: Retainer

master
U~man 2020-07-11 18:59:17 +02:00
parent 6ff7192ba6
commit 4fa91f1759
3 changed files with 18 additions and 1 deletions

View File

@ -35,6 +35,8 @@
"OSE.Reaction": "Reaction",
"OSE.ReactionCheck": "Reaction Check",
"OSE.Retainer": "Retainer",
"OSE.RetainerWage": "Wage",
"OSE.RetainerUpkeep": "Upkeep",
"OSE.Appearing": "NA",
"OSE.Attack": "Attack",
"OSE.Encumbrance": "Encumbrance",

View File

@ -5,7 +5,9 @@
"common": {
"retainer": {
"enabled": false,
"loyalty": 0
"loyalty": 0,
"wage": 0,
"upkeep": 0
},
"hp": {
"hd": "1d8",

View File

@ -4,11 +4,24 @@
<input name="name" type="text" value="{{actor.name}}" placeholder="{{localize 'OSE.Name'}}" data-dtype="String" />
</h1>
<ul class="summary flexrow">
{{#if data.retainer.enabled}}
<li>
<input type="text" name="data.retainer.wage" value="{{data.retainer.wage}}" data-dtype="Number"
/>
<label>{{localize 'OSE.RetainerWage'}}</label>
</li>
<li>
<input type="text" name="data.retainer.upkeep" value="{{data.retainer.upkeep}}" data-dtype="Number"
/>
<label>{{localize 'OSE.RetainerUpkeep'}}</label>
</li>
{{else}}
<li>
<input type="text" name="data.details.title" value="{{data.details.title}}" data-dtype="String"
/>
<label>{{localize 'OSE.Title'}}</label>
</li>
{{/if}}
<li>
<input type="text" name="data.details.alignment" value="{{data.details.alignment}}" data-dtype="String"
/>