Shadowrun 5th Edition version 2.0: Chummer importer (#5499)

* Make the logo smaller

* Set theme jekyll-theme-time-machine

* use Charactermancer to build importer

* start of chummer input

* fix special attributes

* skills in progress

* qualities

* saving progress. Skills working

* Save updates, INFINATE LOOP somewhere

* stopped the loop. starting weapons

* Weapons are working

* bugfix for matrix initiative, skill rating mods, and awakened. added
clean function

* Exotic weapons, Weapon mods fixed

* better way to check if awakened

* armor import

* gear started, FAKE SIN need children

* fix magic/res attribute not being set properly. fix positive AP input

* update licenses and social tab

* spells update

* vehicles cause infiniate loop

* Adjusted CSS/HTML, Vehicles still looping

* Matrix & Programs done

* update Shadowrun 5th Edition

* fix spells and weapons using incorrect value

* add metavariant support

* Fixed contact names with quotes failing

* fixed limits, edge, essence

* saving SR5 importer

* fixed language of importer

* remove config.yml
This commit is contained in:
Cassie Levett
2019-09-30 14:00:24 -05:00
committed by GitHub
parent 87cac1e087
commit dacbff24a6
7 changed files with 1440 additions and 147 deletions
+296 -57
View File
@@ -60,7 +60,8 @@
vertical-align: middle;}
input::placeholder {
color: #b8b7b6;}
color: #b8b7b6;
}
input[type="checkbox"],
input[type="radio"],
@@ -119,7 +120,12 @@
.charsheet {
width: 850px;}
.sheet-red {color: #610b0d;}
.sheet-red {color: #610b0d;}
button.sheet-settings-button {
height: 5%;
margin-left: 1%;
}
/********************************************************************************************************/
/********************************* PC & NPC SHEET SHOW & HIDE SETTINGS ***********************************/
@@ -294,7 +300,7 @@
.sheet-row-long {border-bottom: 1px solid #000;}
.sheet-settings-row {margin-top: 5px;}
.sheet-settings-row select.sheet-skill-select {width: 30%;}
.sheet-settings-row select.sheet-skill-select {width: 29%;}
/***** DECORATIVE BOX THAT ADDS THE RED OUTLINE ON PC SHEET *****/
.sheet-border-box {
@@ -539,7 +545,7 @@
margin-left : 0px;
padding-right: 2px;
text-align : right;
width : 35%;}
width : 30%;}
.sheet-attr-col input[type="number"] {
border-radius: 0px;
@@ -589,7 +595,7 @@
height : 22px;
margin-bottom : 4px;
vertical-align: top;
width : 60%;}
width : 65%;}
.sheet-attr-und .sheet-display {text-align: center;}
@@ -794,7 +800,7 @@
border : none;
border-bottom: 1px solid #333;
border-radius: 0px;
width : 35px;}
width : 8%;}
.sheet-repeat-box .sheet-settings input[type="text"]:first-child {
text-align: left;}
@@ -821,17 +827,12 @@
font-weight: bolder;
height : 20px;
padding : 0px;
width : 15%;}
width : 14%;}
.sheet-repeat-box option {
padding : 2px;
font-weight: bold;}
/***** OLD REPEATING SECTION to be Deprecated *****/
.sheet-repeat-box .sheet-settings,
.sheet-repeat-box .sheet-display {
margin-left: -8px;}
/***** COLLAPSABLE DIVS *****/
.sheet-collapsable {
padding-left: 1.5em;
@@ -858,9 +859,19 @@
width : 95%;
height : 100%;}
.sheet-collapsable .sheet-desc {display: none;}
.sheet-collapsable .sheet-desc,
.sheet-collapsable .sheet-desc-lifestyle {
display: none;
}
.sheet-display-flag:checked ~ .sheet-collapsable .sheet-desc {display: inline;}
.sheet-display-flag:checked ~ .sheet-collapsable .sheet-desc {
display: inline;
}
.sheet-display-flag:checked ~ .sheet-collapsable .sheet-desc-lifestyle {
display: inline-block;
width: 100%;
}
.sheet-arms input.sheet-display-flag,
.sheet-arms input.sheet-display-flag + span,
@@ -869,10 +880,19 @@
.sheet-matrix input.sheet-display-flag,
.sheet-matrix input.sheet-display-flag + span {
height : 12px;
left : 95.5%;
position: absolute;
top : 2px;
width : 12px;}
width : 12px;
}
.sheet-arms input.sheet-display-flag,
.sheet-arms input.sheet-display-flag + span,
.sheet-spell-box input.sheet-display-flag,
.sheet-spell-box input.sheet-display-flag + span,
.sheet-matrix input.sheet-display-flag,
.sheet-matrix input.sheet-display-flag + span {
left: 93%;
}
.sheet-arms input.sheet-display-flag + span,
.sheet-spell-box input.sheet-display-flag + span,
@@ -928,9 +948,14 @@
select.sheet-attr-select[name="attr_limit"] {
left : 82%;}
.sheet-attr-select option:nth-of-type(1n+5) {color: #610b0d;}
.sheet-attr-select option:nth-of-type(1n+5),
.sheet-limit-select option:nth-of-type(1n+5) {color: #610b0d;}
.sheet-attr-select option:nth-of-type(1n+9) {color: #7a2593;}
.sheet-limit-select {
margin-left: 4%;
}
/***** SKILLS REPEATING SECTION *****/
.sheet-skills-row .sheet-settings-row div {
width: 70%;}
@@ -963,7 +988,8 @@
font-weight : 700;
margin-bottom: -3px;}
.sheet-skills-row .sheet-settings-row input[type="text"] {width: 48%;}
.sheet-skills-row .sheet-settings-row input[type="text"] {
width: 45%;}
/***** SKILLS DISPLAY *****/
.sheet-skill-box .sheet-name {
@@ -983,11 +1009,15 @@
.sheet-tab-switch[value="range"] ~ .sheet-weapon-range,
.sheet-tab-switch[value="melee"] ~ .sheet-weapon-melee,
.sheet-arms .sheet-display {
display: inline-block;}
display: inline-block;%;
}
.sheet-arms .sheet-display {
margin-left: -1%;
}
/***** WEAPON SETTINGS *****/
.sheet-weapon-box select {width: 10%;}
.sheet-weapon-box .sheet-settings-row {margin-top: 5px;}
.sheet-arms input[type="text"],
@@ -997,14 +1027,24 @@
width : 8%;}
.sheet-arms input[type="text"]:first-child,
.sheet-arms h3:first-child,
.sheet-arms .sheet-display .sheet-display-row:first-child {
text-align : left;
width : 38%;
margin-right: 1%;}
width : 36%;
margin-right: 1%;
}
.sheet-arms h3:first-child {
margin-right: 2%;}
.sheet-arms h3:first-child {
text-align: left;
margin-right: 2%;
}
.sheet-arms h3[data-i18n="weapon"] {
width: 34%;
}
.sheet-arms h3[data-i18n="armor"] {
width: 38%;
}
.sheet-weapon-range h3 {
margin-right: 3px;}
@@ -1012,16 +1052,12 @@
.sheet-weapon-melee h3 {
margin-right: 10px;}
.sheet-weapon-range h3:first-child,
.sheet-weapon-melee h3:first-child {
margin-right: -1%}
.sheet-weapon-melee h3:first-child,
.sheet-weapon-melee input[type="text"]:first-child {
width: 40%;}
.sheet-arms .sheet-display-row:nth-of-type(2) {
width: 7%;}
width: 12%;}
.sheet-weapon-range h3:nth-child(2),
.sheet-weapon-range h3:nth-child(5) {
@@ -1031,7 +1067,7 @@
.sheet-weapon-melee .sheet-display-row {
margin-right: 5px;}
.sheet-weapon-box label + input[type="text"] {width: 28%;}
.sheet-weapon-box label + input[type="text"] {width: 27%;}
.sheet-exotic-warning {
display : none;
@@ -1043,12 +1079,14 @@
/***** ARMOR *****/
.sheet-armor-box h3 {margin-right: 5.5px;}
.sheet-armor-box button:nth-child(1n+2) {
height: 25px;
width : 25px;}
/***** ARMOR SETTINGS *****/
.sheet-armor-box.sheet-settings input {margin-right: 1px;}
.sheet-armor-box .sheet-settings input[name="attr_name"] {
width: 40%;
}
.sheet-armor-box .sheet-settings input[type="number"] {
margin-right: 0.75%;
}
/***** ARMOR DISPLAY *****/
.sheet-armor-box .sheet-display .sheet-display-row {margin-right: 3px;}
@@ -1074,7 +1112,6 @@
width : 82%;}
.sheet-quality .sheet-display-row:nth-of-type(1) {
margin-left: 2%;
width: 80%;}
.sheet-quality .sheet-display-row:nth-of-type(2),
@@ -1119,11 +1156,6 @@
margin : 0px 0px 0px 0px;}
/***** LIFESTYLE DISPLAY *****/
.sheet-lifestyle .sheet-display span {
display : inline-block;
font-family: sans-serif;
width : 24%;}
.sheet-lifestyle .sheet-display-flag:checked ~ span:nth-of-type(1),
.sheet-lifestyle .sheet-display-flag ~ span:nth-of-type(1n+2) {
display: none;}
@@ -1131,7 +1163,7 @@
.sheet-lifestyle .sheet-display-flag:checked ~ span:nth-of-type(1n+2) {display: inherit;}
/***** CONTACTS *****/
.sheet-contacts h3:nth-of-type(1) {margin-right: 53%;}
.sheet-contacts h3:nth-of-type(1) {margin-right: 50%;}
.sheet-contacts h3:nth-of-type(2),
.sheet-contacts h3:nth-of-type(3) {
@@ -1176,7 +1208,7 @@
width: 85%;}
/***** AUGMENTATIONS (AUGS) *****/
.sheet-aug-box h3:nth-of-type(1) {margin-right: 58%;}
.sheet-aug-box h3:nth-of-type(1) {margin-right: 55%;}
.sheet-aug-box h3:nth-of-type(2) {margin-right: 3%;}
/***** AUGMENTATIONS SETTINGS *****/
@@ -1206,7 +1238,7 @@
.sheet-powers-box .sheet-display .sheet-display-row:nth-of-type(1) {
margin-right: 1%;}
.sheet-spell-box h3 {width: 15%;}
.sheet-spell-box h3 {width: 13%;}
.sheet-powers-box h3,
.sheet-powers-box input[type="number"],
@@ -1426,10 +1458,10 @@
/***** COMPLEX FORMS *****/
.sheet-form-box h3 {
margin-right: 1%;
width : 18%;}
width : 16%;}
.sheet-form-box h3:nth-of-type(1) {
width: 50%;}
width: 48%;}
.sheet-form-box h3:nth-of-type(4) {
width: 10%;}
@@ -1455,9 +1487,9 @@
.sheet-form-box .sheet-display .sheet-display-row {
margin-right: 1%;
text-align : left;
width : 14%;}
width : 16%;}
.sheet-form-box .sheet-display-row:nth-of-type(1) {width: 50%;}
.sheet-form-box .sheet-display-row:nth-of-type(1) {width: 48%;}
.sheet-form-box .sheet-display .sheet-display-row:nth-of-type(4) {width: 10%;}
.sheet-form-box .sheet-display .sheet-display-row:nth-of-type(5) {width: 7%;}
@@ -1468,26 +1500,26 @@
width : 100%;}
.sheet-vehicle-box input[type="text"] {
width: 45%;}
width: 44%;}
.sheet-vehicle-box label {
width: 18%;}
width: 20%;}
.sheet-vehicle-box .sheet-row-long:first-child label {
width : 12%;}
.sheet-vehicle-box label:nth-child(1n+4) {
text-align: right;
width : 23%;}
width : 21%;}
/***** VEHICLE SETTING *****/
.sheet-vehicle-box .sheet-settings h3 {margin-right: 2%;}
.sheet-vehicle-box .sheet-settings h3:nth-child(1) {
margin-left: 20%;
margin-left: 18%;
margin-top : -5px;}
.sheet-vehicle-box .sheet-settings h3:nth-child(4) {margin-left: 23.5%;}
.sheet-vehicle-box .sheet-settings h3:nth-child(4) {margin-left: 22%;}
.sheet-vehicle-box .sheet-settings h3:nth-child(6) {margin-right: 0px;}
.sheet-vehicle-box .sheet-settings input[type="text"],
@@ -1500,13 +1532,17 @@
width : 49%;}
.sheet-vehicle-box .sheet-display-row h3 {
width: 32%;}
width: 35%;}
.sheet-vehicle-box .sheet-display-row div {
display : inline-block;
font-weight: normal;
text-align : center;
width : 65%;}
}
.sheet-vehicle-box .sheet-display-row div.sheet-vehicle-stat {
width: 60%;
}
.sheet-vehicle-box .sheet-collapsable {padding-left: 0.2em;}
@@ -1521,7 +1557,25 @@
.sheet-op-col {margin-bottom: 5px;}
.sheet-op-col h2 {text-decoration: underline;}
.sheet-op-col h2 {
text-decoration: underline;
width: 100%;
}
.sheet-op-col button[name="act_import_launch"] {
border: 2px solid black;
background: #333;
color: white;
font-weight: bold;
width: auto;
height: auto;
padding: 2% 4%
}
.sheet-op-col p {
margin-top: 2%;
margin-right: 5%;
}
.sheet-op-col hr {
border : 0.5px solid #1c1c1c;
@@ -2234,6 +2288,17 @@
text-align : left;
width : 700px;}
div.sheet-footer div {
display: inline-block;
width: 90%;
}
div.sheet-footer img {
float: right;
vertical-align: top;
width: 5%;
}
/********************************************************************************************************/
/**************************************** REPEATING SECTIONS *******************************************/
/********************************************************************************************************/
@@ -2362,6 +2427,180 @@
.sheet-rolltemplate-rolls span.sheet-template-desc .inlinerollresult {font-size: 14px;}
/********************************************************************************************************/
/******************************* Charactermancer ****************************************/
/******************************************************************************************************/
div.sheet-mancer-box {
border: 2px solid #610b0d;
background-color: #e7e6e5;
margin: 1% 2%;
padding: 1% 2%;
}
div.sheet-mancer-box input[type="radio"],
div.sheet-mancer-box input[type="checkbox"] {
opacity: 1;
height: 1.5em;
width: 1.5em;
}
div.sheet-mancer-box input[type="text"] {
background-color: white;
border: 1px solid #333;
width: 100%;
}
div.sheet-mancer-box label {
display: inline-block;
}
div.sheet-mancer-box div.sheet-pick-builder label {
margin: 2% 2% 1% 0%;
width: 15%;
}
div.sheet-mancer-box label {
display: inline-block;
margin: 2% 2%;
}
div.sheet-mancer-box h1 {
text-decoration: underline;
}
div.sheet-mancer-box label > h4 {
display: inline;
}
div.sheet-mancer-box textarea {
overflow: scroll;
min-height: 5em;
width: 100%;
}
div.sheet-mancer-box hr {
margin-top: 3%;
margin-bottom: 3%;
}
div.sheet-mancer-box button,
div.sheet-bottombar button {
border-radius : 2px;
font-weight : bolder;
height : 2em;
padding : 5px;
text-transform : capitalize;
background-color: #333;
box-shadow : inset 0px 0px 3px 1px #7c7c7c;
color : #fff
}
div.sheet-mancer-box button:not(disabled):hover,
div.sheet-mancer-box button:not(disabled):focus,
button[name="act_import_launch"]:hover,
button[name="act_import_launch"]:focus {
text-shadow: 1px 1px 2px black, 0 0 25px red, 0 0 5px #e31715;
text-transform : capitalize;
border: 0.1em dotted white;
}
div.sheet-mancer-box button[type="action"],
div.sheet-mancer-box button[type="finish"] {
font-size: 1.5em;
width : 20%;
}
div.sheet-mancer-box button[type="finish"]:disabled {
color: rgba(255, 255, 255, 0.2);
cursor: not-allowed;
}
div.sheet-mancer-box button[type="cancel"] {
margin-top: 3%;
float: right;
font-size: 1em;
}
div.sheet-mancer-box .sheet-feedback {
color: #000e3b;
}
div.sheet-mancer-box .sheet-warning {
color: #610b0d;
}
div.sheet-mancer-box .sheet-results,
div.sheet-mancer-box .sheet-error {
border: 1px solid #333;
box-shadow: inset 0px 0px 3px 1px #7c7c7c;
height: 30em;
margin-top: 2%;
overflow: scroll;
padding: 1%;
}
div.sheet-mancer-box .sheet-results {
border: 1px solid #000e3b;
margin-right: 3%;
background: rgba(136, 221, 4, 0.1);
}
div.sheet-mancer-box .sheet-error {
border: 1px solid #610b0d;
background: rgba(204, 7, 1, 0.11);
}
div.sheet-result-grid {
display: grid;
grid-template-columns: 1fr 1fr;
}
div.sheet-result-grid h4:nth-of-type(1) {
grid-column: 1 / 1;
grid-row: 1 / 1;
}
div.sheet-result-grid h4:nth-of-type(2) {
grid-column: 2 / 2;
grid-row: 1 / 1;
}
div.sheet-results {
grid-column: 1 / 1;
grid-row: 2 / 2;
}
div.sheet-ignored {
grid-column: 2 / 2;
grid-row: 2 / 2;
}
div.sheet-hidden,
div.sheet-hidden-skills {
display: none;
}
h4.sheet-hidden-header {
display: inline;
}
input[name="comp_hidden"]:checked + div.sheet-hidden,
input[name="comp_hidden"]:checked + div.sheet-hidden-skills {
display: block;
}
div.sheet-hidden label {
display: inline-block;
width: 30%;
margin: 1% 1%;
}
div.sheet-hidden div {
display: inline-block;
font-weight: bold;
margin-right: 2%;
width: 40%
}
/********************************************************************************************************/
/******************************* FireFox *******************************************/