Add rolling for skills
This commit is contained in:
parent
f974f260b3
commit
e7bb6f8de9
2 changed files with 40 additions and 2 deletions
|
|
@ -27,6 +27,28 @@
|
|||
"hands": "Stat Check : Hands",
|
||||
"tilt": "Stat Check : Tilt",
|
||||
"rng": "Stat Check : RNG"
|
||||
},
|
||||
"skills": {
|
||||
"defense": "Skill : Defense",
|
||||
"magic": "Skill : Magic",
|
||||
"melee": "Skill : Melee",
|
||||
"platforming": "Skill : Platforming",
|
||||
"strength": "Skill : Strength",
|
||||
"alchemy": "Skill : Alchemy",
|
||||
"arcanum": "Skill : Arcanum",
|
||||
"dreams": "Skill : Dreams",
|
||||
"lore": "Skill : Lore",
|
||||
"navigation": "Skill : Navigation",
|
||||
"animal_handling": "Skill : Animal Handling",
|
||||
"perception": "Skill : Perception",
|
||||
"sneak": "Skill : Sneak",
|
||||
"speech": "Skill : Speech",
|
||||
"vibes": "Skill : Vibes",
|
||||
"accuracy": "Skill : Accuracy",
|
||||
"crafting": "Skill : Crafting",
|
||||
"engineering": "Skill : Engineering",
|
||||
"explosives": "Skill : Explosives",
|
||||
"piloting": "Skill : Piloting"
|
||||
}
|
||||
},
|
||||
"settings": {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,24 @@
|
|||
<div class="skill">
|
||||
<button
|
||||
{{disabled false}}
|
||||
class="skill__label skill__button"
|
||||
class="skill__label skill__button roll"
|
||||
aria-label="{{localize "dotdungeon.aria.actor.pc.skill.button.roll" skill=name}}"
|
||||
data-roll-formula="1{{dd-objectValue system (concat "stats." stat)}} {{dd-objectValue system.skills (concat stat "." name)}}"
|
||||
data-roll-label="dotdungeon.rolls.skills.{{name}}"
|
||||
{{disabled
|
||||
(or
|
||||
(eq
|
||||
(dd-objectValue system (concat "stats." stat))
|
||||
""
|
||||
)
|
||||
(eq
|
||||
(dd-objectValue
|
||||
system
|
||||
(concat "skills." stat "." name)
|
||||
)
|
||||
"locked"
|
||||
)
|
||||
)
|
||||
}}
|
||||
>
|
||||
{{localize (concat "dotdungeon.actor.pc.skill." name)}}
|
||||
{{#with (dd-objectValue system (concat "stats." stat)) as | die |}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue