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
5b4fba9c
Unverified
Commit
5b4fba9c
authored
2 years ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
rework shields
parent
68f5d578
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
arms.sty
+38
-3
38 additions, 3 deletions
arms.sty
monsters.sty
+2
-2
2 additions, 2 deletions
monsters.sty
with
40 additions
and
5 deletions
arms.sty
+
38
−
3
View file @
5b4fba9c
...
...
@@ -4,7 +4,11 @@
\newtoggle
{
chart
}
\settoggle
{
chart
}{
false
}
\newcounter
{
initiative
}
\newcounter
{
weight
}
\newcounter
{
damage
}
\newcounter
{
shieldBonus
}
\newcounter
{
shieldWeight
}
\newcounter
{
shieldInit
}
\newcounter
{
cost
}
\newcounter
{
heft
}
% used to see how many Init points to swing a weapon
...
...
@@ -45,13 +49,43 @@
\divide\value
{
cost
}
by 100
\arabic
{
cost
}
sp
\else
\arabic
{
cost
}
s
p
\arabic
{
cost
}
c
p
\fi
\fi
\\
}
}
% Shields work much like weapons, except that their Bonus is high, their initiative cost is low, but their attack is poor.
\newcommand\shield
[3][]
{
\setcounter
{
shieldBonus
}{
#3
}
\addtocounter
{
shieldBonus
}{
2
}
\setcounter
{
shieldWeight
}{
#3
}
\setcounter
{
shieldInit
}{
#3
}
\addtocounter
{
shieldInit
}{
2
}
\setcounter
{
cost
}{
87
}
#1
\iftoggle
{
bling
}{
#2 shield (+
\arabic
{
shieldBonus
}
/
\arabic
{
shieldInit
}
)
}{
#2
&
+
\arabic
{
shieldBonus
}
&
\arabic
{
shieldInit
}
&
\arabic
{
shieldWeight
}
&
\multiply\value
{
cost
}
by 8
\multiply\value
{
cost
}
by
\value
{
shieldBonus
}
\ifnum\value
{
cost
}
>200
\divide\value
{
cost
}
by 100
\arabic
{
cost
}
sp
\else
\arabic
{
cost
}
cp
\fi
\\
}
}
% Use this 'weapon entry' command to place items in the weapons table, like this:
%\weapon{Name}%
%{Bonus}
...
...
@@ -90,8 +124,9 @@
% SHIELDS
\newcommand
{
\longbow
}{
Longbow
}
\newcommand
{
\shield
}{
\addtocounter
{
dex
}{
1
}
shield
}
\newcommand
{
\bucklar
}{
\addtocounter
{
dex
}{
1
}
bucklar shield
}
\newcommand
{
\bucklar
}{
\shield
{
Bucklar
}{
0
}}
\newcommand
{
\roundshield
}{
\shield
{
Round
}{
1
}}
\newcommand
{
\kiteshield
}{
\shield
{
Kite
}{
2
}}
% ARMOUR
...
...
This diff is collapsed.
Click to expand it.
monsters.sty
+
2
−
2
View file @
5b4fba9c
...
...
@@ -591,7 +591,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v
\partialchain
%
\fi
,
%
\ifodd\value
{
r4
}
\shield
,
\
round
shield
,
\fi
\ifnum\value
{
enc
}
=3
\lootMedium\else\lootSmall\fi
}
% EQUIPMENT
{}
...
...
@@ -637,7 +637,7 @@ Academics~1, \ifodd\value{page} Crafts~\arabic{r2}, \else \fi Deceit~1, \ifodd\v
\fi
,
%
\partialplate
,
%
\ifodd\value
{
r4
}
\shield
,
\
round
shield
,
\fi
\ifnum\value
{
enc
}
=3
\lootMedium\else\lootSmall\fi
}
% EQUIPMENT
{}
...
...
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