Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Malin Freeborn
config
Commits
9fa53d2d
Verified
Commit
9fa53d2d
authored
1 year ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
refactor statblock wounds
parent
d7b13090
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs.tex
+4
-2
4 additions, 2 deletions
docs.tex
stats.sty
+8
-3
8 additions, 3 deletions
stats.sty
with
12 additions
and
5 deletions
docs.tex
+
4
−
2
View file @
9fa53d2d
...
...
@@ -69,6 +69,7 @@ Individual characters can be created by using the \verb"\npc" command then the \
\end{verbatim}
\set
{
wounds
}{
1
}
\Person
{
\npc
{
\M
}{
Alice
}}
%
{{
0
}{
1
}{
-1
}}
% BODY
...
...
@@ -78,13 +79,14 @@ Individual characters can be created by using the \verb"\npc" command then the \
\set
{
Academics
}{
1
}
\set
{
Wyldcrafting
}{
1
}
%\greatsword
\longsword
\completeleather
\shortsword
}
% SKILLS
{}
% KNACKS
{
\rations
,
\lootSmall
}
% EQUIPMENT
{}
% ABILITIES
free:
\arabic
{
freeHP
}
\showNumbers
\subsubsection
{
Bestiary with monstrous ghouls, and ghoulish monsters
}
...
...
This diff is collapsed.
Click to expand it.
stats.sty
+
8
−
3
View file @
9fa53d2d
...
...
@@ -230,9 +230,10 @@
\newcounter
{
wounds
}
\setcounter
{
wounds
}{
0
}
\newcounter
{
freeHP
}
\setcounter
{
freeHP
}{
0
}
\newcommand\boxStat
[1]
{
%
\addtocounter
{
#1
}{
-
\value
{
wounds
}}
%
\Repeat
{
\value
{
wounds
}}{
\CheckedBox
}
%
\Repeat
{
\value
{
#1
}}{
\Square
}
%
}
...
...
@@ -242,7 +243,7 @@
\hiderowcolors
%
HP
\arabic
{
hp
}
~
%
\Repeat
{
\value
{
noAppearing
}}{
%
\boxStat
{
hp
}
\\
%
\boxStat
{
freeHP
}
\\
%
}
%
\end{tabular}
%
}
...
...
@@ -794,7 +795,7 @@
\newcommand\computeStats
{
\setcounter
{
hp
}{
6
}
%
\addtocounter
{
hp
}{
\value
{
Strength
}}
%
\addtocounter
{
hp
}{
\value
{
wounds
}}
%
\addtocounter
{
hp
}{
-
\value
{
wounds
}}
%
% Stats for allies don't need to show Combat +1 as 'TN 8 to hit', they just need to show '+1'.
\ifnum\value
{
weaponBonus
}
>0
\set
{
att
}{
Combat
}
\else\set
{
att
}{
Brawl
}
\fi
%
\addtocounter
{
att
}{
\value
{
Dexterity
}}
%
...
...
@@ -841,6 +842,10 @@
\ifnum\value
{
weight
}
>
\value
{
hp
}
%
\addtocounter
{
encumbrance
}{
\value
{
weight
}}
%
\addtocounter
{
encumbrance
}{
-
\value
{
hp
}}
%
\setcounter
{
freeHP
}{
0
}
%
\else
%
\setcounter
{
freeHP
}{
\value
{
hp
}}
%
\addtocounter
{
freeHP
}{
-
\value
{
weight
}}
%
\fi
%
\addtocounter
{
ap
}{
-
\value
{
encumbrance
}}
%
\addtocounter
{
toHit
}{
-
\value
{
encumbrance
}}
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment