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
477cc233
Verified
Commit
477cc233
authored
1 year ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
convert some derstats
parent
a6dc353c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
arms.sty
+20
-18
20 additions, 18 deletions
arms.sty
main.tex
+19
-2
19 additions, 2 deletions
main.tex
stats.sty
+10
-5
10 additions, 5 deletions
stats.sty
with
49 additions
and
25 deletions
arms.sty
+
20
−
18
View file @
477cc233
...
...
@@ -17,24 +17,26 @@
\newcounter
{
weaponDamage
}
\newcounter
{
covering
}
\newcounter
{
armourDR
}
\newcounter
{
armourWeight
}
\newcommand\weaponName
{}
\newcommand\weapon
[4][]
{
%
\setcounter
{
weaponBonus
}{
#3
}
%
\setcounter
{
weaponDamage
}{
#4
}
%
\setcounter
{
heft
}{
#4
}
%
\setcounter
{
w
eight
}{
#4
}
%
\setcounter
{
armourW
eight
}{
#4
}
%
\ifnum
#3>-1
% If the weapon's attack bonus is positive,
\addtocounter
{
heft
}{
#3
}
% add it to the AP cost and
\addtocounter
{
w
eight
}{
#3
}
% weight rating,
\addtocounter
{
w
eight
}{
#3
}
% weight rating again,
\roundUp
{
w
eight
}
% half weight rating
\addtocounter
{
armourW
eight
}{
#3
}
% weight rating,
\addtocounter
{
armourW
eight
}{
#3
}
% weight rating again,
\roundUp
{
armourW
eight
}
% half weight rating
\roundUp
{
heft
}
% then the AP cost by 2.
\fi
%
#1
%
\addtocounter
{
att
}{
\value
{
weaponBonus
}}
%
\ifnum\value
{
heft
}
<1
\setcounter
{
heft
}
1
\fi
%
#2
%
\renewcommand\weaponName
{
#2
}
%
}
%% Use this to show weapons in tables.
...
...
@@ -42,7 +44,7 @@
%% It remains unterminated so you can add Costs.
\newcommand\showWeapon
[1]
{
%
#1
&
\arabic
{
weaponBonus
}
&
\arabic
{
weaponDamage
}
&
\arabic
{
heft
}
&
\arabic
{
w
eight
}
#1
&
\arabic
{
weaponBonus
}
&
\arabic
{
weaponDamage
}
&
\arabic
{
heft
}
&
\arabic
{
armourW
eight
}
}
\newcommand\rangedWeapon
[4][0]
{
%
...
...
@@ -81,11 +83,11 @@
#2
% Name
\setcounter
{
armourDR
}{
#3
}
%
\setcounter
{
covering
}{
#4
}
%
\setcounter
{
w
eight
}{
#4
}
%
\addtocounter
{
w
eight
}{
#3
}
%
\addtocounter
{
w
eight
}{
1
}
%
\divide\value
{
w
eight
}
by 3
%
\addtocounter
{
w
eight
}{
0
}
%
\setcounter
{
armourW
eight
}{
#4
}
%
\addtocounter
{
armourW
eight
}{
#3
}
%
\addtocounter
{
armourW
eight
}{
1
}
%
\divide\value
{
armourW
eight
}
by 3
%
\addtocounter
{
armourW
eight
}{
0
}
%
#1
% <- for adjustments.
\iftoggle
{
creatureBox
}{
%
\ifnumcomp
{
\value
{
dr
}}{
>
}{
\value
{
armourDR
}}
%
...
...
@@ -100,10 +102,10 @@
}
\newcommand\showArmour
[1]
{
%
#1
&
\arabic
{
armourDR
}
&
\arabic
{
covering
}
&
\arabic
{
w
eight
}
#1
&
\arabic
{
armourDR
}
&
\arabic
{
covering
}
&
\arabic
{
armourW
eight
}
}
\newcommand
{
\boulder
}{
\weapon
[\addtocounter{
w
eight}{3}]
{
Boulder
}{
-3
}{
5
}}
\newcommand
{
\boulder
}{
\weapon
[\addtocounter{
armourW
eight}{3}]
{
Boulder
}{
-3
}{
5
}}
\newcommand
{
\chair
}{
\weapon
[\addtocounter{weaponBonus}{-1}]
{
Chair
}{
2
}{
1
}}
\newcommand
{
\club
}{
\weapon
[\addtocounter{weaponDamage}{-1}]
{
Club
}{
1
}{
1
}}
\newcommand
{
\cudgel
}{
\weapon
[\addtocounter{weaponDamage}{-1}]
{
Cudgel
}{
0
}{
0
}}
...
...
@@ -117,14 +119,14 @@
\newcommand
{
\javelin
}{
\weapon
{
Javelin
}{
2
}{
1
}}
\newcommand
{
\knife
}{
\weapon
{
Knife
}{
0
}{
1
}}
\newcommand
{
\Log
}{
\weapon
[\addtocounter{weaponDamage}{-3}]
{
Log
}{
1
}{
0
}}
\newcommand
{
\rapier
}{
\weapon
[\addtocounter{
w
eight}{-1}]
{
Rapier
}{
1
}{
1
}}
\newcommand
{
\largerock
}{
\weapon
[\addtocounter{
w
eight}{3}]
{
Rock (large)
}{
-1
}{
2
}}
\newcommand
{
\rapier
}{
\weapon
[\addtocounter{
armourW
eight}{-1}]
{
Rapier
}{
1
}{
1
}}
\newcommand
{
\largerock
}{
\weapon
[\addtocounter{
armourW
eight}{3}]
{
Rock (large)
}{
-1
}{
2
}}
\newcommand
{
\longsword
}{
\weapon
{
Longsword
}{
2
}{
2
}}
\newcommand
{
\maul
}{
\weapon
{
Maul
}{
1
}{
3
}}
\newcommand
{
\poleaxe
}{
\weapon
{
Poleaxe
}{
3
}{
3
}}
\newcommand
{
\quarterstaff
}{
\weapon
{
Quarterstaff
}{
3
}{
0
}}
\newcommand
{
\rock
}{
\weapon
[\addtocounter{heft}{1}\addtocounter{
w
eight}{-1}]
{
Rock
}{
-1
}{
0
}}
\newcommand
{
\scythe
}{
\weapon
[\addtocounter{
w
eight}{2}]
{
Scythe
}{
-2
}{
1
}}
\newcommand
{
\rock
}{
\weapon
[\addtocounter{heft}{1}\addtocounter{
armourW
eight}{-1}]
{
Rock
}{
-1
}{
0
}}
\newcommand
{
\scythe
}{
\weapon
[\addtocounter{
armourW
eight}{2}]
{
Scythe
}{
-2
}{
1
}}
\newcommand
{
\shortsword
}{
\weapon
{
Shortsword
}{
1
}{
1
}}
\newcommand
{
\skillet
}{
\weapon
[\addtocounter{heft}{1}]
{
Frying Pan
}{
1
}{
2
}}
\newcommand
{
\spear
}{
\weapon
{
Spear
}{
3
}{
1
}}
...
...
@@ -153,7 +155,7 @@
\newcommand
{
\perfectArmour
}{
\setcounter
{
covering
}{
8
}}
\newcommand
{
\partialelvish
}{
%
\armour
[\addtocounter{
w
eight}{-1}]
{
Elvish Ceramic armour
}{
2
}{
3
}
%
\armour
[\addtocounter{
armourW
eight}{-1}]
{
Elvish Ceramic armour
}{
2
}{
3
}
%
}
\newcommand
{
\partialleather
}{
%
...
...
This diff is collapsed.
Click to expand it.
main.tex
+
19
−
2
View file @
477cc233
...
...
@@ -53,13 +53,30 @@
\showKnacks
\hrulefill
Weapon:
\weaponName
{
\scshape
\glsentrytext
{
ap
}
\arabic
{
ap
}
,
\iftoggle
{
allyCharacter
}{$
2
D
6
$
\ifnum\value
{
att
}
>-1 +
\fi
}{}
%
Att
\arabic
{
att
}
,
Dam
\dmg
{
damage
}
,
\ifnum\value
{
dr
}
>0
%
\glsentrytext
{
dr
}
\arabic
{
dr
}
(
\arabic
{
covering
}
)
\fi
%
}
}
\npc
{
\M\Hu
}{
Bob
}
\statblock
{
1
}{
2
}{
3
}
%
{{
-3
}{
-2
}{
-1
}}
%
{
\setcounter
{
Academics
}{
1
}}
{
\adrenalinesurge
,
\laststand
}
{
\setcounter
{
Academics
}{
1
}
\longsword
}
{
\adrenalinesurge
,
\mightydraw
}
\end{multicols}
...
...
This diff is collapsed.
Click to expand it.
stats.sty
+
10
−
5
View file @
477cc233
...
...
@@ -664,7 +664,7 @@
\ifdefempty
{
\equipment
}{}
{
\setcounter
{
attackXPtotal
}{
\value
{
Charisma
}}
% Must store Charisma while talisman shows spells
\ent
{
Equipment
}
&
\equipment
\\
\ent
{
Equipment
}
&
\ifdefempty
{
\weaponName
}{}{
\weaponName
,
}
\equipment
\\
}
}
%
{}
...
...
@@ -692,7 +692,6 @@
\iftoggle
{
allyCharacter
}{}{
%
\addtocounter
{
att
}{
7
}
%
}
%
\addtocounter
{
att
}{
\value
{
Dexterity
}}
%
\setcounter
{
maxWeight
}{
\value
{
hp
}}
% now to compute encumbrance
\divide\value
{
maxWeight
}
by 2
%
\ifnum\value
{
weight
}
>
\value
{
maxWeight
}
%
...
...
@@ -702,6 +701,12 @@
\setcounter
{
ap
}{
\value
{
Speed
}}
%
\addtocounter
{
ap
}{
3
}
%
\addtocounter
{
ap
}{
-
\value
{
encumbrance
}}
%
\addtocounter
{
att
}{
\value
{
Dexterity
}}
%
\addtocounter
{
att
}{
\value
{
weaponBonus
}}
%
\setcounter
{
damage
}{
\value
{
Strength
}}
%
\addtocounter
{
damage
}{
4
}
%
\addtocounter
{
damage
}{
\value
{
weaponDamage
}}
%
\addtocounter
{
covering
}{
\value
{
att
}}
}
%% _ _ _
...
...
@@ -729,9 +734,9 @@
\iftoggle
{
allyCharacter
}{$
2
D
6
$
\ifnum\value
{
att
}
>-1 +
\fi
}{}
%
\arabic
{
att
}
%
\setcounter
{
enc
}{
\value
{
att
}}
,
%
\setcounter
{
damage
}{
4
}
%
\addtocounter
{
damage
}{
\value
{
Strength
}}
\addtocounter
{
damage
}{
\value
{
weaponDamage
}}
\setcounter
{
damage
}{
4
}
%
Remove
\addtocounter
{
damage
}{
\value
{
Strength
}}
% Remove
\addtocounter
{
damage
}{
\value
{
weaponDamage
}}
% Remove
\mbox
{
Dam
\dmg
{
damage
}
,
}
%
\ifnumcomp
{
\value
{
dr
}}{
>
}{
0
}{
%
\setcounter
{
enc
}{
\value
{
att
}}
%
...
...
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