diff --git a/CHANGELOG.txt b/CHANGELOG.txt index bcbe1d9..88dc4f5 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -229,3 +229,7 @@ v1.9.4 Fix Trauma tooltip z-indexing 2.3.0 Updates for V12, EOL for V10/V11 support, deprecation fixes, planet and clock texture fixes 2.3.1 Re-enable V11 support (most of those changes were unexpectedly back-compatible!), add setting for exposing the Actor name fields on Faction Status sheets, fix logic for assigning default Token art + +2.3.2 Use getDefaultArtwork for assigning default img instead + +2.4.0 Add support for Roll method indicators diff --git a/module/sav-roll.js b/module/sav-roll.js index 7d3bdd9..8c72c65 100644 --- a/module/sav-roll.js +++ b/module/sav-roll.js @@ -37,6 +37,12 @@ async function showChatRollMessage(r, zeromode, attribute_name = "", position = let speaker = ChatMessage.getSpeaker(); if( speaker_name ) { speaker.alias = speaker_name } let rolls = (r.terms)[0].results; + let method = {}; + method.type = (r.terms)[0].method; + if( method.type ) { + method.icon = CONFIG.Dice.fulfillment.methods[method.type].icon; + method.label = CONFIG.Dice.fulfillment.methods[method.type].label; + } let attribute_label; if( attribute_name === "fortune"){ attribute_label = game.i18n.localize("BITD.Fortune"); @@ -98,7 +104,7 @@ async function showChatRollMessage(r, zeromode, attribute_name = "", position = effect_localize = 'BITD.EffectStandard' } - let result = await renderTemplate("systems/scum-and-villainy/templates/sav-roll.html", {rolls: rolls, roll_status: roll_status, attribute_label: attribute_label, position: position, position_localize: position_localize, effect: effect, effect_localize: effect_localize, stress_result_display: stress_result_display, vice_result: vice_result, zeromode: zeromode, purpose: purpose}); + let result = await renderTemplate("systems/scum-and-villainy/templates/sav-roll.html", {rolls: rolls, method: method, roll_status: roll_status, attribute_label: attribute_label, position: position, position_localize: position_localize, effect: effect, effect_localize: effect_localize, stress_result_display: stress_result_display, vice_result: vice_result, zeromode: zeromode, purpose: purpose}); let messageData = { speaker: speaker, diff --git a/styles/sav.css b/styles/sav.css index beaef5d..21cf4a0 100644 --- a/styles/sav.css +++ b/styles/sav.css @@ -92,6 +92,11 @@ color: var(--almost_white); background-size: 24px 24px; } +.dice-tooltip .dice-rolls .roll.method { + font-size: var(--font-size-10); + background: transparent; + min-width: auto; +} .resource-chat-notification table tr td.value { font-weight: bold; width: 25px; diff --git a/system.json b/system.json index dd56869..645f783 100644 --- a/system.json +++ b/system.json @@ -15,7 +15,8 @@ "url": "#{URL}#", "flags": { "hotReload": { - "extensions": ["css", "html", "json", "js"] + "extensions": ["css", "html", "json", "js"], + "paths": ["module", "templates", "lang", "styles"] } }, "version": "#{VERSION}#", diff --git a/templates/sav-roll.html b/templates/sav-roll.html index ce86c85..2cf0e86 100644 --- a/templates/sav-roll.html +++ b/templates/sav-roll.html @@ -167,11 +167,16 @@