Exalted 2E: minor fixes & cleanup (#6549)

This commit is contained in:
Andreas J
2020-05-25 09:44:06 -04:00
committed by GitHub
parent 106475e521
commit fc76e279c1
4 changed files with 127 additions and 121 deletions
+6
View File
@@ -24,6 +24,12 @@ If you feel you've contributed to the development of this character sheet, don't
### Changelog ### Changelog
#### 2020-05-26
* fixed attribute ArmorLethalSoak so it now saves properly
* point image urls to main repo, some code cleanup
#### 2019-12-03 #### 2019-12-03
* Dragonblooded abilities are now tracked by separate Roll20 attributes, as not to interfere with the default Solar abililtes. The Solars abilities are no longer hidden with the red checkbox by default. * Dragonblooded abilities are now tracked by separate Roll20 attributes, as not to interfere with the default Solar abililtes. The Solars abilities are no longer hidden with the red checkbox by default.
+3 -3
View File
@@ -23,13 +23,13 @@
.sheet-rolltemplate-attack > div, .sheet-rolltemplate-attack > div,
.sheet-rolltemplate-damage > div { .sheet-rolltemplate-damage > div {
background-image: url(http://i.imgur.com/X0RX9Qu.png); background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/attack.png);
background-size: contain; background-size: contain;
background-position: right center; background-position: right center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.sheet-rolltemplate-damage > div { background-image: url(http://i.imgur.com/t9YYFMu.png); } .sheet-rolltemplate-damage > div { background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/damage.png); }
.sheet-rolltemplate-joinbattle > div > h3, .sheet-rolltemplate-joinbattle > div > h3,
.sheet-rolltemplate-joindebate > div > h3, .sheet-rolltemplate-joindebate > div > h3,
@@ -99,7 +99,7 @@ h4
h1, h1,
hr hr
{ {
background-image: url(http://i.imgur.com/TwZ84rO.jpg); background-image: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/bar.jpg);
background-position: left 50%; background-position: left 50%;
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: auto 10px; background-size: auto 10px;
+117 -117
View File
@@ -1,122 +1,7 @@
<rolltemplate class="sheet-rolltemplate-joinbattle">
<div>
<img src="http://i.imgur.com/SncEMzz.png" />
<h3>Join Battle!</h3>
<div>Wits ({{wits}}) +</div>
<div>Awareness ({{awareness}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-joindebate">
<div>
<img src="http://i.imgur.com/SncEMzz.png" />
<h3>Join Debate!</h3>
<div>Wits ({{wits}}) +</div>
<div>Awareness ({{awareness}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-joinwar">
<div>
<img src="http://i.imgur.com/SncEMzz.png" />
<h3>Join War!</h3>
<div>Wits ({{wits}}) +</div>
<div>War ({{war}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-attack">
<div>
{{#name}}
<h3 class="named">{{name}} (Attack!)</h3>
{{/name}}
{{^name}}
<h3 class="unnamed">Attack!</h3>
{{/name}}
<div>
{{#attribute name}}
{{attribute name}}
{{/attribute name}}
{{^attribute name}}
Attribute
{{/attribute name}}
({{attribute}}) +
</div>
<div>
{{#ability name}}
{{ability name}}
{{/ability name}}
{{^ability name}}
Ability
{{/ability name}}
({{ability}}) +
</div>
<div>
{{#specialty name}}
{{specialty name}}
{{/specialty name}}
{{^specialty name}}
Specialty
{{/specialty name}}
({{specialty}}) +
</div>
<div>Accuracy ({{accuracy}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successes ({{bonus successes}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-damage">
<div>
{{#name}}
<h3 class="named">{{name}} (Hit!)</h3>
{{/name}}
{{^name}}
<h3 class="unnamed">Hit!</h3>
{{/name}}
<div><span class="damage-type">{{damage type}}</span> Damage ({{damage}}) +</div>
{{#attribute}}
<div>
{{#attribute name}}
{{attribute name}}
{{/attribute name}}
{{^attribute name}}
Attribute
{{/attribute name}}
({{attribute}}) +
</div>
{{/attribute}}
{{#ability}}
<div>
{{#ability name}}
{{ability name}}
{{/ability name}}
{{^ability name}}
Ability
{{/ability name}}
({{ability}}) +
</div>
{{/ability}}
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successes ({{bonus successes}}) &ndash;</div>
<div>Target Soak ({{target soak}}) =</div>
{{#rollTotal() pool 0}}
<span class="minimum">{{minimum roll}} Successes</span>
{{/rollTotal() pool 0}}
<span class="regular">{{roll}} Successes</span>
</div>
</rolltemplate>
<div class="bio sheet-3colrow"> <div class="bio sheet-3colrow">
<div class="sheet-col center"> <div class="sheet-col center">
<img src="http://i.imgur.com/RgaO9Ft.gif" class="banner" /> <img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/solar.gif" class="banner" />
</div> </div>
<div class="sheet-col"> <div class="sheet-col">
<label><span>Name:</span> <input type="text" name="attr_character_name" /></label> <label><span>Name:</span> <input type="text" name="attr_character_name" /></label>
@@ -925,7 +810,7 @@
<div style="margin-bottom: 10px"> <div style="margin-bottom: 10px">
<label style="display: inline">Bashing:</label> <input type="number" class="fancy" name="attr_ArmorBashingSoak" min="0" value="0" /> <label style="display: inline">Bashing:</label> <input type="number" class="fancy" name="attr_ArmorBashingSoak" min="0" value="0" />
<label style="display: inline">|</label> <label style="display: inline">|</label>
<label style="display: inline">Lethal:</label> <input type="number" class="fancy" name="ArmorLethalSoak" min="0" value="0" /> <label style="display: inline">Lethal:</label> <input type="number" class="fancy" name="attr_ArmorLethalSoak" min="0" value="0" />
</div> </div>
<label>Fatigue: <input type="number" name="attr_ArmorFatigue" min="0" value="0" /></label> <label>Fatigue: <input type="number" name="attr_ArmorFatigue" min="0" value="0" /></label>
<label>Mobility: <input type="number" name="attr_ArmorMobility" max="0" value="0" /></label> <label>Mobility: <input type="number" name="attr_ArmorMobility" max="0" value="0" /></label>
@@ -2131,3 +2016,118 @@
</div> </div>
</div> </div>
</div> </div>
<rolltemplate class="sheet-rolltemplate-joinbattle">
<div>
<img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/join-encounter.png" />
<h3>Join Battle!</h3>
<div>Wits ({{wits}}) +</div>
<div>Awareness ({{awareness}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-joindebate">
<div>
<img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/join-encounter.png" />
<h3>Join Debate!</h3>
<div>Wits ({{wits}}) +</div>
<div>Awareness ({{awareness}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-joinwar">
<div>
<img src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Exalted2e/images/join-encounter.png" />
<h3>Join War!</h3>
<div>Wits ({{wits}}) +</div>
<div>War ({{war}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successess ({{bonus successess}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-attack">
<div>
{{#name}}
<h3 class="named">{{name}} (Attack!)</h3>
{{/name}}
{{^name}}
<h3 class="unnamed">Attack!</h3>
{{/name}}
<div>
{{#attribute name}}
{{attribute name}}
{{/attribute name}}
{{^attribute name}}
Attribute
{{/attribute name}}
({{attribute}}) +
</div>
<div>
{{#ability name}}
{{ability name}}
{{/ability name}}
{{^ability name}}
Ability
{{/ability name}}
({{ability}}) +
</div>
<div>
{{#specialty name}}
{{specialty name}}
{{/specialty name}}
{{^specialty name}}
Specialty
{{/specialty name}}
({{specialty}}) +
</div>
<div>Accuracy ({{accuracy}}) +</div>
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successes ({{bonus successes}}) =</div>
{{roll}} Successes
</div>
</rolltemplate>
<rolltemplate class="sheet-rolltemplate-damage">
<div>
{{#name}}
<h3 class="named">{{name}} (Hit!)</h3>
{{/name}}
{{^name}}
<h3 class="unnamed">Hit!</h3>
{{/name}}
<div><span class="damage-type">{{damage type}}</span> Damage ({{damage}}) +</div>
{{#attribute}}
<div>
{{#attribute name}}
{{attribute name}}
{{/attribute name}}
{{^attribute name}}
Attribute
{{/attribute name}}
({{attribute}}) +
</div>
{{/attribute}}
{{#ability}}
<div>
{{#ability name}}
{{ability name}}
{{/ability name}}
{{^ability name}}
Ability
{{/ability name}}
({{ability}}) +
</div>
{{/ability}}
<div>Bonus Dice ({{bonus dice}}) +</div>
<div>Bonus Successes ({{bonus successes}}) &ndash;</div>
<div>Target Soak ({{target soak}}) =</div>
{{#rollTotal() pool 0}}
<span class="minimum">{{minimum roll}} Successes</span>
{{/rollTotal() pool 0}}
<span class="regular">{{roll}} Successes</span>
</div>
</rolltemplate>
+1 -1
View File
@@ -4,5 +4,5 @@
"authors": "Brian Shields, Benjamin Bandelow", "authors": "Brian Shields, Benjamin Bandelow",
"preview": "exalted2e.jpg", "preview": "exalted2e.jpg",
"roll20userid": "235259,442", "roll20userid": "235259,442",
"instructions": "###Rollable Tables\nThe roll buttons assume you have two rollable tables, one named `exalted` and one named `exalted-damage`.\n\nThe table `exalted` should have the following table items:\n\n* \"botch\" (weight 1)\n* \"0\" (weight 5)\n* \"1\" (weight 3)\n* \"2\" (weight 1)\n\nThe table `exalted-damage` should have the following table items:\n\n* \"0\" (weight 6)\n* \"1\" (weight 4)\n\nIf your campaign includes Sidereals throwing around Ascending and/or Descending Destinies, you will either need the API (a mentor feature) or alternate rollable tables, and the roll buttons on the sheet will not be correct.\n\n**When creating your own macros,** be sure to multiply any Ability by `1-Ability|max`, to account for abilities which have been reset to 0. For example, `/r (@{Dexterity}+@{Melee})t[exalted]` will roll your Dexterity and Melee together, however if the checkbox to reset Melee to 0 is ticked, the roll will be incorrect. Instead, use `/r (@{Dexterity+@{Melee}*(1-@{Melee|max}))t[exalted]`.\n\n###Roll Templates\nThis sheet includes five roll templates: `joinbattle`, `joindebate`, `joinwar`, `attack`, and `damage`.\n\n`joinbattle` and `joindebate` both accept the properties `wits`, `awareness`, `bonus dice`, `bonus successes`, and `roll`. `joinwar` is the same, except `war` is used instead of `awareness`. If you create your own macros using these templates, each of the properties should be an inline roll and the `roll` property should roll an appropriate number of times on the `exalted` table.\n\n`attack` **requires** the properties `attribute`, `ability`, `specialty`, `accuracy`, `bonus dice`, `bonus successes`, and `roll`. As with the previous templates, if you create your own attack macros, these properties should all be inline rolls, and `roll` should roll on the `exalted` table. `attack` can *optionally* include the properties `name`, `attribute name`, `ability name`, and `specialty name`. The attack roll button in the repeating section on the **Combat** tab uses the weapon name for `name`, while the other name properties are unused. If supplied in a custom macro, they will be used in place of \"Attribute\", \"Ability\", and \"Specialty\".\n\n`damage` **requires** the properties `damage type`, `damage`, `bonus dice`, `bonus successes`, `target soak`, `pool`, `minimum roll`, and `roll`. `damage` can *optionally* include `name`, `attribute name`, `attribute`, `ability name`, and `ability`.\n\nThe properties `damage`, `attribute`, `ability`, `bonus dice`, `bonus successes`, `target soak`, `pool`, `minimum roll`, and `roll` should all be inline rolls. `minimum roll` should roll on the `exalted-damage` table a number of times equal to your minimum damage for the attack (generally 1, except for overwhelming weapons). `roll` should roll on the `exalted-damage` table the appropriate number of times. The two damage rolls are distinguised by the `pool` property. **In a custom macro, `pool` should be set to roll a number of zero-sided dice equal to your damage dice pool minus your minimum damage. This roll should generate successes on results of 1 or greater, and failures on results of 1 or less.** Such an inline roll looks something along the lines of `[[(Damage + Attribute + Ability + Bonus Dice - Target Soak - Minimum Damage)d0>1f<1]]`. This computation results in either 0 (for a die pool of 0 or less) or the size of the pool expressed as a negative value. This lets the template know whether to use your minimum damage or your regular damage." "instructions": "###Rollable Tables\nThe roll buttons assume you have two rollable tables, one named `exalted` and one named `exalted-damage`.\n\nThe table `exalted` should have the following table items:\n\n* \"botch\" (weight 1)\n* \"0\" (weight 5)\n* \"1\" (weight 3)\n* \"2\" (weight 1)\n\nThe table `exalted-damage` should have the following table items:\n\n* \"0\" (weight 6)\n* \"1\" (weight 4)\n\nIf your campaign includes Sidereals throwing around Ascending and/or Descending Destinies, you will either need the API (a mentor feature) or alternate rollable tables, and the roll buttons on the sheet will not be correct.\n\n**When creating your own macros,** be sure to multiply any Ability by `1-Ability|max`, to account for abilities which have been reset to 0. For example, `/r (@{Dexterity}+@{Melee})t[exalted]` will roll your Dexterity and Melee together, however if the checkbox to reset Melee to 0 is ticked, the roll will be incorrect. Instead, use `/r (@{Dexterity+@{Melee}*(1-@{Melee|max}))t[exalted]`.\n\n###Roll Templates\nThis sheet includes five roll templates: `joinbattle`, `joindebate`, `joinwar`, `attack`, and `damage`.\n\n`joinbattle` and `joindebate` both accept the properties `wits`, `awareness`, `bonus dice`, `bonus successes`, and `roll`. `joinwar` is the same, except `war` is used instead of `awareness`. If you create your own macros using these templates, each of the properties should be an inline roll and the `roll` property should roll an appropriate number of times on the `exalted` table.\n\n`attack` **requires** the properties `attribute`, `ability`, `specialty`, `accuracy`, `bonus dice`, `bonus successes`, and `roll`. As with the previous templates, if you create your own attack macros, these properties should all be inline rolls, and `roll` should roll on the `exalted` table. `attack` can *optionally* include the properties `name`, `attribute name`, `ability name`, and `specialty name`. The attack roll button in the repeating section on the **Combat** tab uses the weapon name for `name`, while the other name properties are unused. If supplied in a custom macro, they will be used in place of \"Attribute\", \"Ability\", and \"Specialty\".\n\n`damage` **requires** the properties `damage type`, `damage`, `bonus dice`, `bonus successes`, `target soak`, `pool`, `minimum roll`, and `roll`. `damage` can *optionally* include `name`, `attribute name`, `attribute`, `ability name`, and `ability`.\n\nThe properties `damage`, `attribute`, `ability`, `bonus dice`, `bonus successes`, `target soak`, `pool`, `minimum roll`, and `roll` should all be inline rolls. `minimum roll` should roll on the `exalted-damage` table a number of times equal to your minimum damage for the attack (generally 1, except for overwhelming weapons). `roll` should roll on the `exalted-damage` table the appropriate number of times. The two damage rolls are distinguised by the `pool` property. **In a custom macro, `pool` should be set to roll a number of zero-sided dice equal to your damage dice pool minus your minimum damage. This roll should generate successes on results of 1 or greater, and failures on results of 1 or less.** Such an inline roll looks something along the lines of `[[(Damage + Attribute + Ability + Bonus Dice - Target Soak - Minimum Damage)d0>1f<1]]`. This computation results in either 0 (for a die pool of 0 or less) or the size of the pool expressed as a negative value. This lets the template know whether to use your minimum damage or your regular damage.\n See [Readme](https://github.com/Roll20/roll20-character-sheets/tree/master/Exalted2e) for more details and Changelog."
} }