✨
This commit is contained in:
@@ -146,7 +146,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 400px;
|
height: 500px;
|
||||||
border-right: #5e0000;
|
border-right: #5e0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,7 +252,7 @@
|
|||||||
|
|
||||||
.vertLine {
|
.vertLine {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 416px;
|
height: 490px;
|
||||||
float: left;
|
float: left;
|
||||||
left: 216px;
|
left: 216px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
@@ -330,6 +330,7 @@
|
|||||||
border: none;
|
border: none;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
border-bottom-right-radius: 20px;
|
border-bottom-right-radius: 20px;
|
||||||
|
border-top-left-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.horLine {
|
.horLine {
|
||||||
@@ -337,7 +338,7 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
bottom: 411px;
|
bottom: 511px;
|
||||||
background-color: #5e0000;
|
background-color: #5e0000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,14 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculateDerivated(context) {
|
calculateDerivated(context) {
|
||||||
context.system.armorClass = 10+context.system.stats.defense;
|
context.system.phArmorClass = 10+context.system.stats.defense;
|
||||||
|
context.system.spArmorClass = 10+context.system.stats.defense;
|
||||||
|
if (context.system.defenseCategory == "Physical") {
|
||||||
|
context.system.phArmorClass += 2;
|
||||||
|
} else {
|
||||||
|
context.system.spArmorClass += 2;
|
||||||
|
}
|
||||||
|
|
||||||
context.system.speed = 30+5*context.system.stats.speed;
|
context.system.speed = 30+5*context.system.stats.speed;
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: 400px;
|
height: 500px;
|
||||||
border-right: #5e0000;
|
border-right: #5e0000;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .imgBox {
|
.pokemon.sheet.characterSheet .imgBox {
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .vertLine {
|
.pokemon.sheet.characterSheet .vertLine {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
height: 416px;
|
height: 490px;
|
||||||
float: left;
|
float: left;
|
||||||
left: 216px;
|
left: 216px;
|
||||||
bottom: 0px;
|
bottom: 0px;
|
||||||
@@ -282,13 +282,14 @@
|
|||||||
border: none;
|
border: none;
|
||||||
padding: 0px 10px;
|
padding: 0px 10px;
|
||||||
border-bottom-right-radius: 20px;
|
border-bottom-right-radius: 20px;
|
||||||
|
border-top-left-radius: 20px;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .horLine {
|
.pokemon.sheet.characterSheet .horLine {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 5px;
|
height: 5px;
|
||||||
bottom: 411px;
|
bottom: 511px;
|
||||||
background-color: #5e0000;
|
background-color: #5e0000;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet nav {
|
.pokemon.sheet.characterSheet nav {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.4",
|
"version": "0.1.5",
|
||||||
"id": "pokemon",
|
"id": "pokemon",
|
||||||
"title": "Pokémon TTRPG",
|
"title": "Pokémon TTRPG",
|
||||||
"description": "A Pokémon TTRPG",
|
"description": "A Pokémon TTRPG",
|
||||||
|
|||||||
BIN
system.zip
BIN
system.zip
Binary file not shown.
@@ -17,7 +17,8 @@
|
|||||||
"EXP": 0
|
"EXP": 0
|
||||||
},
|
},
|
||||||
|
|
||||||
"armorClass": 0,
|
"phArmorClass": 0,
|
||||||
|
"spArmorClass": 0,
|
||||||
"stats": {
|
"stats": {
|
||||||
"attack": 0,
|
"attack": 0,
|
||||||
"defense": 0,
|
"defense": 0,
|
||||||
|
|||||||
@@ -6,13 +6,13 @@
|
|||||||
<div class="typeSelectBox">
|
<div class="typeSelectBox">
|
||||||
<select class="{{system.type1}}" name="system.type1">
|
<select class="{{system.type1}}" name="system.type1">
|
||||||
{{#each types}}
|
{{#each types}}
|
||||||
<option value="{{this}}" {{#if (equals system.type1 this)}}selected{{/if}}>{{this}}</option>
|
<option value="{{this}}" {{#if (equals ../system.type1 this)}}selected{{/if}}>{{this}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
<select class="{{system.type2}}" name="system.type2">
|
<select class="{{system.type2}}" name="system.type2">
|
||||||
<option value="" {{#if (eq system.type2 "")}}selected{{/if}}></option>
|
<option value="" {{#if (eq system.type2 "")}}selected{{/if}}></option>
|
||||||
{{#each types}}
|
{{#each types}}
|
||||||
<option value="{{this}}" {{#if (equals system.type2 this)}}selected{{/if}}>{{this}}</option>
|
<option value="{{this}}" {{#if (equals ../system.type2 this)}}selected{{/if}}>{{this}}</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,7 +20,10 @@
|
|||||||
<div class="charHex charHPMax"><span class="charHexHead">Max</span></br><input class="charHexValue hpMaxValue invisibleInput" type="number" name="system.hp.max" value="{{system.hp.max}}"></div>
|
<div class="charHex charHPMax"><span class="charHexHead">Max</span></br><input class="charHexValue hpMaxValue invisibleInput" type="number" name="system.hp.max" value="{{system.hp.max}}"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex"><span class="charHexHead">{{localize "POKEMON.System.ArmorClass"}}</span></br><span class="charHexValue">{{system.armorClass}}</span></div>
|
<div class="charHex"><span class="charHexHead">Ph. AC</span></br><span class="charHexValue">{{system.phArmorClass}}</span></div>
|
||||||
|
<div class="charHex"><span class="charHexHead">Sp. AC</span></br><span class="charHexValue">{{system.spArmorClass}}</span></div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="charHex"><span class="charHexHead">{{localize "POKEMON.System.Speed"}}</span></br><span class="charHexValue">{{system.speed}}</span></div>
|
<div class="charHex"><span class="charHexHead">{{localize "POKEMON.System.Speed"}}</span></br><span class="charHexValue">{{system.speed}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user