Files
roll20-character-sheets-tester/Shadowrun5thEdition/Shadowrun5thEdition.pug
T
Cassie Levett 5932178ce8 Shadowrun 5th Edition v4.15 (#6085)
* fix translation bug and white space in notes

* remove css duplicate variable

* save update Astral Init Dice function

* add back astral init

* fix edge toggle

* combine script files. Add additional unit tests

* convert unit test to QUnit. Break up pugs into tabs

* convert roll template pug, add fade/draain to chat template

* add margin above drain/fade selects

* break up scss into 7-1

* adjust css

* add user feedback

* remove obsolete css and add additiona user feedback

* move npc sheet

* reduce button highlighting change

* fix bug in with the Primary target

* refactor vehicle, add gear location

* move and fix npc sheet
2020-04-06 14:03:28 -07:00

121 lines
3.5 KiB
Plaintext

input(name='attr_version' type='hidden' value='4.15')
//- CHARACTER SHEET PAGE
input.sheet_type(name='attr_sheet_type' type='hidden' value='pc')
//- CHARACTER TYPE (MUNDANE < MAGIC < RESONANCE)
input.character-type(name='attr_flag_special' type='hidden' value='mundane')
//- MIXINS
include src/pug/_mixins.pug
//- VARIABLES
include src/pug/_variables.pug
- const imageSource = 'https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Shadowrun5thEdition/src/imgs/'
.pc
.tabs
img(alt='Shadowrun black and metallic logo' src=`${imageSource}/ShadowrunLogo.png`)
h1(data-i18n='character') Character
label(data-i18n-title='character name' title='character name')
input(type='text' name='attr_character_name' placeholder='Character name' title='@{character_name}')
h1(data-i18n='player') Player
label(data-i18n-title='player name' title='player name')
input(type='text' name='attr_player_name' placeholder='Player name' title='@{player_name}')
h2(data-i18n-title='/w GM') /w GM
label.switch(data-i18n-title='whisper rolls to gm' title='whisper rolls to gm')
input.whisper-toggle(name='attr_gm_toggle' type='checkbox' value='/w gm')
span.slider
each val, key in {'wounds': '@{wounds}', 'modifiers':'?{Modifiers +/-|0}', 'edge':'@{edge}'}
h2(data-i18n-title=key) #{key}
label.switch(data-i18n-title=key title=key)
input.whisper-toggle(name=`attr_${key}_toggle` type='checkbox' value=val)
span.slider
button(name='d6' title='Roll D6s' type='roll' value!='@{gm_toggle} &{template:rolls}{{header=^{d6}}}{{base=^{d6}}}{{dice=[[(?{d6s|0}d6>5@{explode_toggle})]]}}') L
input(name='attr_tab' type='hidden' value='options')
button.pictos(name='act_tab_options' title='@{tab}' type='action' ) y
each val in ['core', 'arms', 'augs', 'gear', 'magic', 'matrix', 'social', 'vehicle']
button(data-i18n=val name='act_tab_'+val type='action' title='@{tab}') #{val}
input.options_toggle(name='attr_tab' type='hidden' value='options')
//- STATIC TAB
include src/pug/tabs/static.pug
//- CORE TAB
include src/pug/tabs/core.pug
//- ARMS TAB
include src/pug/tabs/arms.pug
//- AUGS TAB
include src/pug/tabs/augs.pug
//- GEAR TAB
include src/pug/tabs/gear.pug
//- MAGIC TAB
include src/pug/tabs/magic.pug
//- MATRIX TAB
include src/pug/tabs/matrix.pug
//- SOCIAL TAB
include src/pug/tabs/social.pug
//- VEHICLE TAB
include src/pug/tabs/vehicle.pug
//- OPTIONS TAB
include src/options.html
//- NPCs
include src/pug/_npc.pug
//- FOOTER
.footer
div
span(data-i18n="copyrightfooter")
span Version
span(name="attr_version")
img(alt='Emerald Productins, LLC' src=`${imageSource}/EProd_Emerald_Gloss.png`)
//- ROLL TEMPLATES
//- include src/rolltemplates.html
include src/pug/_rolltemplates.pug
//- HIDDEN
include src/html/hidden.html
//- SCRIPTS
script(type="text/worker")
include src/js/attributes.js
include src/js/Classes/PrimaryWeapon.js
include src/js/Classes/PrimaryArmor.js
//- Generic helper functions used by shadowrunFunctions
//- Has unit tests
include src/js/processingFunctions.js
//- Functions called by scripts to handle Shaodwrun specific rules
//- Has unit tests
include src/js/shadowrunFunctions.js
//- Functions are called by the eventhandlers
include src/js/scripts.js
//- Handle version updates
include src/js/versioning.js
//- Listeners for changes
include src/js/eventhandlers.js
//- Chummer Importer Functions
include src/js/importer.js
include src/js/importerUI.js
//- CHUMMER IMPORTER
include src/html/importer.html