diff --git a/Only-War-Enhanced/OnlyWarEnhanced.css b/Only-War-Enhanced/OnlyWarEnhanced.css index 7662acaae1..c32db7b95a 100644 --- a/Only-War-Enhanced/OnlyWarEnhanced.css +++ b/Only-War-Enhanced/OnlyWarEnhanced.css @@ -107,7 +107,7 @@ ______________________________ start of multipurpose or special-use classes such .sheet-full_width_49px { width: calc(100% - 49px); } .sheet-full_width_30px { width: calc(100% - 30px); } -/* TODO: Add the visibility toggles for collapsible weapon blocks */ + .sheet-margin_adjust { margin-top: -23px; margin-bottom: 4px; text-align: right; } .sheet-margin_adjust2 { margin-top: -22px; margin-bottom: 4px; margin-left: -25px; text-align: right; } .sheet-margin_adjust_wep { margin-top: -19px; margin-bottom: 2px; margin-left: 3px; text-align: right; } @@ -120,6 +120,30 @@ ______________________________ start of multipurpose or special-use classes such .sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_block { display: block; } .sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_toggle { display: none; } +.sheet-collapsible_entity_toggle { display: block; } +.sheet-collapsible_entity_block { display: none; } +.sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_block, +.sheet-collapsible_entity_switch_weapon[value='1'] ~ .sheet-collapsible_entity_block { display: block; } +.sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_toggle, +.sheet-collapsible_entity_switch_weapon[value='1'] ~ .sheet-collapsible_entity_toggle { display: none; } + +.sheet-collapsible_entity_toggle_min { display: block; } +.sheet-collapsible_entity_block_min { display: none; } +.sheet-collapsible_entity_switch_min:checked ~ .sheet-collapsible_entity_block_half, +.sheet-collapsible_entity_switch_weapon[value='2'] ~ .sheet-collapsible_entity_block_half { display: block; } +.sheet-collapsible_entity_switch_min:checked ~ .sheet-collapsible_entity_toggle_half, +.sheet-collapsible_entity_switch_weapon[value='2'] ~ .sheet-collapsible_entity_toggle_half { display: none; } + +.sheet-collapsible_entity_toggle_half { display: block; } +.sheet-collapsible_entity_block_half { display: none; } +.sheet-collapsible_entity_switch_half:checked ~ .sheet-collapsible_entity_block_min, +.sheet-collapsible_entity_switch_weapon[value='3'] ~ .sheet-collapsible_entity_block_min { display: block; } +.sheet-collapsible_entity_switch_half:checked ~ .sheet-collapsible_entity_toggle_min, +.sheet-collapsible_entity_switch_weapon[value='3'] ~ .sheet-collapsible_entity_toggle_min { display: none; } + + + + .sheet-hidden { display: none; } .sheet-input_background { @@ -716,11 +740,12 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_gs_a4 { grid-area: rwa4; color: white; font-size: 12px; width: 55px!important;} .sheet-equipment_ranged_weapons_gs_a5 { grid-area: rwa5; color: white; font-size: 12px; width: 45px!important;} -/*TODO: add a subgrid right here with 2 cells - for the minmax*/ -.sheet-equipment_ranged_weapons_gs_b1 { grid-area: rwb1; color: white; font-size: 12px; padding: 0px 2px; } -.sheet-equipment_ranged_weapons_gs_b2 { grid-area: rwb2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_b1 { grid-area: rwb1; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} +.sheet-equipment_ranged_weapons_gs_b2 { grid-area: rwb2; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} .sheet-equipment_ranged_weapons_gs_b3 { grid-area: rwb3; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_b4 { grid-area: rwb4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_b5 { grid-area: rwb5; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_ranged_weapons_gs_b6 { grid-area: rwb6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_ranged_weapons_gs_c1 { grid-area: rwc1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_c2 { grid-area: rwc2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } @@ -750,6 +775,8 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_gs_e8 { grid-area: rwe8; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_ranged_weapons_gs_e9 { grid-area: rwe9; color: white; font-size: 30px; margin-top: -27px; text-align: center; height: 15px; } .sheet-equipment_ranged_weapons_gs_e10 { grid-area: rwe10; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_e11 { grid-area: rwe11; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_ranged_weapons_gs_e12 { grid-area: rwe12; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_f1 { grid-area: rwf1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_f2 { grid-area: rwf2; color: white; font-size: 12px; padding: 0px 2px; } @@ -780,9 +807,9 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_grid2 { align-items: center; display: grid; - grid-template-columns: auto auto auto auto auto auto auto auto auto auto; + grid-template-columns: 25px 25px auto auto auto auto auto auto auto auto; grid-template-areas: - 'rwb1 rwb2 rwb2 rwb2 rwb2 rwb2 rwb3 rwb4 rwb4 rwb4'; + 'rwb1 rwb2 rwb3 rwb4 rwb4 rwb4 rwb4 rwb5 rwb6 rwb6'; } @@ -804,13 +831,13 @@ ______________________________ start of equipment tab __________________________ 'rwd1 rwd2 rwd3 rwd4 rwd5 rwd6 rwd7 rwd8'; } -/* gs_e RoF, Magazine */ +/* gs_e RoF, Magazine, Carry? */ .sheet-equipment_ranged_weapons_grid5 { align-items: center; display: grid; - grid-template-columns: auto 10% 4% 10% 4% 10% 6px auto 13% 4% 13%; /* nonstandard */ + grid-template-columns: auto 8% 3% 8% 3% 8% auto 10% 3% 10% auto 20px; /* nonstandard */ grid-template-areas: - 'rwe1 rwe2 rwe3 rwe4 rwe5 rwe6 . rwe7 rwe8 rwe9 rwe10'; + 'rwe1 rwe2 rwe3 rwe4 rwe5 rwe6 rwe7 rwe8 rwe9 rwe10 rwe11 rwe12'; } /* gs_f Trained?, HitMod, Reload, Weight */ @@ -837,10 +864,12 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_melee_weapons_gs_a4 { grid-area: mwa4; color: white; font-size: 12px; width: 55px!important;} .sheet-equipment_melee_weapons_gs_a5 { grid-area: mwa5; color: white; font-size: 12px; width: 45px!important;} -.sheet-equipment_melee_weapons_gs_b1 { grid-area: mwb1; color: white; font-size: 12px; padding: 0px 2px; } -.sheet-equipment_melee_weapons_gs_b2 { grid-area: mwb2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_b1 { grid-area: mwb1; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} +.sheet-equipment_melee_weapons_gs_b2 { grid-area: mwb2; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} .sheet-equipment_melee_weapons_gs_b3 { grid-area: mwb3; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_b4 { grid-area: mwb4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_b5 { grid-area: mwb5; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_melee_weapons_gs_b6 { grid-area: mwb6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_melee_weapons_gs_c1 { grid-area: mwc1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_c2 { grid-area: mwc2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } @@ -864,6 +893,8 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_melee_weapons_gs_e4 { grid-area: mwe4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_melee_weapons_gs_e5 { grid-area: mwe5; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_e6 { grid-area: mwe6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_e7 { grid-area: mwe7; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_melee_weapons_gs_e8 { grid-area: mwe8; color: white; font-size: 12px; padding: 0px 2px; } /* gs_a Range/Attack/Aim Dropdowns, Hit/Dmg Buttons*/ .sheet-equipment_melee_weapons_grid1 { @@ -880,7 +911,7 @@ ______________________________ start of equipment tab __________________________ display: grid; grid-template-columns: auto auto auto auto auto auto auto auto auto auto; grid-template-areas: - 'mwb1 mwb2 mwb2 mwb2 mwb2 mwb2 mwb2 mwb3 mwb4 mwb4'; + 'mwb1 mwb2 mwb3 mwb4 mwb4 mwb4 mwb4 mwb5 mwb6 mwb6'; } /* gs_c reach, damage, pen, type */ @@ -902,13 +933,13 @@ ______________________________ start of equipment tab __________________________ } -/* gs_e trained?, hitmod, weight */ +/* gs_e trained?, hitmod, weight, carry? */ .sheet-equipment_melee_weapons_grid5 { align-items: center; display: grid; - grid-template-columns: auto 20px auto auto auto auto auto auto; + grid-template-columns: auto 20px auto auto auto auto auto 20px; grid-template-areas: - 'mwe1 mwe2 mwe3 mwe4 mwe4 mwe5 mwe6 mwe6'; + 'mwe1 mwe2 mwe3 mwe4 mwe5 mwe6 mwe7 mwe8'; } diff --git a/Only-War-Enhanced/OnlyWarEnhanced.html b/Only-War-Enhanced/OnlyWarEnhanced.html index 571873ef34..cbffa2389d 100644 --- a/Only-War-Enhanced/OnlyWarEnhanced.html +++ b/Only-War-Enhanced/OnlyWarEnhanced.html @@ -1166,15 +1166,19 @@ - +
-
Name
- -
Class
- + + + + +
Name
+ +
Class
+
-
+
Range
Damage
@@ -1185,7 +1189,7 @@
Type
-
+
Proven
Primitive
@@ -1196,7 +1200,7 @@
Accurate
-
+
RoF
/
@@ -1207,8 +1211,10 @@
/
+
Carry?
+
-
+
Trained?
Hit Mod
@@ -1218,7 +1224,7 @@
Weight
-
+
Domain
Mishap Chance
@@ -1231,9 +1237,9 @@
Spray?
- +
-
+
-
Domain
- + + + + +
Name
+ +
Domain
+
Reach
@@ -1312,8 +1322,10 @@
Weight
- +
Carry?
+
+
@@ -1466,7 +1478,7 @@

Special Weapon Dice Rolls

- +
@@ -2738,12 +2750,14 @@ ven = source + 'weapon_vengeful', // crit min = source + 'weapon_min', // proven max = source + 'weapon_max', // primitive + spr = source + 'weapon_spray', // spray set = source + 'weapon_setting'; // overcharge/load / maximal let dmg = redice.exec(v[dam]); ven = parseInt(v[ven], 10) || 0, min = parseInt(v[min], 10) || 0, max = parseInt(v[max], 10) || 0, + spr = parseInt(v[spr], 10) || 0, set = parseInt(v[set], 10) || 0; if (!dmg) { @@ -2762,6 +2776,7 @@ if (max > 0) damTotal += '{'; damTotal += (dicetype == 'd5') ? 'ceil(1d10/2)' : '1d10'; if (ven > 0) damTotal += 'cs>' + ven; + if (spr) damTotal += 'cf9'; if (min > 0) damTotal += ', {' + min + '}}kh1'; if (max > 0) damTotal += ', {' + max + '}}kl1'; } @@ -2782,8 +2797,8 @@ }; let fieldsDMG = [ - 'vehiclerangedweapons:V_R_weapon_dam-roll', 'vehiclerangedweapons:V_R_weapon_vengeful', 'vehiclerangedweapons:V_R_weapon_min', 'vehiclerangedweapons:V_R_weapon_max', 'vehiclerangedweapons:V_R_weapon_setting', - 'rangedweapons:R_weapon_dam-roll', 'rangedweapons:R_weapon_vengeful', 'rangedweapons:R_weapon_min', 'rangedweapons:R_weapon_max', 'rangedweapons:R_weapon_setting', + 'vehiclerangedweapons:V_R_weapon_dam-roll', 'vehiclerangedweapons:V_R_weapon_vengeful', 'vehiclerangedweapons:V_R_weapon_min', 'vehiclerangedweapons:V_R_weapon_max', 'vehiclerangedweapons:V_R_weapon_spray', 'vehiclerangedweapons:V_R_weapon_setting', + 'rangedweapons:R_weapon_dam-roll', 'rangedweapons:R_weapon_vengeful', 'rangedweapons:R_weapon_min', 'rangedweapons:R_weapon_max', 'rangedweapons:R_weapon_spray', 'rangedweapons:R_weapon_setting', 'vehiclemeleeweapons:V_M_weapon_dam-roll', 'vehiclemeleeweapons:V_M_weapon_vengeful', 'vehiclemeleeweapons:V_M_weapon_min', 'vehiclemeleeweapons:V_M_weapon_max', 'meleeweapons:M_weapon_dam-roll', 'meleeweapons:M_weapon_vengeful', 'meleeweapons:M_weapon_min', 'meleeweapons:M_weapon_max', ]; @@ -2798,6 +2813,7 @@ `repeating_rangedweapons_${id}_R_weapon_vengeful`, `repeating_rangedweapons_${id}_R_weapon_min`, `repeating_rangedweapons_${id}_R_weapon_max`, + `repeating_rangedweapons_${id}_R_weapon_spray`, `repeating_rangedweapons_${id}_R_weapon_setting` ); }); @@ -2827,7 +2843,8 @@ `repeating_vehiclerangedweapons_${id}_V_R_weapon_vengeful`, `repeating_vehiclerangedweapons_${id}_V_R_weapon_min`, `repeating_vehiclerangedweapons_${id}_V_R_weapon_max`, - `repeating_rangedweapons_${id}_V_R_weapon_setting` + `repeating_vehiclerangedweapons_${id}_V_R_weapon_spray`, + `repeating_vehiclerangedweapons_${id}_V_R_weapon_setting` ); }); calcDmg(sources, fieldnames); @@ -3155,8 +3172,7 @@ {{#damage}}
{{character}} rolls for damage with {{weapon}}
{{#description}}
{{/description}} - {{^description}}{{#spray}}
{{/spray}}{{/description}} - {{^description}}{{^spray}}
{{/spray}}{{/description}} + {{^description}}
{{/description}}
Type:
@@ -3173,14 +3189,13 @@
{{pen}}
+ {{#rollWasFumble() damage}} + {{#rollTotal() spray 1}}
That's not good...
{{/rollTotal() spray 1}} + {{/rollWasFumble() damage}}
+ {{/damage}} - {{#spray}} - {{#description}}
{{/description}} - {{^description}}
{{/description}} -
Spray weapons jam on any natural Damage die roll of 9.
-
- {{/spray}} + {{#description}} {{#name}}
{{name}}
{{/name}}
@@ -3189,7 +3204,6 @@ {{/description}} - {{#righteousfury}}
{{character}} attacks with Righteous Fury (p258/p276)