%%%%%
%%
%% This file sets up the Char, PC, NPC, and Name datatypes and creates
%% macros for each.  These are for characters in the game.  Here you
%% use the fields in Char to assign elements to each character.
%%
%%
%%
%% \MYname (and the player name) is parsed by \parsename, the command
%% provided by LaTeX/parsename.sty.  See that file and
%% Extras/README-namemappings for ways to take advantage of this.
%%
%%
%%
%% \MYsex is set to either \male, \female, \neuter, or \ambiguous, as
%% correct for the character.  \mfn{<masculine>}{<feminine>}{<neuter>}
%% will produce the correct form based on the current value of \MYsex
%% (\ambiguous will lead to <masculine>/<feminine>).  \mfn should only
%% be used within the scope of a Char macro.  \mf{<masc>}{<fem>} works
%% just like \mfn with the <neut> arg left blank.
%%
%% \pronoun{<command>}{<masc>}{<fem>}{<neut>} makes <command> a
%% wrapper around \mfn.  It is used to create a list of
%% gender-sensitive macros, mostly pronouns.  For example, given
%% \pronoun{\They}{He}{She}{It}, \cJamesBond{\They} will produce He.
%%
%%
%%
%% \badgetrue and \badgefalse toggle whether or not a Char macro will
%% produce a namebadge.  \statstrue and \statsfalse will toggle the
%% statcard.  \sheettrue and \sheetfalse will toggle the character
%% sheet.  \listtrue and \listfalse toggle whether the Char macro can
%% display in the playerlist.  \labeltrue and \labelfalse toggle the
%% box label.
%%
%%
%%
%% Some of the Char datatype's setup is in LaTeX/gametex.sty, to keep
%% this file short.
%%
%%%%%


%%%%%
%% If a field is declared by \F, it must be given a value by \s inside
%% \NEW, even if it's blank.  If you want it to be optional, declare
%% it with \FD<field> {<default>} here.
%%
%% Use \newstat to create stats (below, in \PRESETS{Char}).  The
%% <default> value is used unless the given Char macro sets the field.
%% For example:
%%
%%   \newstat\MYhp      {Hit Points}{HP}{5}
%%
%% would give character a Hit Points stat, abbreviated HP, referenced
%% as the \MYhp field, that defaults to 5.
\PRESETS{Char}{
  \FD\MYdesc    {} %% badge description
 
  \FD\MYstats   {} %% use \newstat to add stats
  \newstat\MYcr {Combat Rating}{CR}{2} %% for DarkWater-style combat
  \newstat\MYsan  {$\psi$}{$\psi$}{5}   %% Sanity score
  \newstat\MYpurity  {$\Pi$}{$\Pi$}{0}   %% Pure soul -- 1 or 0
  \FD\MYbccode  {<none>}        %% Black chamber control code

  \FD\MYsex     {\male} %% \male, \female, \neuter, \ambiguous
  \FD\MYgroupstr{} %% playerlist groupstring
  \FD\MYfile    {} %% character sheet filename (including .tex)
  \FS\MYtext    {\ifx\MYfile\empty\else%
                  \getextractenvs{document}{\chars/\MYfile}%
                \fi}
  \badgetrue\statstrue\sheettrue\listtrue\labeltrue
  }


