Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
- Added the ability to change the speed of characters.
  - Speed is measured in grid units (5' grid scale for characters and 50' grid scale for ships).
  - Player characters can change this value at the bottom of their Features tab.
  - Non-player characters can change this value on their Details tab.
  • Loading branch information
sneat authored Sep 16, 2024
2 parents 2668d1e + bd5bb80 commit 447e48e
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
- Prompt the player when they try to reload a weapon that has run out of ammo.
- Fumbling Gunpowder weapons now correctly rolls on the Gunpowder Fumble table.
- Increased the width of the Ammo select dropdown on character sheets.
- Added the ability to change the speed of characters.
- Speed is measured in grid units (5' grid scale for characters and 50' grid scale for ships).
- Player characters can change this value at the bottom of their Features tab.
- Non-player characters can change this value on their Details tab.

# v1.0.2

Expand Down
5 changes: 5 additions & 0 deletions css/pirateborg.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/pirateborg.css.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@
"PB.ItemSmallArmsQuantity": "Small Arms Quantity",
"PB.ItemSmallArmsWarning": "Small Arms Warning",
"PB.ItemSpecial": "Specials",
"PB.ItemCharacterSpeedMax": "Speed (in grid units)",
"PB.ItemSpeedMax": "Max Speed",
"PB.ItemStartingGold": "Starting Gold",
"PB.ItemTypeAmmo": "Ammo",
Expand Down
6 changes: 6 additions & 0 deletions scss/pirateborg/_character-sheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
justify-content: space-between;
}

.stats-bottom-row {
margin-top: 16px;
display: flex;
justify-content: space-between;
}

.wield-power {
flex: 0 0 300px;
display: flex;
Expand Down
7 changes: 7 additions & 0 deletions templates/actor/character-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,13 @@ <h4 class="item-name item-edit rollable">{{item.name}} {{#ifGt item.system.quant
</ol>
</ol>
{{/unless}}

<div class="stats-bottom-row">
<div class="stats-block">
<label class="stat-label">{{ localize "PB.ItemCharacterSpeedMax" }}</label>
<input type="text" name="system.attributes.speed.max" value="{{data.system.attributes.speed.max}}" placeholder="6" data-dtype="Number" />
</div>
</div>
</div>

{{!-- Powers Tab --}}
Expand Down
6 changes: 6 additions & 0 deletions templates/actor/creature-sheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@
<label>{{localize "PB.CreatureSpecial"}}:</label>
<textarea name="system.special" rows="10">{{data.system.special}}</textarea>
</div>

{{! Speed }}
<div class="form-group">
<label>{{ localize "PB.ItemCharacterSpeedMax" }}:</label>
<input type="text" name="system.attributes.speed.max" value="{{data.system.attributes.speed.max}}" data-dtype="Number" />
</div>
</div>

{{! Effects }}
Expand Down

0 comments on commit 447e48e

Please sign in to comment.