Skip to content

Commit

Permalink
Update FraggedEmpire2e.html and FraggedEmpire2e.css
Browse files Browse the repository at this point in the history
FraggedEmpire2E.html and FraggedEmpire 2E.css
Sheet Modification

# Submission Checklist
## Required

<!-- Check these off by adding an 'x' to each of these boxes. If you fail to meet all these criteria, your PR will be rejected. -->

- [X] The pull request title clearly contains the name of the sheet I am editing.
- [X] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
- [X] The pull request makes changes to files in only one sub-folder.
- [X] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

- [X] I have followed the [Character Sheets Standards](https://wiki.roll20.net/Building_Character_Sheets#Roll20_Character_Sheets_Repository) when building this sheet.

<!-- Please check any that apply: -->

- [ ] I have authorization from the game's publisher to make this an official sheet on Roll20 with their name attached.
- [ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
- [ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

# Changes / Description

Added Strong Hit print functionality and updated CSS.
  • Loading branch information
Wrathborn committed Jan 4, 2025
1 parent e5421c1 commit 043f19d
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 33 deletions.
60 changes: 59 additions & 1 deletion Fragged-Empire 2E/FraggedEmpire2E.css
Original file line number Diff line number Diff line change
Expand Up @@ -272,4 +272,62 @@ input[type="number"]{
.sheet-rolltemplate-attack .inlinerollresult.importantroll {
color: #4A57ED;
border: none;
}
}

/** Strong Hit Tests **/
.sheet-rolltemplate-stronghit table {
width: 189px;
padding: 2px;
border: 1px solid;
background-color: #ffffff;
}

.sheet-rolltemplate-stronghit th {
color: rgb(126, 45, 64);
padding-left: 5px;
line-height: 1.6em;
font-size: 1.2em;
text-align: left;
font-family: "Times New Roman", Times, serif;
font-variant: small-caps;
}

.sheet-rolltemplate-stronghit .sheet-subheader {
color: #000;
font-size: 1em;
font-style: italic;
}

.sheet-rolltemplate-stronghit .sheet-arrow-right {
border-top: 3px solid transparent;
border-bottom: 3px solid transparent;
border-left: 180px solid rgb(126, 45, 64);
}

.sheet-rolltemplate-stronghit .sheet-tcat {
font-style: italic;
}

.sheet-rolltemplate-stronghit td {
padding-left: 5px;
}

.sheet-rolltemplate-stronghit .inlinerollresult {
background-color: #ffffff;
border: none;
}

.sheet-rolltemplate-stronghit .inlinerollresult.fullcrit {
color: #3FB315;
border: none;
}

.sheet-rolltemplate-stronghit .inlinerollresult.fullfail {
color: #B31515;
border: none;
}

.sheet-rolltemplate-stronghit .inlinerollresult.importantroll {
color: #4A57ED;
border: none;
}
95 changes: 63 additions & 32 deletions Fragged-Empire 2E/FraggedEmpire2E.html
Original file line number Diff line number Diff line change
Expand Up @@ -756,23 +756,28 @@
<th style="text-align: left;"><span>Strong Hit</span></th>
<th style="text-align: left;"><span>Requirement</span></th>
<th style="text-align: left;"><span>Result</span></th>
<th style="text-align: left;"><span>Print</span></th>
</tr>
</thead>
<tbody>
<tr>
<td style="vertical-align:top;width:20%;"><input type="text" name="attr_skill_hit1" style="width: 200px;" value="Effort" disabled= "true" /></td>
<td style="vertical-align:top;width:30%;"><textarea name="attr_skill_req1" style="height:52px;width:99%;resize:vertical;" disabled="true">Primary or Vehicle System Skill</textarea></td>
<td style="vertical-align:top;width:50%;"><textarea name="attr_skill_res1" style="height:52px;width:99%;resize:vertical;" disabled="true">You may re-roll a single die</textarea></td>
<td style="vertical-align:top;width:45%;"><textarea name="attr_skill_res1" style="height:52px;width:99%;resize:vertical;" disabled="true">You may re-roll a single die</textarea></td>
<td style="width:5%;"><button type="roll" value="&{template:stronghit} {{stronghittitle=STRONG HIT: @{skill_hit1}}} {{stronghitname=Effort}} {{shrequirement=Primary or Vehicle System Skill}} {{sheffect=You may re-roll a single die.}}" name="roll_stronghit1"></button></td>
</tr>
</tbody>
</table>
<fieldset class="repeating_skillstronghits">
<table>
<tr>
<td style="vertical-align:top;width:20%;"><input type="text" name="attr_skill_hit2" style="width: 200px;"></td>
<td style="vertical-align:top;width:30%;"><textarea name="attr_skill_req2" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="vertical-align:top;width:50%;"><textarea name="attr_skill_res2" style="height:52px;width:99%;resize:vertical;"></textarea></td>
</tr>
<tbody>
<tr>
<td style="vertical-align:top;width:20%;"><input type="text" name="attr_skill_hit2" style="width: 200px;" /></td>
<td style="vertical-align:top;width:30%;"><textarea name="attr_skill_req2" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="vertical-align:top;width:45%;"><textarea name="attr_skill_res2" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="width:5%;"><button type="roll" value="&{template:stronghit} {{stronghittitle=STRONG HIT: @{skill_hit2}}} {{stronghitname=@{skill_hit2}}} {{shrequirement=@{skill_req2}}} {{sheffect=@{skill_res2}}}" name="roll_stronghit2"></button></td>
</tr>
</tbody>
</table>
</fieldset>
</div>
Expand Down Expand Up @@ -1302,7 +1307,7 @@
<th style="text-align:right;">Munitions:</th>
<th><input style="width:95%;" type="number" name="attr_weapon1_munitions" value="3" /></th>
<th></th>
<th style="text-align:right;">Reloads (4 Max):</th>
<th style="text-align:right;">Reloads (4 Max):</th>
<th><input style="width:95%;" type="number" name="attr_weapon1_reloads" min="0" max="4" value="0" /></th>
</tr>
<tr>
Expand Down Expand Up @@ -1352,10 +1357,10 @@
<th></th>
<th style="text-align:right;">Munitions:</th>
<th><input style="width:95%;" type="number" name="attr_weapon2_munitions" value="3" /></th>
<th></th>
<th style="text-align:right;">Reloads (4 Max):</th>
<th><input style="width:95%;" type="number" name="attr_weapon1_reloads" min="0" max="4" value="0" /></th>
</tr>
<th></th>
<th style="text-align:right;">Reloads (4 Max):</th>
<th><input style="width:95%;" type="number" name="attr_weapon1_reloads" min="0" max="4" value="0" /></th>
</tr>
<tr>
<td style="height:10px;"> </td>
</tr>
Expand Down Expand Up @@ -1539,12 +1544,14 @@
<tr>
<td style="vertical-align:top;width:20%;"><input type="text" name="attr_combatskill_hit1" style="width: 200px;" value="Critical Hit" disabled= "true" /></td>
<td style="vertical-align:top;width:30%;"><textarea name="attr_combatskill_req1" style="height:52px;width:99%;resize:vertical;" disabled="true">Once per Attack</textarea></td>
<td style="vertical-align:top;width:50%;"><textarea name="attr_combatskill_res1" style="height:52px;width:99%;resize:vertical;" disabled="true">All damaged characters suffer your Weapon's Critical Damage</textarea></td>
<td style="vertical-align:top;width:45%;"><textarea name="attr_combatskill_res1" style="height:52px;width:99%;resize:vertical;" disabled="true">All damaged characters suffer your Weapon's Critical Damage</textarea></td>
<td style="width:5%;"><button type="roll" value="&{template:stronghit} {{stronghittitle=STRONG HIT: CRITICAL HIT}} {{stronghitname=Critical Hit}} {{shrequirement=Once per Attack}} {{sheffect=All damaged characters suffer your Weapon's Critical Damage}}" name="roll_wstronghit1"></button></td>
</tr>
<tr>
<td style="vertical-align:top;"><input type="text" name="attr_combatskill_hit2" style="width: 200px;" value="Critical Boost" disabled= "true" /></td>
<td style="vertical-align:top;"><textarea name="attr_combatskill_req2" style="height:52px;width:99%;resize:vertical;" disabled="true">Target has 0 Endurance</textarea></td>
<td style="vertical-align:top;"><textarea name="attr_combatskill_res2" style="height:52px;width:99%;resize:vertical;" disabled="true">+1 Critical Damage vs all damaged characters with 0 Endurance</textarea></td>
<td style="width:5%;"><button type="roll" value="&{template:stronghit} {{stronghittitle=STRONG HIT: CRITICAL BOOST}} {{stronghitname=Critical Boost}} {{shrequirement=Target has 0 Endurance}} {{sheffect=+1 Critical Damage vs all damaged characters with 0 Endurance}}" name="roll_wstronghit2"></button></td>
</tr>
</tbody>
</table>
Expand All @@ -1554,7 +1561,8 @@
<tr>
<td style="vertical-align:top;width:20%;"><input type="text" name="attr_combat_strong_hit_new" style="width: 200px;" /></td>
<td style="vertical-align:top;width:30%;"><textarea name="attr_combat_strong_hit_req_new" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="vertical-align:top;width:50%;"><textarea name="attr_combat_strong_hit_res_new" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="vertical-align:top;width:45%;"><textarea name="attr_combat_strong_hit_res_new" style="height:52px;width:99%;resize:vertical;"></textarea></td>
<td style="width:5%;"><button type="roll" value="&{template:stronghit} {{stronghittitle=STRONG HIT: @{combat_strong_hit_new}}} {{stronghitname=@{combat_strong_hit_new}}} {{shrequirement=@{combat_strong_hit_req_new}}} {{sheffect=@{combat_strong_hit_res_new}}}" name="roll_wstronghit3"></button></td>
</tr>
</tbody>
</table>
Expand Down Expand Up @@ -1693,39 +1701,50 @@
<table>
<tr>
<td><div class="sheet-attributes"><span>Velocity</span></div></td>
<td></td>
<td><div class="sheet-small-right"><span>Current:</span></div></td>
<td><input type="number" name="attr_cur_vel" min="0" max ="6" value="0"/></td>
<td></td>
<td><div class="sheet-small-right"><span>Max:</span></div></td>
<td><input type="number" name="attr_max_vel" value="6" disabled="true"/></td>
</tr>
<tr>
<td><div class="sheet-attributes"><span>Travel Time</span></div></td>
<td colspan="3"></td>
<td><b>+</b><input type="number" name="attr_travel_time" value="0" /><b>%</b></td>
<td colspan="4"></td>
<td><div class="sheet-small-right"><b>+</b></div></td>
<td><input type="number" name="attr_travel_time" value="0" /><b>%</b></td>
</tr>
<tr>
<td><div class="sheet-attributes"><span>Shield</span></div></td>
<td><div class="sheet-small-right"><span>Current:</span></div></td>
<td><input type="number" name="attr_cur_shield" min="0" value="0"/></td>
<td><div class="sheet-small-right"><span>Max:</span></div></td>
<td><input type="number" name="attr_max_shield" value="0"/></td>
<td><input type="number" name="attr_cur_shield" min="0" value="0"/><b>+</b></td>
<td><div class="sheet-small-right"><span>Mod:</span></div></td>
<td><input type="number" name="attr_cur_shieldmod" min="0" value="0"/><b>+</b></td>
<td><div class="sheet-small-right"><span>= Max:</span></div></td>
<td><input type="number" name="attr_max_shield" min="0" value="@{max_pow}*5+10+@{cur_shieldmod}" disabled="true"/></td>
</tr>
<tr>
<td><div class="sheet-attributes"><span>Regen</span></div></td>
<td><div class="sheet-small-right"><span>Pow +</span></div></td>
<td><div class="sheet-small-right"><span>Pow</span></div></td>
<td><div class="sheet-small-right"><b>+</b></div></td>
<td><input type="number" name="attr_mod_regen" value="0"/></td>
<td></td>
<td><div class="sheet-small-center">=</div></td>
<td><input type="number" name="attr_regen" value="@{cur_pow}+@{mod_regen}" disabled="true"/></td>
</tr>
<tr>
<td><div class="sheet-attributes"><span>Inf Cost (per PC)</span></div></td>
<td><div class="sheet-small-right"><span>Build:<input type="number" name="attr_ship_build_cost" value="0" /></span></div></td>
<td><div class="sheet-small-right"><span>Traits:<input type="number" name="attr_ship_trait_cost" value="0" /></span></div></td>
<td><div class="sheet-small-right"><span>Weapons:<input type="number" name="attr_ship_weapons_cost" value="0" /></span></div></td>
<td><div class="sheet-small-right"><span>Total:<input type="number" name="attr_ship_total_cost" value="@{ship_build_cost}+@{ship_trait_cost}+@{ship_weapons_cost}" disabled="true" /></span></div></td>
<td colspan="7"><div class="sheet-attributes"><span>Inf Cost (per PC)</span></div></td>
</tr>
<td><div class="sheet-small-right"><span>Build</span></div></td>
<td><span><input type="number" name="attr_ship_build_cost" value="0" /></span></td>
<td><div class="sheet-small-right"><span>Traits</span></div></td>
<td><span><input type="number" name="attr_ship_trait_cost" value="0" /></span></td>
<td><div class="sheet-small-right"><span>Weapons</span></div></td>
<td><span><input type="number" name="attr_ship_weapons_cost" value="0" /></span></td>
<td><div class="sheet-small-right"><span>= Total:<input type="number" name="attr_ship_total_cost" value="@{ship_build_cost}+@{ship_trait_cost}+@{ship_weapons_cost}" disabled="true" /></span></div></td>
</tr>
<tr>
<td colspan="4"><div class="sheet-attributes"><span>SubSys Cost (individually paid for)</span></div></td>
<td colspan="6"><div class="sheet-attributes"><span>SubSys Cost (individually paid for)</span></div></td>
<td><div class="sheet-small-right"><span><input type="number" name="attr_ship_subsys_cost" value="0" /></span></div></td>
</tr>
</table>
Expand Down Expand Up @@ -1917,7 +1936,7 @@
<th style="text-align: right;"><span>Mount:</span></th>
<td><input type="number" name="attr_ship_ordinance1_mount" value="0"></td>
<th style="text-align: right;"><span>Acquire:</span></th>
<td><input type="number" name="attr_ship_ordinance1_acquire" value="0"></td>
<td><input type="text" name="attr_ship_ordinance1_acquire" value="0"></td>
<th style="text-align: right;"><span>Influence:</span></th>
<td><input type="number" name="attr_ship_ordinance1_influence" value="0"></td>
</tr>
Expand Down Expand Up @@ -2086,7 +2105,7 @@
<option value="Suites">Suites</option>
</select>
</td>
<td style="width:25%;">
<td style="width:20%;">
<select style="width:95%;" name="attr_ship_susbsys8_acquire">
<option value="Free">Free</option>
<option selected value="14t*">14t*</option>
Expand All @@ -2106,7 +2125,7 @@
<option value="Craft">Craft</option>
</select>
</td>
<td style="width:25%;">
<td style="width:20%;">
<select style="width:95%;" name="attr_ship_susbsys9_acquire">
<option value="+0t">+0t</option>
<option selected value="+0t*">+0t*</option>
Expand All @@ -2120,10 +2139,10 @@
<fieldset class="repeating_subsystems">
<table style="width:99%;">
<tr>
<td style="width:59%;"><input type="text" style="width:95%;" name="attr_ship_subsystem" style="width:99%;" /></td>
<td style="width:20%;"><input type="text" style="width:95%;" name="attr_ship_subs_acquire" style="width:99%;" placeholder="12t" /></td>
<td style="width:15%;"><input type="number" style="width:95%;" name="attr_ship_subs_cost" style="width:99%;" value="0" /></td>
<td><input type="checkbox" name="attr_ship_subsystem_dmg" /></td>
<td style="width:59%;"><input type="text" style="width:95%;" name="attr_ship_subsystem" /></td>
<td style="width:20%;"><input type="text" style="width:95%;" name="attr_ship_subs_acquire" placeholder="12t" /></td>
<td style="width:15%;"><input type="number" style="width:95%;" name="attr_ship_subs_cost" value="0" /></td>
<td style="width:5%;"><input type="checkbox" name="attr_ship_subsystem_dmg" /></td>
</tr>
</table>
</fieldset>
Expand Down Expand Up @@ -2175,6 +2194,18 @@
</div>
<!-- ========== END SHEET CREDITS ========== -->
<!-- ========== START ROLL TEMPLATES ========== -->
<!-- ========== BEGIN STRONG HIT TEXT TEMPLATE ========== -->
<rolltemplate class="sheet-rolltemplate-stronghit">
<table style="width:95%;">
<tr>
<th>{{stronghittitle}}</th>
</tr>
<tr>
<td>STRONG HIT: <b>{{stronghitname}}</b> ({{shrequirement}}) {{sheffect}}</td>
</tr>
</table>
</rolltemplate>
<!-- ========== END STRONG HIT TEXT TEMPLATE ========== -->
<!-- ========== BEGIN SKILL TEST TEMPLATE ========== -->
<rolltemplate class="sheet-rolltemplate-skilltest">
<table>
Expand Down

0 comments on commit 043f19d

Please sign in to comment.