Skip to content

Instantly share code, notes, and snippets.

@bloy
bloy / boost_lower_trait.js
Last active Oct 6, 2021
Foundry VTT Swade System boost/lower trait macro
View boost_lower_trait.js
main()
const UPICON = "/icons/svg/up.svg"
const DOWNICON = "/icons/svg/down.svg"
async function main() {
let tokens = []
game.user.targets.forEach(token => {tokens.push(token)})
if (tokens.length == 0) {
ui.notifications.error("No tokens targeted");
@bloy
bloy / fvtt-swade-token-tooltip-alt.json
Last active Oct 24, 2021
Foundry VTT token-tooltip-alt config for Savage Worlds
View fvtt-swade-token-tooltip-alt.json
{
"gmSettings": {
"default": {
"items": [
{
"disposition": "FRIENDLY",
"items": [
{
"value": "let val = \"\";\nif (data.wildcard) {\n\tval = \"🃏 \";\n}\nif (data.bennies.max > 0 || data.bennies.value > 0) {\n\tval += data.bennies.value + \"/\" + data.bennies.max;\n}\nreturn val;",
"icon": "$Bennies:",
View keybase.md

Keybase proof

I hereby claim:

  • I am bloy on github.
  • I am bloy (https://keybase.io/bloy) on keybase.
  • I have a public key whose fingerprint is 1CFE 2E20 7703 E074 5FAF 5D43 0803 3B8C 075B 3F10

To claim this, I am signing this object: