ENH: Default HD, compute movement for GM
parent
d884e8323c
commit
97f7126835
|
@ -32,6 +32,7 @@ export class OseEntityTweaks extends FormApplication {
|
||||||
if (this.object.data.type === 'character') {
|
if (this.object.data.type === 'character') {
|
||||||
data.isCharacter = true;
|
data.isCharacter = true;
|
||||||
}
|
}
|
||||||
|
data.user = game.user;
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"loyalty": 0
|
"loyalty": 0
|
||||||
},
|
},
|
||||||
"hp": {
|
"hp": {
|
||||||
"hd": "",
|
"hd": "1d8",
|
||||||
"value": 20,
|
"value": 20,
|
||||||
"max": 20
|
"max": 20
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,105 +1,63 @@
|
||||||
<form autocomplete="off">
|
<form autocomplete="off">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="spellcaster">{{localize "OSE.Spellcaster"}}</label>
|
<label for="spellcaster">{{localize "OSE.Spellcaster"}}</label>
|
||||||
<div class="form-fields">
|
<div class="form-fields">
|
||||||
<input
|
<input type="checkbox" name="data.spells.enabled" id="spellcaster" {{checked
|
||||||
type="checkbox"
|
data.spells.enabled}} />
|
||||||
name="data.spells.enabled"
|
|
||||||
id="spellcaster"
|
|
||||||
{{checked
|
|
||||||
data.spells.enabled}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label for="retainer">{{localize "OSE.Retainer"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label for="retainer">{{localize "OSE.Retainer"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="checkbox"
|
<input type="checkbox" name="data.retainer.enabled" id="retainer" {{checked
|
||||||
name="data.retainer.enabled"
|
data.retainer.enabled}} />
|
||||||
id="retainer"
|
|
||||||
{{checked
|
|
||||||
data.retainer.enabled}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label>{{localize "OSE.InitiativeBonus"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label>{{localize "OSE.InitiativeBonus"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="text"
|
<input type="text" name="data.initiative.mod" id="initiative" value="{{data.initiative.mod}}"
|
||||||
name="data.initiative.mod"
|
data-dtype="Number" />
|
||||||
id="initiative"
|
|
||||||
value="{{data.initiative.mod}}"
|
|
||||||
data-dtype="Number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{#if (eq this.type 'character')}}
|
</div>
|
||||||
<div class="form-group">
|
{{#if (eq this.type 'character')}}
|
||||||
<label>{{localize "OSE.ExperienceBonus"}} (%)</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label>{{localize "OSE.ExperienceBonus"}} (%)</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="text"
|
<input type="text" name="data.details.xp.bonus" id="experience" value="{{data.details.xp.bonus}}" />
|
||||||
name="data.details.xp.bonus"
|
|
||||||
id="experience"
|
|
||||||
value="{{data.details.xp.bonus}}"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label>{{localize "OSE.MeleeBonus"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label>{{localize "OSE.MeleeBonus"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="text"
|
<input type="text" name="data.thac0.mod.melee" id="melee" value="{{data.thac0.mod.melee}}" data-dtype="Number" />
|
||||||
name="data.thac0.mod.melee"
|
|
||||||
id="melee"
|
|
||||||
value="{{data.thac0.mod.melee}}"
|
|
||||||
data-dtype="Number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label>{{localize "OSE.MissileBonus"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label>{{localize "OSE.MissileBonus"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="text"
|
<input type="text" name="data.thac0.mod.missile" id="missile" value="{{data.thac0.mod.missile}}"
|
||||||
name="data.thac0.mod.missile"
|
data-dtype="Number" />
|
||||||
id="missile"
|
|
||||||
value="{{data.thac0.mod.missile}}"
|
|
||||||
data-dtype="Number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label>{{localize "OSE.Encumbrance"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label>{{localize "OSE.Encumbrance"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="text"
|
<input type="text" name="data.encumbrance.max" id="encumbrance" value="{{data.encumbrance.max}}"
|
||||||
name="data.encumbrance.max"
|
data-dtype="Number" />
|
||||||
id="encumbrance"
|
|
||||||
value="{{data.encumbrance.max}}"
|
|
||||||
data-dtype="Number"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
</div>
|
||||||
<label for="movementAuto">{{localize "OSE.Setting.MovementAuto"}}</label>
|
<div class="form-group">
|
||||||
<div class="form-fields">
|
<label for="movementAuto">{{localize "OSE.Setting.MovementAuto"}}</label>
|
||||||
<input
|
<div class="form-fields">
|
||||||
type="checkbox"
|
<input type="checkbox" name="data.config.movementAuto" id="movementAuto" {{checked
|
||||||
name="data.config.movementAuto"
|
data.config.movementAuto}} {{#unless user.isGM}}disabled{{/unless}} />
|
||||||
id="movementAuto"
|
|
||||||
{{checked
|
|
||||||
data.config.movementAuto}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
</div>
|
||||||
<footer class="sheet-footer">
|
{{/if}}
|
||||||
<button type="submit">
|
<footer class="sheet-footer">
|
||||||
<i class="fas fa-save"></i>{{localize "Save Changes"}}
|
<button type="submit">
|
||||||
</button>
|
<i class="fas fa-save"></i>{{localize "Save Changes"}}
|
||||||
</footer>
|
</button>
|
||||||
</form>
|
</footer>
|
||||||
|
</form>
|
Loading…
Reference in New Issue