diff --git a/Outgunned/Outgunned.css b/Outgunned/Outgunned.css index 667b53734c92..443800806c39 100644 --- a/Outgunned/Outgunned.css +++ b/Outgunned/Outgunned.css @@ -228,7 +228,7 @@ background-color: rgb(179,37,27);; } .charsheet .character-sheet input[type=checkbox].mag:not(:checked) { - background-image: url("https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/OutgunnedOneBullet.png?raw=true"); + background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/OutgunnedOneBullet.png?raw=true"); } .charsheet .character-sheet input[type="checkbox"].roulette { @@ -702,7 +702,7 @@ input.sheet-zero + span::before { .sheet-rolltemplate-outgunned .sheet-template-wrap, .sheet-rolltemplate-roulette .sheet-template-wrap, .sheet-rolltemplate-coin-flip .sheet-template-wrap { -/* background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/Outgunned_roll_bg.jpg?raw=true); +/* background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/Outgunned_roll_bg.jpg?raw=true); background-position: top center; background-size: cover; */ @@ -1096,47 +1096,47 @@ input.sheet-zero + span::before { .diamond-checkbox > .diamond-down::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/OutgunnedDiamondEmptyRed.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/OutgunnedDiamondEmptyRed.png?raw=true); } input.diamond-input:checked + .diamond-checkbox > .diamond-down::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ } .diamond-checkbox > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondEmptyBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondEmptyBlack.png?raw=true); } .diamond-checkbox-black > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondEmptyBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondEmptyBlack.png?raw=true); } input.diamond-input:checked + .diamond-checkbox > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } input.diamond-input:checked + .diamond-checkbox-black > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } input.diamond-input:checked ~ .diamond-checkbox > .diamond-down::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ } input.diamond-input:checked ~ .diamond-checkbox > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } input.diamond-input:checked ~ .diamond-checkbox-black > .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } .diamond-checkbox .diamond-input:checked + .diamond-down::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/OutgunnedDiamondRed.png?raw=true); /* diamond-black-down */ } .diamond-checkbox .diamond-input:checked + .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } .diamond-checkbox-black .diamond-input:checked + .diamond-up::before { - background-image: url(https://github.com/Roll20/roll20-character-sheets/blob/master/Outgunned/Graphics/DiamondBlack.png?raw=true); + background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/refs/heads/master/Outgunned/Graphics/DiamondBlack.png?raw=true); } /* TAB HANDLING */ diff --git a/Outgunned/Outgunned.html b/Outgunned/Outgunned.html index 01b879f5c1be..3b7fc7f2cf8e 100644 --- a/Outgunned/Outgunned.html +++ b/Outgunned/Outgunned.html @@ -17,7 +17,7 @@
- +
@@ -626,7 +626,7 @@
- +
@@ -696,7 +696,7 @@
- +
@@ -708,7 +708,7 @@
- +
@@ -858,10 +858,10 @@
-
- -
-
+
+ +
+ + + +
+ +
+
+ +
+ + + +
+ +
+ +
+ +
+
+ +
+
@@ -940,7 +962,7 @@
- +
@@ -973,7 +995,7 @@
- +
@@ -1021,7 +1043,7 @@
- + @@ -1102,7 +1124,7 @@
- +
@@ -1163,9 +1185,9 @@ - - - + + + @@ -1697,7 +1719,7 @@
- +
@@ -1761,7 +1783,7 @@
- +
@@ -1803,7 +1825,7 @@
- +
@@ -1815,7 +1837,7 @@
- +
@@ -1859,7 +1881,7 @@
- +
@@ -1892,7 +1914,7 @@
- +
@@ -1907,7 +1929,7 @@
- +
@@ -1940,7 +1962,7 @@
- +
@@ -1955,7 +1977,7 @@
- +
@@ -1988,7 +2010,7 @@
- +
@@ -2190,7 +2212,7 @@
- +
@@ -2382,7 +2404,7 @@
- +
@@ -2415,16 +2437,16 @@ {{#rollWasCrit() roll}}
Success
- - + Success 👍 +
{{/rollWasCrit() roll}} {{#rollWasFumble() roll}}
Fail
- - + Failure 👎 +
{{/rollWasFumble() roll}} @@ -2454,16 +2476,17 @@ {{#rollGreater() roll chamber}}
Success
- - + 👍 +
{{/rollGreater() roll chamber}} {{#^rollGreater() roll chamber}}
Fail
- - + 👎 + +
{{/^rollGreater() roll chamber}} @@ -2875,6 +2898,89 @@ ); }); + // Death roulette + on("change:roulette2 change:roulette3 change:roulette4 change:roulette5 change:roulette6", function(eventInfo) { + let NewBullet = eventInfo.newValue; + let OldBullet = eventInfo.previousValue; + let SourceAttribute = eventInfo.sourceAttribute; + let SourceType = eventInfo.sourceType; + + console.log(" SourceAttribute: " + SourceAttribute + " SourceType " + SourceType + " NewBullet: " + NewBullet + " OldBullet: " + OldBullet); + if (SourceType == "sheetworker") { + console.log(" SourceType " + SourceType + " returning"); + return; + } + + let total = 1; + let bullet2 = "0"; + let bullet3 = "0"; + let bullet4 = "0"; + let bullet5 = "0"; + let bullet6 = "0"; + + let chambered = 0; + if (NewBullet != "0") { + chambered = 1; + } + + switch (SourceAttribute) { + case "roulette2": + bullet2 = NewBullet; total = 1 + chambered; + break; + case "roulette3": + bullet2 = "2"; bullet3 = NewBullet; total = 2 + chambered; + break; + case "roulette4": + bullet2 = "2"; bullet3 = "3"; bullet4 = NewBullet; total = 3 + chambered; + break; + case "roulette5": + bullet2 = "2"; bullet3 = "3"; bullet4 = "4"; bullet5 = NewBullet; total = 4 + chambered; + break; + case "roulette6": + bullet2 = "2"; bullet3 = "3"; bullet4 = "4"; bullet5 = "5"; bullet6 = NewBullet; total = 5 + chambered; + break; + default: + console.log("Unknown Bullet - value: " + SourceAttribute); + } + console.log(" total = " + total); + console.log(" Bullets = 1" + " " + bullet2 + " " + bullet3 + " " + bullet4 + " " + bullet5 + " " + bullet6); + + setAttrs({ + roulette2: bullet2, roulette3: bullet3, roulette4: bullet4, roulette5: bullet5, roulette6: bullet6, roulette: String(total) + }); + }); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + // Update attr for expertise const updateSavedDiceAttr = async (computedValues, tableOfPairs) => { savedDiceAttr.forEach((attr, index) => { diff --git a/Outgunned/sheet.json b/Outgunned/sheet.json index 964eea8f75d5..dbe33a20a08b 100644 --- a/Outgunned/sheet.json +++ b/Outgunned/sheet.json @@ -4,6 +4,6 @@ "authors": "Vialmada", "roll20userid": "6040293", "preview": "preview.png", - "instructions": "# Outgunned is an **unofficial** character sheet for use with the Outgunned Roleplaying Game from Two Little Mice. If you have any questions or comments, please contact Vialmada.", + "instructions": "# Outgunned is an **unofficial** character sheet for use with the Outgunned Roleplaying Game from Two Little Mice. Coin images are courtesy of [PowerCoin](http://www.powercoin.it/). If you have any questions or comments, please contact Vialmada.", "legacy": false } \ No newline at end of file