ENH: Monster tweaks
parent
579322181b
commit
7c8ca4ae1f
|
@ -2,6 +2,7 @@
|
||||||
"OSE.Edit": "Edit",
|
"OSE.Edit": "Edit",
|
||||||
"OSE.Delete": "Delete",
|
"OSE.Delete": "Delete",
|
||||||
"OSE.Add": "Add",
|
"OSE.Add": "Add",
|
||||||
|
"OSE.Ok": "Ok",
|
||||||
"OSE.Cancel": "Cancel",
|
"OSE.Cancel": "Cancel",
|
||||||
"OSE.Roll": "Roll",
|
"OSE.Roll": "Roll",
|
||||||
|
|
||||||
|
@ -63,7 +64,7 @@
|
||||||
"OSE.MovementEncounterShort": "ENC",
|
"OSE.MovementEncounterShort": "ENC",
|
||||||
"OSE.MovementOverland": "Overland Movement Rate",
|
"OSE.MovementOverland": "Overland Movement Rate",
|
||||||
"OSE.MovementOverlandShort": "OVE",
|
"OSE.MovementOverlandShort": "OVE",
|
||||||
"OSE.MovementShort": "MR",
|
"OSE.MovementShort": "MV",
|
||||||
"OSE.ArmorClass": "Armor Class",
|
"OSE.ArmorClass": "Armor Class",
|
||||||
"OSE.ArmorClassShort": "AC",
|
"OSE.ArmorClassShort": "AC",
|
||||||
"OSE.AscArmorClassShort": "AAC",
|
"OSE.AscArmorClassShort": "AAC",
|
||||||
|
|
|
@ -44,7 +44,24 @@ export class OseActor extends Actor {
|
||||||
|
|
||||||
rollAttack(attack, options={}) {
|
rollAttack(attack, options={}) {
|
||||||
const label = game.i18n.localize(`OSE.${attack}`);
|
const label = game.i18n.localize(`OSE.${attack}`);
|
||||||
const rollParts = ['1d20'];
|
const rollParts = ['1d20',];
|
||||||
|
|
||||||
|
const mods = this.computeModifiers();
|
||||||
|
if (attack == 'Missile') {
|
||||||
|
rollParts.push(
|
||||||
|
'+',
|
||||||
|
mods.dex.toString(),
|
||||||
|
'+',
|
||||||
|
this.data.data.thac0.mod.missile.toString()
|
||||||
|
);
|
||||||
|
} else if (attack == 'Melee') {
|
||||||
|
rollParts.push(
|
||||||
|
'+',
|
||||||
|
mods.str.toString(),
|
||||||
|
'+',
|
||||||
|
this.data.data.thac0.mod.melee.toString()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// Roll and return
|
// Roll and return
|
||||||
return OseDice.Roll({
|
return OseDice.Roll({
|
||||||
|
|
|
@ -89,7 +89,9 @@
|
||||||
border-top-left-radius: 80px;
|
border-top-left-radius: 80px;
|
||||||
box-shadow: 0 0 6px 1px $colorDark;
|
box-shadow: 0 0 6px 1px $colorDark;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
|
filter: brightness(0.9);
|
||||||
&.active {
|
&.active {
|
||||||
|
filter: none;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-shadow: none;
|
text-shadow: none;
|
||||||
|
@ -128,6 +130,10 @@
|
||||||
.attribute-value {
|
.attribute-value {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
.sep {
|
||||||
|
flex: 0 0 5px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.attribute-mod {
|
.attribute-mod {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -160,6 +166,9 @@
|
||||||
.attribute-value {
|
.attribute-value {
|
||||||
width: 45px;
|
width: 45px;
|
||||||
flex-grow: 0;
|
flex-grow: 0;
|
||||||
|
input {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,5 +5,19 @@
|
||||||
.editor {
|
.editor {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
|
.attributes .attribute.health {
|
||||||
|
min-width: 75px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.attribute-group {
|
||||||
|
.attacks-description {
|
||||||
|
margin: 2px;
|
||||||
|
padding: 0;
|
||||||
|
text-align: center;
|
||||||
|
label {
|
||||||
|
color: $colorTan;
|
||||||
|
font-size: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,9 +133,7 @@
|
||||||
"appearing": "",
|
"appearing": "",
|
||||||
"morale": 0
|
"morale": 0
|
||||||
},
|
},
|
||||||
"attacks": {
|
"attacks": ""
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Item": {
|
"Item": {
|
||||||
|
@ -155,7 +153,7 @@
|
||||||
"qualities": "",
|
"qualities": "",
|
||||||
"slow": false,
|
"slow": false,
|
||||||
"missile": true,
|
"missile": true,
|
||||||
"ranged": true,
|
"melee": true,
|
||||||
"cost": 0,
|
"cost": 0,
|
||||||
"equipped": false,
|
"equipped": false,
|
||||||
"weight": 0
|
"weight": 0
|
||||||
|
|
|
@ -43,6 +43,7 @@
|
||||||
name="data.thac0.mod.melee"
|
name="data.thac0.mod.melee"
|
||||||
id="melee"
|
id="melee"
|
||||||
value="{{data.thac0.mod.melee}}"
|
value="{{data.thac0.mod.melee}}"
|
||||||
|
data-dtype="Number"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -54,6 +55,7 @@
|
||||||
name="data.thac0.mod.missile"
|
name="data.thac0.mod.missile"
|
||||||
id="missile"
|
id="missile"
|
||||||
value="{{data.thac0.mod.missile}}"
|
value="{{data.thac0.mod.missile}}"
|
||||||
|
data-dtype="Number"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -121,8 +121,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="attribute">
|
<li class="attribute attack" data-attack="Attack">
|
||||||
<h4 class="attribute-name box-title" title="{{ localize 'OSE.Thac0' }}">{{ localize "OSE.Thac0" }}
|
<h4 class="attribute-name box-title" title="{{ localize 'OSE.Thac0' }}"><a>{{ localize "OSE.Thac0" }}</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="flexrow">
|
<div class="flexrow">
|
||||||
<div class="attribute-value">
|
<div class="attribute-value">
|
||||||
|
|
|
@ -9,6 +9,13 @@
|
||||||
<input name="data.hp.max" type="text" value="{{data.hp.max}}" data-dtype="Number" placeholder="10" />
|
<input name="data.hp.max" type="text" value="{{data.hp.max}}" data-dtype="Number" placeholder="10" />
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
<li class="attribute">
|
||||||
|
<h4 class="attribute-name box-title" title="{{localize 'OSE.HitDice'}}">{{ localize "OSE.HitDiceShort" }}
|
||||||
|
</h4>
|
||||||
|
<div class="attribute-value">
|
||||||
|
<input name="data.hp.hd" type="text" value="{{data.hp.hd}}" placeholder="0" data-dtype="String" />
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<li class="attribute">
|
<li class="attribute">
|
||||||
{{#if config.ascendingAC}}
|
{{#if config.ascendingAC}}
|
||||||
<h4 class="attribute-name box-title" title="{{ localize 'OSE.ArmorClass' }}">
|
<h4 class="attribute-name box-title" title="{{ localize 'OSE.ArmorClass' }}">
|
||||||
|
@ -33,14 +40,6 @@
|
||||||
data-dtype="Number" />
|
data-dtype="Number" />
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="attribute">
|
|
||||||
<h4 class="attribute-name box-title" title="{{localize 'OSE.Attacks'}}">{{ localize "OSE.AttacksShort" }}
|
|
||||||
</h4>
|
|
||||||
<div class="attribute-value">
|
|
||||||
<input name="data.att.value" type="text" value="{{data.att.value}}" placeholder="0"
|
|
||||||
data-dtype="Number" />
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
{{#if data.retainer.enabled}}
|
{{#if data.retainer.enabled}}
|
||||||
<li class="attribute">
|
<li class="attribute">
|
||||||
<h4 class="attribute-name box-title" title="{{ localize 'OSE.Loyalty' }}">{{ localize "OSE.LoyaltyShort" }}
|
<h4 class="attribute-name box-title" title="{{ localize 'OSE.Loyalty' }}">{{ localize "OSE.LoyaltyShort" }}
|
||||||
|
@ -65,13 +64,13 @@
|
||||||
<div class="flex3 panel inventory abilities">
|
<div class="flex3 panel inventory abilities">
|
||||||
<div>
|
<div>
|
||||||
<li class="item-titles flexrow panel-title">
|
<li class="item-titles flexrow panel-title">
|
||||||
<div class="item-name">{{localize 'OSE.panel.abilities'}} & {{localize 'OSE.panel.equipment'}}</div>
|
<div class="item-name">{{localize 'OSE.panel.abilities'}} & {{localize 'OSE.panel.equipment'}}</div>
|
||||||
<div class="item-controls">
|
<div class="item-controls">
|
||||||
{{#if owner}}
|
{{#if owner}}
|
||||||
<a class="item-control item-create" title='{{localize "OSE.Add"}}' data-type="choice"
|
<a class="item-control item-create" title='{{localize "OSE.Add"}}' data-type="choice"
|
||||||
data-choices="weapon,ability,armor,item"><i class="fas fa-plus"></i></a>
|
data-choices="weapon,ability,armor,item"><i class="fas fa-plus"></i></a>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<ol class="item-list resizable" data-base-size="240">
|
<ol class="item-list resizable" data-base-size="240">
|
||||||
{{#each abilities as |item|}}
|
{{#each abilities as |item|}}
|
||||||
|
@ -121,6 +120,10 @@
|
||||||
</div>
|
</div>
|
||||||
{{!-- Saving throws --}}
|
{{!-- Saving throws --}}
|
||||||
<div class="attribute-group">
|
<div class="attribute-group">
|
||||||
|
<div class="attacks-description">
|
||||||
|
<label>{{ localize "OSE.Attacks" }}</label>
|
||||||
|
<input name="data.att" type="text" value="{{data.att}}" placeholder="0" data-dtype="String" />
|
||||||
|
</div>
|
||||||
<ul class="attributes">
|
<ul class="attributes">
|
||||||
<li class="attribute saving-throw" data-save="death">
|
<li class="attribute saving-throw" data-save="death">
|
||||||
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.death.long' }}">
|
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.death.long' }}">
|
||||||
|
|
Loading…
Reference in New Issue