Skip to content

Commit

Permalink
Fix some of the settlement parameters and image width
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereare committed Aug 6, 2022
1 parent 63aec27 commit 4c0436d
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions _layouts/settlement.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,12 @@ <h5>{{ page.settlement.name | default: 'Settlement Name' }}</h5>
<p><strong>Size:</strong> {{ page.settlement.size }}</p>
<p><strong>Demographics:</strong> {% for race in page.settlement.demographics %}{{ race.percent }}% {{ race.race }}{% unless forloop.last %}, {% endunless %}{% endfor %}</p>
<p><strong>Population:</strong> {{ page.settlement.population | pretty_number }} souls</p>
{% if page.settlement.wealth %}
<p><strong>Wealth:</strong> {{ page.settlement.wealth | pretty_number }} gp</p>
{% endif %}
{% if page.settlement.gp-limit %}
<p><strong>GP Limit:</strong> {{ page.settlement.gp-limit | pretty_number }} gp</p>
{% endif %}

{% assign: cs = page.settlement.centres | join: '' %}
{% if cs != '' %}
Expand Down
2 changes: 2 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ a {
&:hover, &:active { color: $alink; }
}

img { width: 100%; }

header {
overflow: auto;
background-color: transparent;
Expand Down
4 changes: 2 additions & 2 deletions docs/layouts/settlement.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ These are the metadata shown on the right column of the layout.
| `race.race` | :heavy_check_mark: | `string` | The race of this fraction |
| `race.percent` | :heavy_check_mark: | `integer` | How much of the population is this fractions (without `%`) |
| `population` | :heavy_check_mark: | `integer` | Total number of people on this settlement |
| `gp-limit` | :heavy_check_mark: | `integer` | The maximum price any single item may cost |
| `wealth` | :heavy_check_mark: | `integer` | The total wealth of the settlement |
| `gp-limit` | :x: | `integer` | The maximum price any single item may cost |
| `wealth` | :x: | `integer` | The total wealth of the settlement |
| `centres` | :x: | `array` of `object`s | An array of objects, each of which defines a single center of power. |
| `centre.type` | :heavy_check_mark: | `string` | The type of power structure |
| `centre.name` | :heavy_check_mark: | `string` | The name of the power structure |
Expand Down
2 changes: 1 addition & 1 deletion grimoire.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = 'nereare_grimoire'
spec.version = '1.18.0'
spec.version = '1.18.2'
spec.authors = ['Igor Padoim']
spec.email = ['igorpadoim@gmail.com']
spec.license = 'Hippocratic'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "Grimoire",
"version" : "1.18.0",
"version" : "1.18.2",
"description" : "A jekyll quasi-wiki for RPG-oriented worldbuilding.",
"license" : "Hippocratic",
"private" : false,
Expand Down

0 comments on commit 4c0436d

Please sign in to comment.