This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup | |
const mpMin = 20; | |
const mpMax = 50; | |
let mpCurrent = mpMin; | |
let spellChoice1 = undefined; | |
let spellChoice2 = undefined; | |
let isUpdatingMp = false; | |
const spells = actor.itemTypes.spell.flatMap(spell => { | |
const targeting = spell.system?.targeting; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setup | |
let tastes = ["bitter", "salty", "sour", "sweet", "umami"]; | |
let ingredients = actor.itemTypes.classFeature.filter(x => x.system.featureType === "projectfu.ingredient"); | |
let ingredientMap = {}; | |
ingredients.forEach(i => { | |
let taste = i.system.data.taste; | |
if (ingredientMap[taste] == null) { | |
ingredientMap[taste] = i; | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configurables | |
const alliedColor = "green"; | |
const enemyColor = "red"; | |
// Effect refs | |
const airResistance = "eyJuYW1lIjoiQWlyIFJlc2lzdGFuY2UiLCJjaGFuZ2VzIjpbeyJrZXkiOiJzeXN0ZW0uYWZmaW5pdGllcy5haXIiLCJtb2RlIjowLCJ2YWx1ZSI6InVwZ3JhZGUifV0sImljb24iOiIvaWNvbnMvc3ZnL2F1cmEuc3ZnIn0="; | |
const fireResistance = "eyJuYW1lIjoiRmlyZSBSZXNpc3RhbmNlIiwiY2hhbmdlcyI6W3sia2V5Ijoic3lzdGVtLmFmZmluaXRpZXMuZmlyZSIsIm1vZGUiOjAsInZhbHVlIjoidXBncmFkZSJ9XSwiaWNvbiI6Ii9pY29ucy9zdmcvYXVyYS5zdmcifQ=="; | |
const boltResistance = "eyJuYW1lIjoiQm9sdCBSZXNpc3RhbmNlIiwiY2hhbmdlcyI6W3sia2V5Ijoic3lzdGVtLmFmZmluaXRpZXMuYm9sdCIsIm1vZGUiOjAsInZhbHVlIjoidXBncmFkZSJ9XSwiaWNvbiI6Ii9pY29ucy9zdmcvYXVyYS5zdmcifQ=="; | |
const iceResistance = "eyJuYW1lIjoiSWNlIFJlc2lzdGFuY2UiLCJjaGFuZ2VzIjpbeyJrZXkiOiJzeXN0ZW0uYWZmaW5pdGllcy5pY2UiLCJtb2RlIjowLCJ2YWx1ZSI6InVwZ3JhZGUifV0sImljb24iOiIvaWNvbnMvc3ZnL2F1cmEuc3ZnIn0="; | |
const darkResistance = "eyJuYW1lIjoiRGFyayBSZXNpc3RhbmNlIiwiY2hhbmdlcyI6W3sia2V5Ijoic3lzdGVtLmFmZmluaXRpZXMuZGFyayIsIm1vZGUiOjAsInZhbHVlIjoidXBncmFkZS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Custom CSS */ | |
/* | |
Used in many places like: | |
right chat box | |
window titles | |
Original value: rgba(20,20,20,0.6) | |
*/ | |
.app { | |
background-color: rgba(20,20,20,0.9) |