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
e1f72ab0
Unverified
Commit
e1f72ab0
authored
1 year ago
by
Malin Freeborn
Browse files
Options
Downloads
Patches
Plain Diff
small refactor
parent
f412a8ed
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
bind.sty
+1
-0
1 addition, 0 deletions
bind.sty
layout.sty
+0
-136
0 additions, 136 deletions
layout.sty
magic.sty
+139
-0
139 additions, 0 deletions
magic.sty
stats.sty
+7
-5
7 additions, 5 deletions
stats.sty
with
147 additions
and
141 deletions
bind.sty
+
1
−
0
View file @
e1f72ab0
...
...
@@ -3,6 +3,7 @@
\input
{
config/rules/charts.tex
}
\RequirePackage
{
config/csCommands
}
\RequirePackage
{
config/seasons
}
\RequirePackage
{
config/magic
}
\RequirePackage
{
config/loot
}
\RequirePackage
{
config/arms
}
\RequirePackage
{
config/stats
}
...
...
This diff is collapsed.
Click to expand it.
layout.sty
+
0
−
136
View file @
e1f72ab0
...
...
@@ -817,142 +817,6 @@ interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
\newcolumntype
{
Y
}{
>
{
\centering\arraybackslash
}
X
}
\newcolumntype
{
L
}{
>
{
\raggedright\arraybackslash
}
X
}
%%%%% Magic %%%%%
\newcommand\mFate
{
Fate
\settoggle
{
insubstantial
}{
true
}}
\newcommand\mEarth
{
Earth
}
\newcommand\mAir
{
Air
\settoggle
{
insubstantial
}{
true
}}
\newcommand\mFire
{
Fire
}
\newcommand\mWater
{
Water
}
% 1 = Name
% 2 = Spheres
% 3 = Action
% 4 = Enhancements
% 5 = Skill
% 6 = Description
\newcommand
{
\spell
}
[6]
{
\settoggle
{
distant
}{
false
}
%
\settoggle
{
insubstantial
}{
false
}
\setcounter
{
spelllevel
}{
1
}
%
\foreach
\s
in
{
#4
}{
%
\stepcounter
{
spelllevel
}
%
}
%
\subsubsection
[\textbf{#1}: #6. (\textit{#5})]
{
#1
}
%
(#3
#4
#2),
\glsentrytext
{
mp
}
Cost:~
\arabic
{
spelllevel
}
,
\setRange
%
Range:~
\spellRange
,
\iftoggle
{
duplicated
}{
%
\setArea
%
Targets:~
\spellArea
,
%
}{}
%
\underline
{
Skill:~#5
}
\vspace
{
.5em
}
\afterparnoindent
\index
[spells]
{
\textbf
{
#1
}
:
\iftoggle
{
duplicated
}{
\spellArea
targets
}{
Have target
}
#6. (Cost:~
\arabic
{
spelllevel
}
, Spheres:~#2, Skill:~#5,
\mbox
{
Range:
\spellRange
}
)
}
}
\newcommand\spellRange
{}
\newcommand\setRange
{
%
\iftoggle
{
distant
}
%
{
%
\ifcase\value
{
spelllevel
}
\relax
%
\renewcommand\spellRange
{
Error
}
%
\or
%
\renewcommand\spellRange
{
Error
}
%
\or
%
\renewcommand\spellRange
{
throwing distance
}
%
\or
%
\renewcommand\spellRange
{
shouting distance
}
%
\or
%
\renewcommand\spellRange
{
horizon
}
%
\else
%
\renewcommand\spellRange
{
line of sight
}
%
\fi
%
}
%
{
%
\setcounter
{
track
}{
6
}
%
\addtocounter
{
track
}{
-
\value
{
spelllevel
}}
%
\ifnum\value
{
track
}
<1
%
\renewcommand\spellRange
{
touch
}
%
\else
%
\renewcommand\spellRange
{
\arabic
{
track
}
steps
}
%
\fi
%
}
%
}
%%%
\newcommand\spellArea
{}
\newcounter
{
spellArea
}
\newcommand\setArea
{
%
\setcounter
{
spellArea
}{
\value
{
spelllevel
}}
%
\multiply\value
{
spellArea
}
by
\value
{
spelllevel
}
%
\iftoggle
{
insubstantial
}{
%
\multiply\value
{
spellArea
}
by
\value
{
spelllevel
}
%
\addtocounter
{
spellArea
}{
0
}
%
}{}
%
\renewcommand\spellArea
{
%
\arabic
{
spellArea
}
,
%
}
%
}
%%%
\newtoggle
{
insubstantial
}
\settoggle
{
insubstantial
}{
false
}
\newtoggle
{
distant
}
\settoggle
{
distant
}{
false
}
\newtoggle
{
duplicated
}
\settoggle
{
duplicated
}{
false
}
\newcommand\detailed
{
Detailed
}
\newcommand\duplicated
{
%
\settoggle
{
duplicated
}{
true
}
%
Duplicated
%
}
\newcommand\divergent
{
Divergent
}
\newcommand\distant
{
%
\settoggle
{
distant
}{
true
}
%
Distant
%
}
\newcommand
{
\magicitem
}
[7]
{
%
\vspace
{
1em
}
\needspace
{
1em
}
\noindent\textbf
{
#1
}
%
\index
{
Magical Item!#1
}
\noindent
\textit
{
Spells: #2,
}
%
\textit
{
Path: #3,
}
%
\textit
{
Duration: #4,
}
%
\textit
{
Type: #5,
}
%
\textit
{
Potency: +#6,
}
%
\textit
{
MP: #7
}
%
% Type can be 'Pocket Spell', 'Talisman', or 'Artefact'.
\needspace
{
2em
}
%
}
\newcommand
{
\manalake
}
[8]
{
\subsection
{
#1 (Level #8)
}
\textit
{
Spells: #2,
}
\textit
{
Path: #3,
}
\textit
{
Duration: #4,
}
\textit
{
Type: #5,
}
\textit
{
Potence: #6,
}
\textit
{
#7 MP
}
% Type can be 'pocket spell', 'magical item', or 'artefact'.
\index
{
Mana Lakes!#1
}
\vspace
{
.3em
}
}
% Toggles for knacks
%%%%%%%%%%%%%%%%%%%% Environments %%%%%%%%%%%%%%%%%%%%
...
...
This diff is collapsed.
Click to expand it.
magic.sty
0 → 100644
+
139
−
0
View file @
e1f72ab0
%
% __ __ _
% | \/ | __ _ __ _(_) ___
% | |\/| |/ _` |/ _` | |/ __|
% | | | | (_| | (_| | | (__
% |_| |_|\__,_|\__, |_|\___|
% |___/
\newcommand\mFate
{
Fate
\settoggle
{
insubstantial
}{
true
}}
\newcommand\mEarth
{
Earth
}
\newcommand\mAir
{
Air
\settoggle
{
insubstantial
}{
true
}}
\newcommand\mFire
{
Fire
}
\newcommand\mWater
{
Water
}
% 1 = Name
% 2 = Spheres
% 3 = Action
% 4 = Enhancements
% 5 = Skill
% 6 = Description
\newcommand
{
\spell
}
[6]
{
\settoggle
{
distant
}{
false
}
%
\settoggle
{
insubstantial
}{
false
}
\setcounter
{
spelllevel
}{
1
}
%
\foreach
\s
in
{
#4
}{
%
\stepcounter
{
spelllevel
}
%
}
%
\subsubsection
[\textbf{#1}: #6. (\textit{#5})]
{
#1
}
%
(#3
#4
#2),
\glsentrytext
{
mp
}
Cost:~
\arabic
{
spelllevel
}
,
\setRange
%
Range:~
\spellRange
,
\iftoggle
{
duplicated
}{
%
\setArea
%
Targets:~
\spellArea
,
%
}{}
%
\underline
{
Skill:~#5
}
\vspace
{
.5em
}
\afterparnoindent
\index
[spells]
{
\textbf
{
#1
}
:
\iftoggle
{
duplicated
}{
\spellArea
~targets
}{
Have target
}
#6. (Cost:~
\arabic
{
spelllevel
}
, Spheres:~#2, Skill:~#5,
\mbox
{
Range:
\spellRange
}
)
}
}
\newcommand\spellRange
{}
\newcommand\setRange
{
%
\iftoggle
{
distant
}
%
{
%
\ifcase\value
{
spelllevel
}
\relax
%
\renewcommand\spellRange
{
Error
}
%
\or
%
\renewcommand\spellRange
{
Error
}
%
\or
%
\renewcommand\spellRange
{
throwing distance
}
%
\or
%
\renewcommand\spellRange
{
shouting distance
}
%
\or
%
\renewcommand\spellRange
{
horizon
}
%
\else
%
\renewcommand\spellRange
{
line of sight
}
%
\fi
%
}
%
{
%
\setcounter
{
track
}{
6
}
%
\addtocounter
{
track
}{
-
\value
{
spelllevel
}}
%
\ifnum\value
{
track
}
<1
%
\renewcommand\spellRange
{
touch
}
%
\else
%
\renewcommand\spellRange
{
\arabic
{
track
}
steps
}
%
\fi
%
}
%
}
%%%
\newcommand\spellArea
{}
\newcounter
{
spellArea
}
\newcommand\setArea
{
%
\setcounter
{
spellArea
}{
\value
{
spelllevel
}}
%
\multiply\value
{
spellArea
}
by
\value
{
spelllevel
}
%
\iftoggle
{
insubstantial
}{
%
\multiply\value
{
spellArea
}
by
\value
{
spelllevel
}
%
\addtocounter
{
spellArea
}{
0
}
%
}{}
%
\renewcommand\spellArea
{
%
\arabic
{
spellArea
}
%
}
%
}
%%%
\newtoggle
{
insubstantial
}
\settoggle
{
insubstantial
}{
false
}
\newtoggle
{
distant
}
\settoggle
{
distant
}{
false
}
\newtoggle
{
duplicated
}
\settoggle
{
duplicated
}{
false
}
\newcommand\detailed
{
Detailed
}
\newcommand\duplicated
{
%
\settoggle
{
duplicated
}{
true
}
%
Duplicated
%
}
\newcommand\divergent
{
Divergent
}
\newcommand\distant
{
%
\settoggle
{
distant
}{
true
}
%
Distant
%
}
\newcommand
{
\magicitem
}
[7]
{
%
\vspace
{
1em
}
\needspace
{
1em
}
\noindent\textbf
{
#1
}
%
\index
{
Magical Item!#1
}
\noindent
\textit
{
Spells: #2,
}
%
\textit
{
Path: #3,
}
%
\textit
{
Duration: #4,
}
%
\textit
{
Type: #5,
}
%
\textit
{
Potency: +#6,
}
%
\textit
{
MP: #7
}
%
% Type can be 'Pocket Spell', 'Talisman', or 'Artefact'.
\needspace
{
2em
}
%
}
\newcommand
{
\manalake
}
[8]
{
\subsection
{
#1 (Level #8)
}
\textit
{
Spells: #2,
}
\textit
{
Path: #3,
}
\textit
{
Duration: #4,
}
\textit
{
Type: #5,
}
\textit
{
Potence: #6,
}
\textit
{
#7 MP
}
% Type can be 'pocket spell', 'magical item', or 'artefact'.
\index
{
Mana Lakes!#1
}
\vspace
{
.3em
}
}
This diff is collapsed.
Click to expand it.
stats.sty
+
7
−
5
View file @
e1f72ab0
...
...
@@ -64,17 +64,19 @@
\newcommand
{
\dmg
}
[1]
{
%
\setcounter
{
damagebonus
}{
\value
{
#1
}}
%
\setcounter
{
numberofdice
}{
1
}
%
\whileboolexpr
{
test
{
\ifnumcomp
{
\value
{
damagebonus
}}{
>
}{
3
}}}{
%
\addtocounter
{
damagebonus
}
%
{
-4
}
\addtocounter
{
numberofdice
}{
1
}
%
\whileboolexpr
{
%
test
{
\ifnumcomp
{
\value
{
damagebonus
}}{
>
}{
3
}}
%
}{
%
\addtocounter
{
damagebonus
}{
-4
}
%
\addtocounter
{
numberofdice
}{
1
}
%
}
%
{
\arabic
{
numberofdice
}
D6
%
\ifnumcomp
{
\value
{
damagebonus
}}{
>
}{
0
}
%
{
+
\arabic
{
damagebonus
}}
%
{
%
\ifnumcomp
{
\value
{
damagebonus
}}{
<
}{
0
}{
%
\arabic
{
damagebonus
}
}
%
{}
%
\arabic
{
damagebonus
}
%
}
{}
%
}
%
}
%
}
...
...
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