Skip to content

Commit

Permalink
fix times up
Browse files Browse the repository at this point in the history
  • Loading branch information
Plushtoast committed Oct 8, 2021
1 parent 3d9a519 commit 0d5aa26
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion modules/system/config-dsa5.js
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ DSA5.StFs = {
"D": "D"
}

CONFIG.time.turnTime = 5
CONFIG.time.roundTime = 5
CONFIG.time.turnTime = 0

export default DSA5
2 changes: 1 addition & 1 deletion modules/system/dice-dsa5.js
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export default class DiceDSA5 {
Number(res.preData.calculatedSpellModifiers.finalcost) +
AdvantageRulesDSA5.vantageStep(testData.extra.actor, game.i18n.localize('LocalizedIDs.weakKarmicBody')) +
AdvantageRulesDSA5.vantageStep(testData.extra.actor, game.i18n.localize('LocalizedIDs.weakAstralBody')) +
(isClerical ? 0 : (res.successLevel > 0 ? -1 * SpecialabilityRulesDSA5.abilityStep(testData.extra.actor, game.i18n.localize("LocalizedIDs.energyControl")) : SpecialabilityRulesDSA5.abilityStep(testData.extra.actor, game.i18n.localize("LocalizedIDs.weakEnergyControl")) * -1)) +
(isClerical ? 0 : (res.successLevel > 0 ? -1 * SpecialabilityRulesDSA5.abilityStep(testData.extra.actor, game.i18n.localize("LocalizedIDs.energyControl")) : SpecialabilityRulesDSA5.abilityStep(testData.extra.actor, game.i18n.localize("LocalizedIDs.smallEnergyControl")) * -1)) +
testData.extra.actor.data[isClerical ? "kapModifier" : "aspModifier"])

if (AdvantageRulesDSA5.hasVantage(testData.extra.actor, game.i18n.localize('CONDITION.minorSpirits')) &&
Expand Down
9 changes: 7 additions & 2 deletions modules/system/didyouknow.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export default class DidYouKnow {
"Du kannst einen Vertrauten erstellen, indem du ihm die gleichnamige Eigenschaft gibst (AP/Bonuswerte)",
"Das Modul \"times-up\" kann Active Effects automatisch nach Ablauf ihrer Wirkungsdauer entfernen."
],
esclusivede: [
"Im Kompendium kannst du Regeln für Trefferzonen aktivieren."
],
en: [
"You can enchant items by dragging spells from compendiums to the item sheet.",
"You can duplicate items in your inventory by dragging and dropping them on your sheet while holding CTRL",
Expand Down Expand Up @@ -63,12 +66,14 @@ export default class DidYouKnow {
"You can parry with anything...even spells if you have to (the system doesn't care).",
"You can create familiars by adding the trait familiar to a creature (AP/Bonus values)",
"The module \"times-up\" can automatically remove active effects once they expired."
]
],
esclusiveen: []
}

static showOneMessage() {
const lang = ["de", "en"].includes(game.i18n.lang) ? game.i18n.lang : "en"
const msg = this.messages[lang][Math.floor(Math.random() * this.messages[lang].length)];
const aMsg = this.messages[lang].concat(this.messages[`exclusive${lang}`])
const msg = aMsg[Math.floor(Math.random() * aMsg.length)];
const didYouKnow = `
<div class="didYouKnow">
<div class="row-section">
Expand Down

0 comments on commit 0d5aa26

Please sign in to comment.