Compare commits
4 Commits
048cc72060
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f823c65bbb | |||
| f845866c0f | |||
| 72ed0145a5 | |||
| 24f3bb5a01 |
@@ -277,8 +277,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.charHex {
|
.charHex {
|
||||||
width: 65px;
|
width: 75px;
|
||||||
height: 65px;
|
height: 75px;
|
||||||
background-color: #41c43a;
|
background-color: #41c43a;
|
||||||
color: black;
|
color: black;
|
||||||
border: black;
|
border: black;
|
||||||
@@ -316,7 +316,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.charHexValue {
|
.charHexValue {
|
||||||
font-size: 25px;
|
font-size: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hpValue {
|
.hpValue {
|
||||||
@@ -658,7 +658,7 @@
|
|||||||
|
|
||||||
th {
|
th {
|
||||||
padding: 3.5px;
|
padding: 3.5px;
|
||||||
padding-right: 4.5px;
|
padding-right: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -714,4 +714,20 @@
|
|||||||
right: 0px;
|
right: 0px;
|
||||||
border-top-left-radius: 20px;
|
border-top-left-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.inventoryBox {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-items: space-evenly;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 100;
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.inventory {
|
||||||
|
width: 350px;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,13 +79,8 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
|||||||
}
|
}
|
||||||
|
|
||||||
calculateDerivated(context) {
|
calculateDerivated(context) {
|
||||||
context.system.phArmorClass = 10+context.system.stats.defense;
|
context.system.phArmorClass = 3+context.system.stats.defense;
|
||||||
context.system.spArmorClass = 10+context.system.stats.defense;
|
context.system.spArmorClass = 3+context.system.stats.specialDefense;
|
||||||
if (context.system.defenseCategory == "Physical") {
|
|
||||||
context.system.phArmorClass += 2;
|
|
||||||
} else {
|
|
||||||
context.system.spArmorClass += 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
context.defenses = context.types.map(type => this.calcEffectiveness(context, type));
|
context.defenses = context.types.map(type => this.calcEffectiveness(context, type));
|
||||||
|
|
||||||
|
|||||||
22
pokemon.css
22
pokemon.css
@@ -238,8 +238,8 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .charHex {
|
.pokemon.sheet.characterSheet .charHex {
|
||||||
width: 65px;
|
width: 75px;
|
||||||
height: 65px;
|
height: 75px;
|
||||||
background-color: #41c43a;
|
background-color: #41c43a;
|
||||||
color: black;
|
color: black;
|
||||||
border: black;
|
border: black;
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
height: 60px;
|
height: 60px;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .charHexValue {
|
.pokemon.sheet.characterSheet .charHexValue {
|
||||||
font-size: 25px;
|
font-size: 35px;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .hpValue {
|
.pokemon.sheet.characterSheet .hpValue {
|
||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
@@ -534,7 +534,7 @@
|
|||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .defenseTable th {
|
.pokemon.sheet.characterSheet .defenseTable th {
|
||||||
padding: 3.5px;
|
padding: 3.5px;
|
||||||
padding-right: 4.5px;
|
padding-right: 4px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .effectiveness0 {
|
.pokemon.sheet.characterSheet .effectiveness0 {
|
||||||
@@ -576,3 +576,17 @@
|
|||||||
right: 0px;
|
right: 0px;
|
||||||
border-top-left-radius: 20px;
|
border-top-left-radius: 20px;
|
||||||
}
|
}
|
||||||
|
.pokemon.sheet.characterSheet .inventoryBox {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: flex-start;
|
||||||
|
justify-items: space-evenly;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 100;
|
||||||
|
margin-top: 15px;
|
||||||
|
margin-left: 30px;
|
||||||
|
}
|
||||||
|
.pokemon.sheet.characterSheet .inventory {
|
||||||
|
width: 350px;
|
||||||
|
height: 400px;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.25",
|
"version": "0.1.28",
|
||||||
"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.
@@ -1,53 +1,22 @@
|
|||||||
<div class="charInfoBox">
|
<div class="charInfoBox">
|
||||||
<div class="statsBox">
|
<div class="statsBox">
|
||||||
|
<div class="row">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex statHex"><span class="charHexHead">Attack</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.attack" value="{{system.stats.attack}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">Attack</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.attack" value="{{system.stats.attack}}"></div>
|
||||||
{{!-- <div class="categorySelectBox">
|
|
||||||
<div class="row">
|
|
||||||
<label class="container">
|
|
||||||
<input class="radioButton" type="radio" name="system.attackCategory" value="Physical"
|
|
||||||
{{#if (equals system.attackCategory "Physical")}}checked{{/if}}>
|
|
||||||
<span class="checkmark"></span>
|
|
||||||
Physical
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<label class="container">
|
|
||||||
<input class="radioButton" type="radio" name="system.attackCategory" value="Special"
|
|
||||||
{{#if (equals system.attackCategory "Special")}}checked{{/if}}>
|
|
||||||
<span class="checkmark"></span>
|
|
||||||
Special
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div> --}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex statHex"><span class="charHexHead">Sp. Attack</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.specialAttack" value="{{system.stats.specialAttack}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">Sp. Attack</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.specialAttack" value="{{system.stats.specialAttack}}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex statHex"><span class="charHexHead">Defense</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.defense" value="{{system.stats.defense}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">Defense</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.defense" value="{{system.stats.defense}}"></div>
|
||||||
{{!-- <div class="categorySelectBox">
|
|
||||||
<div class="row">
|
|
||||||
<label class="container">
|
|
||||||
<input class="radioButton" type="radio" name="system.defenseCategory" value="Physical"
|
|
||||||
{{#if (equals system.defenseCategory "Physical")}}checked{{/if}}>
|
|
||||||
<span class="checkmark"></span>
|
|
||||||
Physical
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<label class="container">
|
|
||||||
<input class="radioButton" type="radio" name="system.defenseCategory" value="Special"
|
|
||||||
{{#if (equals system.defenseCategory "Special")}}checked{{/if}}>
|
|
||||||
<span class="checkmark"></span>
|
|
||||||
Special
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div> --}}
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex statHex"><span class="charHexHead">Sp. Defense</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.specialDefense" value="{{system.stats.specialDefense}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">Sp. Defense</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.specialDefense" value="{{system.stats.specialDefense}}"></div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="row">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="charHex statHex"><span class="charHexHead">Speed</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.speed" value="{{system.stats.speed}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">Speed</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.speed" value="{{system.stats.speed}}"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -55,6 +24,7 @@
|
|||||||
<div class="charHex statHex"><span class="charHexHead">HP</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.hp" value="{{system.stats.hp}}"></div>
|
<div class="charHex statHex"><span class="charHexHead">HP</span></br><input class="charHexValue invisibleInput" type="number" name="system.stats.hp" value="{{system.stats.hp}}"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<div class="defenseBox">
|
<div class="defenseBox">
|
||||||
<span class="header">Defenses</span>
|
<span class="header">Defenses</span>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user