* Make the logo smaller * Set theme jekyll-theme-time-machine * Set theme jekyll-theme-time-machine * city of mist v1.01 * added sanity roll * reset com * Delete _config.yml
120 lines
5.7 KiB
Plaintext
120 lines
5.7 KiB
Plaintext
//- VERSION
|
|
//- =============================
|
|
input(name='attr_version' type='hidden' value='1.01')
|
|
|
|
//- MIXINS
|
|
include src/pug/_mixins.pug
|
|
|
|
// TABS
|
|
// =============================
|
|
input.type(name='attr_sheet_type' type='hidden' value='pc')
|
|
input.display_string(name='attr_toggles' type='hidden' value='')
|
|
|
|
//TABS & LOGO
|
|
// =============================
|
|
.tabs.grid
|
|
// Buttons to toggle on GM whisper
|
|
span(data-i18n-title='GM Whisper') GM Whisper
|
|
label.switch(data-i18-titlen='whisper rolls to gm' title='whisper rolls to gm')
|
|
input.whisper-toggle(name='attr_gm_toggle' type='checkbox' value='/w gm')
|
|
span.slider
|
|
// LOGO
|
|
img(alt='Delta Green' src='https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Delta%20Green%202/img/deltagreenlogo.jpg')
|
|
// CHARACTER SHEETS
|
|
span(data-i18n='Sheet Type') Sheet Type
|
|
select(name='attr_sheet_type')
|
|
optgroup(label='Sheet Type')
|
|
option(data-i18n='pc' value='pc') pc
|
|
option(data-i18n='npc' value='npc') npc
|
|
|
|
|
|
//- OBJECTS
|
|
//- ============================={{/damage}}
|
|
include src/pug/_objects.pug
|
|
|
|
|
|
// NPC SHEET
|
|
// =============================
|
|
.npc
|
|
.grid
|
|
.section-header
|
|
label(data-i18n-title='enter a name for non-player character' title='enter a name for non-player character')
|
|
input(data-i18n-placeholder='character name' name='attr_name' placeholder='Character name' title='@{name}' type='text' value='')
|
|
.grid.section-body
|
|
label.row(data-i18n-title='enter npc description' title='enter npc description')
|
|
textarea(name='attr_npc_description' placeholder='description')
|
|
each val, key in statsObject
|
|
- const statRollValue = `@{gm_toggle} &{template:rolls} {{header=^{${val}}}} {{subheader=@{${key}}}} {{dice=[[1d10]]}} {{dice2=[[1d10]]}}`;
|
|
button(name=key data-i18n-title=key + ' roll' title=key + ' roll' type='roll' value!=statRollValue)
|
|
h1(data-i18n=val)=val
|
|
label(data-i18n-title=key title=key)
|
|
input(data-i18n-placeholder='10' min=0 name='attr_' + key placeholder='10' title='@{' + key + '}' type='number' value='10')
|
|
|
|
h1(data-i18n='HP') HP
|
|
label(data-i18n-title='enter hit points' title='enter hit points')
|
|
input.text-align-left(data-i18n-placeholder='10' name='attr_hit_points' placeholder='10' title='@{hit_points}' type='number' value='')
|
|
h1(data-i18n='WP') WP
|
|
label(data-i18n-title='enter willpower points' title='enter willpower points')
|
|
input.text-align-left(data-i18n-placeholder='10' name='attr_willpower_points' placeholder='10' title='@{willpower_points}' type='number' value='')
|
|
|
|
h1(data-i18n='armor') ARMOR
|
|
label(data-i18n-title='enter armor text' title='enter armor text')
|
|
input(data-i18n-placeholder='8 points of thick hide' name='attr_armor' placeholder='8 points of thick hide' title='@{armor}' type='text' value='')
|
|
|
|
h1(data-i18n='skills') skills
|
|
.repeating-container.skills
|
|
.grid.section-header
|
|
h2(data-i18n='skill') skill
|
|
h2(data-i18n='rank') rank
|
|
h2(data-i18n='roll') roll
|
|
fieldset.repeating_skills
|
|
.grid.section-skills.border-bottom
|
|
- const npcSkillRollValue = `@{gm_toggle} &{template:rolls} {{header=@{name}}} {{subheader=@{rank}}} {{dice=[[1d10]]}} {{dice2=[[1d10]]}}`;
|
|
label(data-i18n-title='skill name' title='skill name')
|
|
input.center(data-i18n-placeholder='skill name' name='attr_name' placeholder='skill name' title='@{repeating_skills_${x}_name}' type='text' value='')
|
|
label(data-i18n-title='skill rank' title='skill rank')
|
|
input(data-i18n-placeholder='0' name='attr_rank' title='@{repeating_skills_${x}_rank}' placeholder='0' type='number' value='')
|
|
button.dicefontd10(data-i18n-title='skill roll' name='skill roll' title='skill roll' type='roll' value=npcSkillRollValue) k
|
|
|
|
h1(data-i18n='attacks') attacks
|
|
.repeating-container.attacks
|
|
- const attackAttrs = ['attack', 'skill %', 'damage', 'notes']
|
|
.grid.section-header
|
|
each attack in attackAttrs
|
|
h2(data-i18n=attack)=attack
|
|
fieldset.repeating_weapons
|
|
.grid.section-weapons.border-bottom
|
|
- const attackRollValue = `@{gm_toggle} &{template:rolls} {{header=@{attack}}} {{subheader=@{skill_percent}}} {{dice=[[1d10]]}} {{dice2=[[1d10]]}} {{damage=^{damage} [@{damage}](~repeating_weapons_damage)}}`;
|
|
each attack in attackAttrs
|
|
- const attrName = attack.replace(' ', '_').replace('%', 'percent')
|
|
- const type = attack.includes('%') ? 'number' : 'text';
|
|
label(data-i18n-title=attack + ' input' title=attack + ' input')
|
|
input(data-i18n-placeholder=attack name='attr_' + attrName placeholder=attack title='@{repeating_weapons_${x}_' + attrName + '}' type=type value='')
|
|
button.dicefontd10(name='attack' type='roll' title='attack roll' value=attackRollValue) k
|
|
button.none(name='roll_damage' type='roll' value='@{gm_toggle} &{template:rolls} {{header=@{attack}}} {{subheader=^{damage}}} {{damage=[[@{damage}]]}}')
|
|
|
|
h1(data-i18n='other notes') other notes
|
|
.repeating-container.notes
|
|
.grid.section-header
|
|
h2(data-i18n='name') name
|
|
h2(data-i18n='notes') notes
|
|
fieldset.repeating_other
|
|
.grid.section.border-bottom
|
|
label(data-i18n-title='other notes name' title='other notes name')
|
|
input(data-i18n-placeholder='name' name='attr_name' placeholder='name' title='@{repeating_other_${x}_name}' type='text')
|
|
label(data-i18n-title='other notes' title='other notes')
|
|
input(data-i18n-placeholder='notes' name='attr_notes' placeholder='notes' title='@{repeating_other_${x}_notes}' type='text')
|
|
|
|
// PC SHEET
|
|
// =============================
|
|
include src/pug/_pc.pug
|
|
|
|
// ROLL TEMPLATE
|
|
// =============================
|
|
include src/pug/rolltemplate.pug
|
|
|
|
|
|
//SHEETWORKERS
|
|
// =============================
|
|
script(type='text/worker')
|
|
include src/pug/sheetworkers.js |