-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1495 from Miskatonic-Investigative-Society/develop
0.10.11
- Loading branch information
Showing
16 changed files
with
117 additions
and
95 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* global Hooks */ | ||
export function listen () { | ||
Hooks.once('diceSoNiceReady', dice3d => { | ||
for (const system in dice3d.DiceFactory.systems) { | ||
const d100 = dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'd100') | ||
if (typeof d100 !== 'undefined') { | ||
if (typeof dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'dt') === 'undefined') { | ||
const diceDecader = Object.assign(Object.create(Object.getPrototypeOf(d100)), d100) | ||
diceDecader.type = 'dt' | ||
dice3d.DiceFactory.systems[system].dice.push(diceDecader) | ||
} | ||
if (typeof dice3d.DiceFactory.systems[system].dice.find(d => d.type === 'do') === 'undefined') { | ||
const diceDecader = Object.assign(Object.create(Object.getPrototypeOf(d100)), d100) | ||
diceDecader.type = 'do' | ||
dice3d.DiceFactory.systems[system].dice.push(diceDecader) | ||
} | ||
} | ||
} | ||
}) | ||
} |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* global game, Hooks */ | ||
import { CoC7DecaderDie } from '../apps/decader-die.js' | ||
|
||
export function listen () { | ||
Hooks.on('renderRealRoll', (app, html, options) => { | ||
for (const term in options.dieTerms) { | ||
for (const input in options.dieTerms[term].inputs) { | ||
if (options.dieTerms[term] instanceof CoC7DecaderDie) { | ||
const tag = html.find('[name="' + term + '.' + input + '"]') | ||
if (tag.length === 1) { | ||
tag[0].placeholder = game.i18n.localize('CoC7.RealRollDecaderPlaceholderName') | ||
} | ||
} | ||
} | ||
} | ||
}) | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ | |
.body { | ||
input { | ||
flex: 0; | ||
min-width: 2.5rem; | ||
min-width: 6rem; | ||
} | ||
|
||
grid-area: body; | ||
|
Oops, something went wrong.