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
4d3919b2
Unverified
Commit
4d3919b2
authored
1 year ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
name all spell components
parent
f2b1ded3
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
docs.tex
+4
-5
4 additions, 5 deletions
docs.tex
layout.sty
+46
-21
46 additions, 21 deletions
layout.sty
with
50 additions
and
26 deletions
docs.tex
+
4
−
5
View file @
4d3919b2
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
\date
{
\today
}
\date
{
\today
}
\makeindex
[name=spells,title={Spell Summaries},columns=2]
\begin{document}
\begin{document}
\chapter
{
How to Make Monsters
}
\chapter
{
How to Make Monsters
}
...
@@ -149,7 +147,8 @@ title={Spell Summaries},columns=2]
...
@@ -149,7 +147,8 @@ title={Spell Summaries},columns=2]
\spell
{
Quake
}
% Name
\spell
{
Quake
}
% Name
{
Earth
}
% Spheres
{
Earth
}
% Spheres
{
\ranged
, Twisted
}
% Enhancements
{
Wane
}
% Action
{
\distant
,
\duplicated
}
% Enhancements
{
Caving
}
% Skill
{
Caving
}
% Skill
{
Ground shakes
}
% Description
{
Ground shakes
}
% Description
...
@@ -160,11 +159,11 @@ After inputting that, you can get the spell, and the `printindex' command will c
...
@@ -160,11 +159,11 @@ After inputting that, you can get the spell, and the `printindex' command will c
\spell
{
Quake
}
% Name
\spell
{
Quake
}
% Name
{
Earth
}
% Spheres
{
Earth
}
% Spheres
{
\ranged
, Twisted
}
% Enhancements
{
Wane
}
% Action
{
\distant
,
\duplicated
}
% Enhancements
{
Caving
}
% Skill
{
Caving
}
% Skill
{
Ground shakes
}
% Description
{
Ground shakes
}
% Description
\subsubsection
{
Magical Items
}
\subsubsection
{
Magical Items
}
This is a magical item.
This is a magical item.
...
...
This diff is collapsed.
Click to expand it.
layout.sty
+
46
−
21
View file @
4d3919b2
...
@@ -819,33 +819,36 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
...
@@ -819,33 +819,36 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
% 1 = Name
% 1 = Name
% 2 = Spheres
% 2 = Spheres
% 3 = Enhancements
% 3 = Action
% 4 = Skill
% 4 = Enhancements
% 5 = Description
% 5 = Skill
% 6 = Description
\newcommand
{
\spell
}
[5]
{
\newcommand
{
\spell
}
[6]
{
\setcounter
{
spelllevel
}{
1
}
\settoggle
{
distant
}{
false
}
%
\foreach
\s
in
{
#3
}{
\setcounter
{
spelllevel
}{
1
}
%
\stepcounter
{
spelllevel
}
\foreach
\s
in
{
#4
}{
%
}
\stepcounter
{
spelllevel
}
%
\subsubsection
[\textbf{#1}: #5. (\textit{#4})]
{
#1
}
}
%
\subsubsection
[\textbf{#1}: #6. (\textit{#5})]
{
#1
}
%
Spheres: #2,
#3
Enhancements: #3,
#4
\glsentrytext
{
mp
}
Cost:
\arabic
{
spelllevel
}
,
#2,
\glsentrytext
{
mp
}
Cost:
\arabic
{
spelllevel
}
,
\showRange
,
\showRange
,
\underline
{
Skill: #4
}
\iftoggle
{
duplicated
}{
\showArea
{
#2
}}{}
%
\underline
{
Skill: #5
}
\vspace
{
.5em
}
\afterparnoindent
\vspace
{
.5em
}
\afterparnoindent
\index
[spells]
{
\textbf
{
#1
}
: #5. (Cost:
\arabic
{
spelllevel
}
, Spheres: #2, Skill: #4,
\showRange
)
}
\index
[spells]
{
\textbf
{
#1
}
: #6. (Cost:
\arabic
{
spelllevel
}
, Spheres: #2, Skill: #5,
\showRange
)
}
\settoggle
{
ranged
}{
false
}
%
}
}
\newcounter
{
spellRange
}
\newcounter
{
spellRange
}
\newcommand\showRange
{
%
\newcommand\showRange
{
%
Range:
Range:
\iftoggle
{
ranged
}
%
\iftoggle
{
distant
}
%
{
%
{
%
\ifcase\value
{
spelllevel
}
\relax
%
\ifcase\value
{
spelllevel
}
\relax
%
Error
%
Error
%
...
@@ -872,12 +875,34 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
...
@@ -872,12 +875,34 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
}
%
}
%
}
}
\newtoggle
{
ranged
}
\newcounter
{
spellArea
}
\settoggle
{
ranged
}{
false
}
\newcommand\showArea
[1]
{
%
\setcounter
{
spellArea
}{
\value
{
spelllevel
}}
%
\multiply\value
{
spellArea
}
by
\value
{
spellArea
}
%
\ifcsstrequal
{
#1
}{
Air
}{
%
\multiply\value
{
spellArea
}
by
\value
{
spellArea
}
%
}{}
%
Targets:
\arabic
{
spellArea
}
,
%
}
\newtoggle
{
distant
}
\settoggle
{
distant
}{
false
}
\newtoggle
{
duplicated
}
\settoggle
{
duplicated
}{
false
}
\newcommand\detailed
{
Detailed
}
\newcommand\duplicated
{
%
\settoggle
{
duplicated
}{
true
}
%
Duplicated
%
}
\newcommand\divergent
{
Divergent
}
\newcommand\
ranged
{
%
\newcommand\
distant
{
%
Ranged
%
\settoggle
{
distant
}{
true
}
%
\settoggle
{
ranged
}{
true
}
%
Distant
%
}
}
\newcommand
{
\magicitem
}
[7]
{
%
\newcommand
{
\magicitem
}
[7]
{
%
...
...
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