Skip to content

Commit

Permalink
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -173,3 +173,5 @@ v1.9.4 Fix Trauma tooltip z-indexing
1.14.16 Layout fixes

1.15.0 Added feature to create animated Tile when Planet or Star System dropped on canvas, added animated icons to Planets and Star Systems (idea and some icons contributed by brunocalado)

1.15.1 Fix localization of Fortune rolls
8 changes: 4 additions & 4 deletions module/sav-roll.js
Original file line number Diff line number Diff line change
@@ -36,8 +36,8 @@ async function showChatRollMessage(r, zeromode, attribute_name = "", position =
let speaker = ChatMessage.getSpeaker();
let rolls = (r.terms)[0].results;
let attribute_label;
if( attribute_name === "Fortune!"){
attribute_label = attribute_name;
if( attribute_name === "fortune"){
attribute_label = game.i18n.localize("BITD.Fortune");
} else {
attribute_label = SaVHelpers.getAttributeLabel(attribute_name);
}
@@ -51,7 +51,7 @@ async function showChatRollMessage(r, zeromode, attribute_name = "", position =
let vice_result = 0;


if ( attribute_name === "Fortune!" ) {
if ( attribute_name === "fortune" ) {
roll_status = getSaVFortuneRollStatus(rolls, zeromode);
} else if ( resistance_rolls.includes( attribute_name ) ) {
[ roll_status, stress_result ] = getSaVResistRollStatus(rolls, zeromode);
@@ -297,7 +297,7 @@ export async function simpleRollPopup() {
label: game.i18n.localize("BITD.Roll"),
callback: async (html) => {
let diceQty = html.find('[name="qty"]')[0].value;
await savRoll(parseInt(diceQty), game.i18n.localize("BITD.Fortune"), "", "");
await savRoll(parseInt(diceQty), "fortune", "", "");
},
},
no: {
4 changes: 2 additions & 2 deletions system.json
Original file line number Diff line number Diff line change
@@ -5,14 +5,14 @@
"authors": ["megastruktur", "Andrew Garinger [agaringer#6498]"],
"url": "https://github.com/drewg13/foundryvtt-scum-and-villainy/",
"flags": {},
"version": "1.15.0",
"version": "1.15.1",
"minimumCoreVersion": "0.7.9",
"compatibleCoreVersion": "9.236",
"system": [],
"dependencies": [],
"socket": false,
"manifest": "https://raw.githubusercontent.com/drewg13/foundryvtt-scum-and-villainy/master/system.json",
"download": "https://github.com/drewg13/foundryvtt-scum-and-villainy/archive/v1.15.0.zip",
"download": "https://github.com/drewg13/foundryvtt-scum-and-villainy/archive/v1.15.1.zip",
"protected": false,
"scripts": [],
"esmodules": [

0 comments on commit d1801a2

Please sign in to comment.