%%%%%
%% pronouns and similar gender-based macros
%%
%% \male, \female, \neuter, \ambiguous
%% \mfn{<masculine>}{<feminine>}{<neuter>}
%% \mf{<masculine>}{<feminine>}
%% \pronoun{<command>}{<masculine>}{<feminine>}{<neuter>}
\def\male{0}\def\female{1}\def\neuter{2}\def\ambiguous{3}
\newcommand{\mfn}[3]{\ifcase\MYsex#1\or#2\or#3\else#1/#2\fi}
\newcommand{\mf}[2]{\mfn{#1}{#2}{}}
\newcommand{\pronoun}[4]{\def#1{\mfn{#2}{#3}{#4}}}

\pronoun{\they}         {he}{she}{it}
\pronoun{\They}         {He}{She}{It}
\pronoun{\them}         {him}{her}{it}
\pronoun{\Them}         {Him}{Her}{It}
\pronoun{\their}        {his}{her}{its}
\pronoun{\Their}        {His}{Her}{Its}
\pronoun{\theirs}       {his}{hers}{its}
\pronoun{\Theirs}       {His}{Hers}{Its}
\pronoun{\themself}     {himself}{herself}{itself}
\pronoun{\Themself}     {Himself}{Herself}{Itself}
\pronoun{\spouse}       {husband}{wife}{spouse}
\pronoun{\Spouse}       {Husband}{Wife}{Spouse}
\pronoun{\offspring}    {son}{daughter}{offspring}
\pronoun{\Offspring}    {Son}{Daughter}{Offspring}
\pronoun{\kid}          {boy}{girl}{kid}
\pronoun{\Kid}          {Boy}{Girl}{Kid}
\pronoun{\sibling}      {brother}{sister}{sibling}
\pronoun{\Sibling}      {Brother}{Sister}{Sibling}
\pronoun{\parent}       {father}{mother}{parent}
\pronoun{\Parent}       {Father}{Mother}{Parent}
\pronoun{\uncle}        {uncle}{aunt}{uncle}
\pronoun{\Uncle}        {Uncle}{Aunt}{Uncle}
\pronoun{\nephew}       {nephew}{niece}{nephew}
\pronoun{\Nephew}       {Nephew}{Niece}{Nephew}
\def\aunt{\uncle}
\def\Aunt{\Uncle}
\def\niece{\nephew}
\def\Niece{\Nephew}
\pronoun{\human}        {man}{woman}{human}
\pronoun{\Human}        {Man}{Woman}{Human}
\pronoun{\sex}          {male}{female}{neuter}
\pronoun{\Sex}          {Male}{Female}{Neuter}


%%%%%
%% PC is a subtype of Char, for regular PCs.
\DECLARESUBTYPE{PC}{Char}
\PRESETS{PC}{\sd\MYgroupstr{pc}}


%%%%%
%% NPC is a subtype of Char.
\DECLARESUBTYPE{NPC}{Char}
\PRESETS{NPC}{\sd\MYgroupstr{npc}}


%%%%%
%% Name is a subtype of NPC.
%% For an in-text name.  By default, produces no packet material.
\DECLARESUBTYPE{Name}{Char}
\PRESETS{Name}{
  \badgefalse\statsfalse\sheetfalse\listfalse\labelfalse
  \sd\MYgroupstr{name}
  }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NEW{PC}{\cBlackChamberOp}{
  \s\MYname     {Jeffrey Lewis}
  \s\MYplayer   {Telmo Correa}
  \s\MYdesc     {A young, serious-looking engineer}
  \s\MYnumber	{223}
  \s\MYfile     {blackchamberop.tex}
  \s\MYbccode   {87B1}
  \s\MYpurity   {1}
  \s\MYcr       {3}
  \s\MYabils    {\aHacking{}}
  \s\MYgreens   {\gCD{}\gDemonCombat{}\gBindingGrid{}\gSabotage{}}
  \s\MYblues    {\bBlackChamber{}\bLaundry{}}
  \s\MYitems    {\iSoulMachine{}\iPDA{}\iMultitool{}}
  }

\NEW{PC}{\cBlackChamberLoyal}{
  \s\MYname     {Sandra Hughes}
  \s\MYfile     {blackchamberloyal.tex}
  \s\MYplayer   {Susan Born}
  \s\MYdesc     {A business-like American woman}
  \s\MYnumber	{326}
  \s\MYbccode   {95FD}
  \s\MYpurity   {1}
  \s\MYabils    {\aBlackChamberBind{}\aResistAlpha{}\aFirstAid{}\aHacking{}}
  \s\MYcr       {3}
  \s\MYblues    {\bBlackChamber{}}
  \s\MYgreens   {\gCD{}\gSabotage{}\gDemonCombat{}}
  \s\MYitems    {\iTazer{}\iMultitool{}}
  \s\MYsex      {\female}
  }

\NEW{PC}{\cCDHead}{
  \s\MYname     {Amelia Pelham}
  \s\MYfile     {cdhead.tex}
  \s\MYplayer   {Jess McKellar}
  \s\MYdesc     {An intense engineer}
  \s\MYnumber	{228}
  \s\MYpurity   {1}
  \s\MYsex      {\female}
  \s\MYgreens   {\gCD{}\gDemonCombat{}}
  \s\MYblues    {\bLaundry{}}
  \s\MYitems    {\iPDA{}\iMultitool{}}
  \s\MYabils    {\aHacking{}\aFirstAid{}}
  }

\NEW{PC}{\cCDIntSec}{
  \s\MYname     {Stephen Hall}
  \s\MYfile     {cdintsec.tex}
  \s\MYplayer   {Karl Ramm}
  \s\MYdesc     {A harassed-looking engineer}
  \s\MYnumber	{425}
  \s\MYgreens   {\gIntSec{}\gCD{}\gDemonCombat{}}
  \s\MYblues    {\bLaundry{}}
  \s\MYpurity   {1}
  \s\MYabils    {\aHacking{}\aIntSec{}}
  \s\MYitems    {\iPDA{}\iTazer{}\iGun{}\iWarrantCard{}\iMultitool{}}
  }

\NEW{PC}{\cDemon}{
  \s\MYname     {Ann}
  %% Ser'end'vkl'enth'trz
  \s\MYfile     {demon.tex}
  \s\MYplayer   {Paige Phillips}
  \s\MYdesc     {A kind-looking demon}
  \s\MYnumber	{328}
  \s\MYabils    {\aSanity{}\aInsubstantial{}\aHumanSoul{}}
  \s\MYmems     {\mSoulMachine{}}
  \s\MYgreens   {\gSanity{}\gResearch{}}
  \s\MYblues    {\bLaundry{}\bPR{}}
  \s\MYcr       {0}
  \s\MYsex      {\female}
  }

\NEW{PC}{\cLaundryCaptain}{
  \s\MYname     {Jeremy Salisbury}
  \s\MYfile     {laundrycaptain.tex}
  \s\MYplayer   {J Muchnij}
  \s\MYdesc     {An authoritative old man}
  \s\MYnumber	{521}
  \s\MYgreens   {\gTreaty{}}
  \s\MYitems    {\iGun{}}
  \s\MYpurity   {1}
  \s\MYabils    {\aHacking{}\aUnbindGeas{}}
  \s\MYblues    {\bLaundry{}}
  }

\NEW{PC}{\cNegotiator}{
  \s\MYname     {June Whitfield}
  \s\MYfile     {negotiator.tex}
  \s\MYplayer   {Beth Baniszewski}
  \s\MYdesc     {A bright woman}
  \s\MYnumber	{424}
  \s\MYpurity   {1}
  \s\MYsan      {3}
  \s\MYsex      {\female}
  \s\MYgreens   {\gTreaty{}}
  \s\MYblues    {\bLaundryNegotiators{}\bLaundry{}}
  \s\MYitems    {\iTazer{}}
  \s\MYabils	{\aUnstable{}}
  \s\MYwhites   {\wTreaty{}}
  }

\NEW{PC}{\cLiason}{
  \s\MYname     {Dale Cooper}
  \s\MYfile     {liason.tex}
  \s\MYplayer   {Erik Fogg}
  \s\MYdesc     {A dark, handsome American}
  \s\MYnumber	{321}
  \s\MYsan      {$\infty$}
  \s\MYcr       {3}
  \s\MYbccode   {9B5E}
  \s\MYgreens   {\gCD{}\gSabotage{}\gDemonCombat{}\gAltRitual{}}
  \s\MYblues    {\bBlackChamber{}}
  \s\MYabils    {\aHacking{}\aInsane{}}
  \s\MYitems    {\iTazer{}}
  }

% The Cthulht leader
\NEW{PC}{\cFrosh}{
  \s\MYname     {Terry Scott}
  \s\MYfile     {frosh.tex}
  \s\MYplayer   {Nick Harrington}
  \s\MYdesc     {A young, focused scientist}
  \s\MYnumber	{229}
  \s\MYgreens   {\gSabotage{}\gResearch{}\gPentagramI{}}
  \s\MYblues    {\bLaundry{}\bCthulht{}\bPR{}}
  \s\MYabils    {\aHacking{}\aResistTruthing{}\aThickSkinned{}}
  }

\NEW{PC}{\cPRSoulless}{
  \s\MYname     {Charlotte Wilkenson}
  \s\MYfile     {prsoulless.tex}
  \s\MYplayer   {Kristin Berry}
  \s\MYdesc     {A tired-looking scientist}
  \s\MYnumber	{328}
  \s\MYsan      {3}
  \s\MYsex      {\female}
  \s\MYgreens   {\gResearch{}}
  \s\MYblues    {\bLaundry{}\bPR{}}
  }

\NEW{PC}{\cAlphaRep}{
  \s\MYname     {Rhaokinvar}
  \s\MYfile     {alpharep.tex}
  \s\MYplayer   {Zev Benjamin}
  \s\MYdesc     {A distinguished grey-green Deep One}
  \s\MYnumber	{435}
  \s\MYcr       {3}
  \s\MYblues    {\bAlpha{}}
  \s\MYgreens   {\gTreaty{}}
  \s\MYitems    {\iTrident{}\iWetSuit{}}
  \s\MYabils    {\aThickSkinned{}\aResistAlpha{}}
  \s\MYsex      {\male}
  \s\MYwhites   {\wAlphaRitual{}}
  }

\NEW{PC}{\cAlphaAsst}{
  \s\MYname     {Rakali}
  \s\MYfile     {alphaasst.tex}
  \s\MYplayer   {Laura Boylan}
  \s\MYdesc     {A fervent grey-green Deep One}
  \s\MYnumber	{336}
  \s\MYcr       {3}
  \s\MYsex      {\female}
  \s\MYblues    {\bAlpha{}\bCthulht{}}
  \s\MYgreens   {\gTreaty{}}
  \s\MYitems    {\iTrident{}\iWetSuit{}}
  \s\MYabils    {\aThickSkinned{}\aResistAlpha{}}
  \s\MYwhites   {\wBombBlueprintA{}}
  }

\NEW{PC}{\cBetaRep}{
  \s\MYname     {Actassi}
  \s\MYfile     {betarep.tex}
  \s\MYplayer   {Jessie Lowell}
  \s\MYdesc     {A distinguished green-grey Deep One}
  \s\MYnumber	{432}
  \s\MYcr       {3}
  \s\MYgreens   {\gTreaty{}}
  \s\MYblues    {\bBeta{}}
  \s\MYsex      {\female}
  \s\MYitems    {\iTrident{}}
  \s\MYabils    {\aThickSkinned{}\aResistAlpha{}}
  }

\NEW{PC}{\cBetaAsst}{
  \s\MYname     {Lamiel}
  \s\MYfile     {betaasst.tex}
  \s\MYplayer   {Drew Hilliard}
  \s\MYdesc     {An intense green-grey Deep One}
  \s\MYnumber	{334}
  \s\MYcr       {3}
  \s\MYgreens   {\gTreaty{}\gSabotage{}}
  \s\MYblues    {\bBeta{}}
  \s\MYsex      {\female}
  \s\MYitems    {\iTrident{}}
  \s\MYabils    {\aThickSkinned{}\aResistAlpha{}}
  \s\MYwhites   {\wBombBlueprintB{}}
  }

\NEW{PC}{\cMP}{
  \s\MYname     {Patricia Clarke}
  \s\MYfile     {mp.tex}
  \s\MYpurity   {1}
  \s\MYplayer   {Kathleen Clark-Adams}
  \s\MYdesc     {A reputable politician}
  \s\MYnumber	{422}
  \s\MYgreens   {\gTreaty{}}
  \s\MYblues    {\bLaundryNegotiators{}\bCthulht{}}
  \s\MYsex      {\female}
  \s\MYitems    {\iTazer{}}
  }

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \NEW{PC}{\cTest}{
%   \s\MYname   {Test Character}
%   \s\MYfile   {README.tex}
%   \s\MYnumber {00000}
%   \s\MYdesc   {a test}
%   \s\MYplayer {Test Player}
%   \s\MYemail  {test@test.test}
%   \s\MYaddress        {Test, rm 000}
%   \s\MYphone  {x0-0000}
%   \s\MYblues  {\bTest{}}
%   \s\MYgreens {\gTest{}}
%   \s\MYabils  {\aTest{}}
%   \s\MYcombat {\aTestCombat{}}
%   \s\MYitems  {\iTest{}}
%   \s\MYwhites {\wTest{}}
%   \s\MYnbs    {\nTest{}}
%   \s\MYcash   {\cash{Dollar}{261}}
%   }
% 
% \NEW{NPC}{\cNPC}{
%   \s\MYname   {Nathan P. Clueless \suf III}
%   \s\MYnumber {00000}
%   \s\MYdesc   {a suspicious person}
%   \s\MYplayer {GM Helper}
%   }
% 
% \NEW{Name}{\cSomeGuy}{
%   \s\MYname   {Sir \pre Not Appearing In This Game}
%   }


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
