fixed asset checkbox not being set on specific assets
This commit is contained in:
+130
-130
File diff suppressed because it is too large
Load Diff
@@ -10,10 +10,17 @@ mixin assetDropdown(assetName, assetObject)
|
||||
|
||||
mixin ability(asset, number, key)
|
||||
.flex-container
|
||||
input.asset-ability(
|
||||
type='checkbox'
|
||||
name=`attr_assetcheckbox_${asset.abilityId}${number}`
|
||||
)
|
||||
if asset.firstAbilityChecked && number == 1
|
||||
input.asset-ability(
|
||||
type='checkbox'
|
||||
name=`attr_assetcheckbox_${asset.abilityId}${number}`
|
||||
checked
|
||||
)
|
||||
else
|
||||
input.asset-ability(
|
||||
type='checkbox'
|
||||
name=`attr_assetcheckbox_${asset.abilityId}${number}`
|
||||
)
|
||||
- var translationAbility = `asset-${key}-ability-${number}`
|
||||
.asset-ability
|
||||
p(data-i18n=translationAbility)=translations[translationAbility]
|
||||
|
||||
@@ -6,7 +6,7 @@ mixin progressRoll(opts, visibility)
|
||||
title=opts.title
|
||||
name=`roll${opts.name}`
|
||||
class=visibility
|
||||
value=`&{template:ironsworn_progress} {{header=@{character_name}}} {{progress_name=${opts.title}}} {{progress=[[?{Filled Progress|0}]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}}`
|
||||
value=`&{template:ironsworn_progress} {{header=@{character_name}}} {{progress_name=${translations[opts.title]}}} {{progress=[[?{Filled Progress|0}]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}}`
|
||||
)
|
||||
|
||||
mixin oracleRoll(opts, visibility)
|
||||
@@ -15,7 +15,7 @@ mixin oracleRoll(opts, visibility)
|
||||
title=opts.title
|
||||
name=`roll${opts.name}`
|
||||
class=visibility
|
||||
value=`&{template:${opts.type}} {{header=${opts.title}}} {{${opts.name}=[[d100]]}}`
|
||||
value=`&{template:${opts.type}} {{header=${translations[opts.title]}}} {{${opts.name}=[[d100]]}}`
|
||||
)
|
||||
|
||||
mixin discoverASiteRoll(opts, visibility)
|
||||
@@ -24,34 +24,34 @@ mixin discoverASiteRoll(opts, visibility)
|
||||
title=opts.title
|
||||
name=`roll${opts.name}`
|
||||
class=visibility
|
||||
value=`&{template:ironsworn_moves} {{header=${opts.title}}} {{${opts.name}=[[2d10kl1]]}}`
|
||||
value=`&{template:ironsworn_moves} {{header=${translations[opts.title]}}} {{${opts.name}=[[2d10kl1]]}}`
|
||||
)
|
||||
|
||||
mixin rarityRoll(opts, visibility)
|
||||
button(
|
||||
type="roll"
|
||||
title=`${opts.title} Move`
|
||||
title=`${translations[opts.title]} Move`
|
||||
class=visibility
|
||||
name=`roll${opts.name}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${opts.title}}} {{rarityAction=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}} {{rarityDie6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{rarityDie5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{rarityDie1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${translations[opts.title]}}} {{rarityAction=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}} {{rarityDie6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{rarityDie5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{rarityDie1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}}`
|
||||
)
|
||||
|
||||
mixin owlRoll(opts, visibility)
|
||||
button(
|
||||
type="roll"
|
||||
title=`${opts.title} Move`
|
||||
title=`${translations[opts.title]} Move`
|
||||
class=visibility
|
||||
name=`roll${opts.name}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${opts.title}}} {{action=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{owl=[[?{Owl Companion|No,0|Yes,?{Owl's Health|0}}]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}+(?{Owl Companion})]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${translations[opts.title]}}} {{action=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{owl=[[?{Owl Companion|No,0|Yes,?{Owl's Health|0}}]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}+(?{Owl Companion})]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}}`
|
||||
)
|
||||
|
||||
mixin movesRoll(opts, visibility)
|
||||
button(
|
||||
type="roll"
|
||||
title=`${opts.title} Move`
|
||||
title=`${translations[opts.title]} Move`
|
||||
class=visibility
|
||||
name=`roll${opts.name}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${opts.title}}} {{action=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}}`
|
||||
value!=`&{template:ironsworn_moves} {{header=@{character_name}}} {{name=${translations[opts.title]}}} {{action=[[d6+${opts.stat}+(?{Modifier|0})]]}} {{negate1=[[1+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate2=[[2+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate3=[[3+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate4=[[4+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate5=[[5+${opts.stat_repeat}+(?{Modifier|0})]]}} {{negate6=[[6+${opts.stat_repeat}+(?{Modifier|0})]]}} {{challenge1=[[d10]]}} {{challenge2=[[d10]]}} {{momentum=[[@{momentum}]]}} {{modifiers=[[${opts.stat_repeat}+(?{Modifier|0})]]}} {{add=[[(?{Modifier|0})]]}} {{stat=[[${opts.stat_repeat}]]}}`
|
||||
)
|
||||
|
||||
mixin rollLabel
|
||||
|
||||
+119
-57
@@ -50,69 +50,86 @@
|
||||
combatTalents: {
|
||||
archer: {
|
||||
abilityId: 'archer',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
berserker: {
|
||||
abilityId: 'berserker',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
brawler: {
|
||||
abilityId: 'brawler',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
cutthroat: {
|
||||
abilityId: 'cutthroat',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
duelist: {
|
||||
abilityId: 'duelist',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
fletcher: {
|
||||
abilityId: 'fletcher',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
ironclad: {
|
||||
abilityId: 'ironclad',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'long-arm': {
|
||||
abilityId: 'longarm',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'shield-bearer': {
|
||||
abilityId: 'shieldbearer',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
skirmisher: {
|
||||
abilityId: 'skirmisher',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
slinger: {
|
||||
abilityId: 'slinger',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
sunderer: {
|
||||
abilityId: 'sunderer',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
swordmaster: {
|
||||
abilityId: 'swordmaster',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'thunder-bringer': {
|
||||
abilityId: 'thunderbringer',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
},
|
||||
paths: {
|
||||
alchemist: {
|
||||
abilityId: 'alchemist'
|
||||
abilityId: 'alchemist',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'animal-kin': {
|
||||
abilityId: 'animalkin'
|
||||
abilityId: 'animalkin',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'banner-sworn': {
|
||||
abilityId: 'bannersworn',
|
||||
firstAbilityChecked: true,
|
||||
writeIn: 1,
|
||||
description: true
|
||||
},
|
||||
@@ -126,158 +143,203 @@
|
||||
description: true
|
||||
},
|
||||
bonded: {
|
||||
abilityId: 'bonded'
|
||||
abilityId: 'bonded',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
dancer: {
|
||||
abilityId: 'dancer'
|
||||
abilityId: 'dancer',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
devotant: {
|
||||
abilityId: 'devotant',
|
||||
writeIn: 2,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
empowered: {
|
||||
abilityId: 'empowered',
|
||||
writeIn: 1
|
||||
writeIn: 1,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'fortune-hunter': {
|
||||
abilityId: 'fortunehunter',
|
||||
track: 5
|
||||
track: 5,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'herbalist': {
|
||||
abilityId: 'herbalist'
|
||||
abilityId: 'herbalist',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
honorbound: {
|
||||
abilityId: 'honorbound'
|
||||
abilityId: 'honorbound',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
improviser: {
|
||||
abilityId: 'improviser'
|
||||
abilityId: 'improviser',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
infiltrator: {
|
||||
abilityId: 'infiltrator'
|
||||
abilityId: 'infiltrator',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
loyalist: {
|
||||
abilityId: 'loyalist'
|
||||
abilityId: 'loyalist',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
masked: {
|
||||
abilityId: 'masked',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
oathbreaker: {
|
||||
abilityId: 'oathbreaker',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
outcast: {
|
||||
abilityId: 'outcast'
|
||||
abilityId: 'outcast',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
pretender: {
|
||||
abilityId: 'pretender'
|
||||
abilityId: 'pretender',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
revenant: {
|
||||
abilityId: 'revenant',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
rider: {
|
||||
abilityId: 'rider',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
ritualist: {
|
||||
abilityId: 'ritualist',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'shadow-kin': {
|
||||
abilityId: 'shadowkin',
|
||||
description: true
|
||||
},
|
||||
sighted: {
|
||||
abilityId: 'sighted'
|
||||
abilityId: 'sighted',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
slayer: {
|
||||
abilityId: 'slayer'
|
||||
abilityId: 'slayer',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'spirit-bound': {
|
||||
abilityId: 'spiritbound'
|
||||
abilityId: 'spiritbound',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
storyweaver: {
|
||||
abilityId: 'storyweaver'
|
||||
abilityId: 'storyweaver',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
trickster: {
|
||||
abilityId: 'trickster'
|
||||
abilityId: 'trickster',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
veteran: {
|
||||
abilityId: 'veteran'
|
||||
abilityId: 'veteran',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
waterborn: {
|
||||
abilityId: 'waterborn'
|
||||
abilityId: 'waterborn',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
wayfinder: {
|
||||
abilityId: 'wayfinder'
|
||||
abilityId: 'wayfinder',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'weapon-master': {
|
||||
abilityId: 'weaponmaster',
|
||||
description: true
|
||||
description: true,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
wildblood: {
|
||||
abilityId: 'wildblood'
|
||||
abilityId: 'wildblood',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
wright: {
|
||||
abilityId: 'wright',
|
||||
writeIn: 1
|
||||
writeIn: 1,
|
||||
firstAbilityChecked: true
|
||||
}
|
||||
},
|
||||
rituals: {
|
||||
augur: {
|
||||
abilityId: 'augur'
|
||||
abilityId: 'augur',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
awakening: {
|
||||
abilityId: 'awakening',
|
||||
track: 6,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
bind: {
|
||||
abilityId: 'bind'
|
||||
abilityId: 'bind',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
communion: {
|
||||
abilityId: 'communion'
|
||||
abilityId: 'communion',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
divination: {
|
||||
abilityId: 'divination'
|
||||
abilityId: 'divination',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
invoke: {
|
||||
abilityId: 'invoke',
|
||||
track: 6,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
keen: {
|
||||
abilityId: 'keen'
|
||||
abilityId: 'keen',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
leech: {
|
||||
abilityId: 'leech'
|
||||
abilityId: 'leech',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
lightbearer: {
|
||||
abilityId: 'lightbearer',
|
||||
track: 6
|
||||
track: 6,
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
scry: {
|
||||
abilityId: 'scry'
|
||||
abilityId: 'scry',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
'shadow-walk': {
|
||||
abilityId: 'shadowwalk'
|
||||
abilityId: 'shadowwalk',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
sway: {
|
||||
abilityId: 'sway'
|
||||
abilityId: 'sway',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
talisman: {
|
||||
abilityId: 'talisman'
|
||||
abilityId: 'talisman',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
tether: {
|
||||
abilityId: 'tether'
|
||||
abilityId: 'tether',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
totem: {
|
||||
abilityId: 'totem'
|
||||
abilityId: 'totem',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
visage: {
|
||||
abilityId: 'visage'
|
||||
abilityId: 'visage',
|
||||
firstAbilityChecked: true
|
||||
},
|
||||
ward: {
|
||||
abilityId: 'ward'
|
||||
abilityId: 'ward',
|
||||
firstAbilityChecked: true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user