✨
This commit is contained in:
@@ -688,7 +688,7 @@
|
|||||||
// text-shadow: none;
|
// text-shadow: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.effectiveness2 {
|
.effectiveness4 {
|
||||||
background-color: lime;
|
background-color: lime;
|
||||||
color: yellow;
|
color: yellow;
|
||||||
// text-shadow: none;
|
// text-shadow: none;
|
||||||
|
|||||||
@@ -103,14 +103,6 @@ export default class pokemonCharacterSheet extends api.HandlebarsApplicationMixi
|
|||||||
effectiveness *= this.effectivenessChart[type][context.system.type2] ?? 1;
|
effectiveness *= this.effectivenessChart[type][context.system.type2] ?? 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (effectiveness == 0.5) {
|
|
||||||
effectiveness = "½";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (effectiveness == 0.25) {
|
|
||||||
effectiveness = "¼";
|
|
||||||
}
|
|
||||||
|
|
||||||
return effectiveness
|
return effectiveness
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -570,7 +570,7 @@
|
|||||||
background-color: green;
|
background-color: green;
|
||||||
color: yellow;
|
color: yellow;
|
||||||
}
|
}
|
||||||
.pokemon.sheet.characterSheet .effectiveness2 {
|
.pokemon.sheet.characterSheet .effectiveness4 {
|
||||||
background-color: lime;
|
background-color: lime;
|
||||||
color: yellow;
|
color: yellow;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,13 @@ function preloadHandlebarsTemplates() {
|
|||||||
|
|
||||||
function registerHandlebarsHelpers() {
|
function registerHandlebarsHelpers() {
|
||||||
|
|
||||||
|
Handlebars.registerHelper("symbol", function(s1) {
|
||||||
|
if (s1 == 0.5 || s1 == 0.25) {
|
||||||
|
return "½";
|
||||||
|
}
|
||||||
|
return s1;
|
||||||
|
});
|
||||||
|
|
||||||
Handlebars.registerHelper("upper", function(s1) {return s1.toUpperCase()});
|
Handlebars.registerHelper("upper", function(s1) {return s1.toUpperCase()});
|
||||||
|
|
||||||
Handlebars.registerHelper("short", function(s1) {return s1.slice(0,3).toUpperCase()});
|
Handlebars.registerHelper("short", function(s1) {return s1.slice(0,3).toUpperCase()});
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.17",
|
"version": "0.1.18",
|
||||||
"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.
@@ -68,7 +68,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
{{#each defenses}}
|
{{#each defenses}}
|
||||||
<th class="effectiveness{{this}}">{{this}}</th>
|
<th class="effectiveness{{symbol this}}">{{this}}</th>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user