Adds style cop (#109)

This commit is contained in:
Kamron Batman 2020-04-26 00:16:02 -07:00 committed by GitHub
parent 3e715bcb60
commit 556a17aba8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
1725 changed files with 33831 additions and 38046 deletions

View file

@ -11,7 +11,7 @@ namespace Server.Items
{
public class BookPageInfo
{
public BookPageInfo() => Lines = new string[0];
public BookPageInfo() => Lines = Array.Empty<string>();
public BookPageInfo(params string[] lines) => Lines = lines;
@ -25,7 +25,7 @@ namespace Server.Items
Lines[i] = Utility.Intern(reader.ReadString());
}
public string[] Lines{ get; set; }
public string[] Lines { get; set; }
public void Serialize(IGenericWriter writer)
{
@ -100,12 +100,12 @@ namespace Server.Items
}
[CommandProperty(AccessLevel.GameMaster)]
public bool Writable{ get; set; }
public bool Writable { get; set; }
[CommandProperty(AccessLevel.GameMaster)]
public int PagesCount => Pages.Length;
public BookPageInfo[] Pages{ get; private set; }
public BookPageInfo[] Pages { get; private set; }
public virtual BookContent DefaultContent => null;
@ -116,8 +116,8 @@ namespace Server.Items
StringBuilder sb = new StringBuilder();
foreach (BookPageInfo bpi in Pages)
foreach (string line in bpi.Lines)
sb.AppendLine(line);
foreach (string line in bpi.Lines)
sb.AppendLine(line);
return sb.ToString();
}
@ -135,12 +135,8 @@ namespace Server.Items
}
}
#region ISecurable Members
[CommandProperty(AccessLevel.GameMaster)]
public SecureLevel Level{ get; set; }
#endregion
public SecureLevel Level { get; set; }
public override void GetContextMenuEntries(Mobile from, List<ContextMenuEntry> list)
{
@ -168,7 +164,6 @@ namespace Server.Items
if (content?.IsMatch(Pages) != true)
flags |= SaveFlags.Content;
writer.Write(4); // version
writer.Write((int)Level);
@ -199,72 +194,72 @@ namespace Server.Items
switch (version)
{
case 4:
{
Level = (SecureLevel)reader.ReadInt();
goto case 3;
}
{
Level = (SecureLevel)reader.ReadInt();
goto case 3;
}
case 3:
case 2:
{
BookContent content = DefaultContent;
SaveFlags flags = (SaveFlags)reader.ReadByte();
if ((flags & SaveFlags.Title) != 0)
m_Title = Utility.Intern(reader.ReadString());
else if (content != null)
m_Title = content.Title;
if ((flags & SaveFlags.Author) != 0)
m_Author = reader.ReadString();
else if (content != null)
m_Author = content.Author;
Writable = (flags & SaveFlags.Writable) != 0;
if ((flags & SaveFlags.Content) != 0)
{
Pages = new BookPageInfo[reader.ReadEncodedInt()];
for (int i = 0; i < Pages.Length; ++i)
Pages[i] = new BookPageInfo(reader);
}
else
{
if (content != null)
Pages = content.Copy();
else
Pages = new BookPageInfo[0];
}
break;
}
case 1:
case 0:
{
m_Title = reader.ReadString();
m_Author = reader.ReadString();
Writable = reader.ReadBool();
if (version == 0 || reader.ReadBool())
{
Pages = new BookPageInfo[reader.ReadInt()];
for (int i = 0; i < Pages.Length; ++i)
Pages[i] = new BookPageInfo(reader);
}
else
{
BookContent content = DefaultContent;
if (content != null)
Pages = content.Copy();
else
Pages = new BookPageInfo[0];
}
SaveFlags flags = (SaveFlags)reader.ReadByte();
break;
}
if ((flags & SaveFlags.Title) != 0)
m_Title = Utility.Intern(reader.ReadString());
else if (content != null)
m_Title = content.Title;
if ((flags & SaveFlags.Author) != 0)
m_Author = reader.ReadString();
else if (content != null)
m_Author = content.Author;
Writable = (flags & SaveFlags.Writable) != 0;
if ((flags & SaveFlags.Content) != 0)
{
Pages = new BookPageInfo[reader.ReadEncodedInt()];
for (int i = 0; i < Pages.Length; ++i)
Pages[i] = new BookPageInfo(reader);
}
else
{
if (content != null)
Pages = content.Copy();
else
Pages = Array.Empty<BookPageInfo>();
}
break;
}
case 1:
case 0:
{
m_Title = reader.ReadString();
m_Author = reader.ReadString();
Writable = reader.ReadBool();
if (version == 0 || reader.ReadBool())
{
Pages = new BookPageInfo[reader.ReadInt()];
for (int i = 0; i < Pages.Length; ++i)
Pages[i] = new BookPageInfo(reader);
}
else
{
BookContent content = DefaultContent;
if (content != null)
Pages = content.Copy();
else
Pages = Array.Empty<BookPageInfo>();
}
break;
}
}
if (version < 3 && (Weight == 1 || Weight == 2))
@ -283,13 +278,13 @@ namespace Server.Items
{
base.GetProperties( list );
if ( m_Title?.Length > 0 )
if (m_Title?.Length > 0)
list.Add( 1060658, "Title\t{0}", m_Title ); // ~1_val~: ~2_val~
if ( m_Author?.Length > 0 )
if (m_Author?.Length > 0)
list.Add( 1060659, "Author\t{0}", m_Author ); // ~1_val~: ~2_val~
if ( m_Pages?.Length > 0 )
if (m_Pages?.Length > 0)
list.Add( 1060660, "Pages\t{0}", m_Pages.Length ); // ~1_val~: ~2_val~
}*/
@ -425,22 +420,22 @@ namespace Server.Items
{
EnsureCapacity(256);
m_Stream.Write(book.Serial);
m_Stream.Write((ushort)book.PagesCount);
Stream.Write(book.Serial);
Stream.Write((ushort)book.PagesCount);
for (int i = 0; i < book.PagesCount; ++i)
{
BookPageInfo page = book.Pages[i];
m_Stream.Write((ushort)(i + 1));
m_Stream.Write((ushort)page.Lines.Length);
Stream.Write((ushort)(i + 1));
Stream.Write((ushort)page.Lines.Length);
for (int j = 0; j < page.Lines.Length; ++j)
{
byte[] buffer = Utility.UTF8.GetBytes(page.Lines[j]);
m_Stream.Write(buffer, 0, buffer.Length);
m_Stream.Write((byte)0);
Stream.Write(buffer, 0, buffer.Length);
Stream.Write((byte)0);
}
}
}
@ -458,18 +453,18 @@ namespace Server.Items
EnsureCapacity(15 + titleBuffer.Length + authorBuffer.Length);
m_Stream.Write(book.Serial);
m_Stream.Write(true);
m_Stream.Write(book.Writable && from.InRange(book.GetWorldLocation(), 1));
m_Stream.Write((ushort)book.PagesCount);
Stream.Write(book.Serial);
Stream.Write(true);
Stream.Write(book.Writable && from.InRange(book.GetWorldLocation(), 1));
Stream.Write((ushort)book.PagesCount);
m_Stream.Write((ushort)(titleBuffer.Length + 1));
m_Stream.Write(titleBuffer, 0, titleBuffer.Length);
m_Stream.Write((byte)0); // terminate
Stream.Write((ushort)(titleBuffer.Length + 1));
Stream.Write(titleBuffer, 0, titleBuffer.Length);
Stream.Write((byte)0); // terminate
m_Stream.Write((ushort)(authorBuffer.Length + 1));
m_Stream.Write(authorBuffer, 0, authorBuffer.Length);
m_Stream.Write((byte)0); // terminate
Stream.Write((ushort)(authorBuffer.Length + 1));
Stream.Write(authorBuffer, 0, authorBuffer.Length);
Stream.Write((byte)0); // terminate
}
}
}

View file

@ -2,11 +2,9 @@ namespace Server.Items
{
public class BlackthornWelcomeBook : RedBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"A Welcome", "Lord Blackthorn",
new BookPageInfo
(
new BookPageInfo(
" Greetings to you,",
"new member of the",
"Trusted.",
@ -14,10 +12,8 @@ namespace Server.Items
"words because you",
"have been deemed",
"worthy to join the",
"ranks of"
),
new BookPageInfo
(
"ranks of"),
new BookPageInfo(
"Britannia's defenders.",
"Some will call you a",
"betrayer of mankind, I",
@ -25,10 +21,8 @@ namespace Server.Items
"misguided. I call you",
"a defender for Sosaria",
"needs saving from",
"itself."
),
new BookPageInfo
(
"itself."),
new BookPageInfo(
" The forces of order",
"once ruled our world.",
"Like a great",
@ -36,10 +30,8 @@ namespace Server.Items
"lives we lived under",
"the oppressive watch",
"of a king who",
"dictated our actions"
),
new BookPageInfo
(
"dictated our actions"),
new BookPageInfo(
"and passed judgment",
"on our character. He",
"suppressed our way of",
@ -47,10 +39,8 @@ namespace Server.Items
"freedom and the",
"ability to determine",
"who we are and what",
"we stand for. Even"
),
new BookPageInfo
(
"we stand for. Even"),
new BookPageInfo(
"today in the absence",
"of this man we still",
"see the symbol of his",
@ -58,10 +48,8 @@ namespace Server.Items
"personal guards patrol",
"the cities to",
"intimidate us, and we",
"feel his laws like a"
),
new BookPageInfo
(
"feel his laws like a"),
new BookPageInfo(
"vice on our lives.",
" You are here",
"because you choose to",
@ -69,10 +57,8 @@ namespace Server.Items
"Britannians you have",
"felt the oppression of",
"one man's ideas",
"weighing down upon"
),
new BookPageInfo
(
"weighing down upon"),
new BookPageInfo(
"you like chains. You",
"have felt the embrace",
"of fear, wondering if",
@ -80,10 +66,8 @@ namespace Server.Items
"for simply having",
"ideas not in harmony",
"with those forced upon",
"you. You have seen"
),
new BookPageInfo
(
"you. You have seen"),
new BookPageInfo(
"men fight and die for",
"the principles of a",
"zealot and wondered,",
@ -91,10 +75,8 @@ namespace Server.Items
"my principles should",
"they be opposed?'",
"You tire of living",
"under the shadow of"
),
new BookPageInfo
(
"under the shadow of"),
new BookPageInfo(
"dreams that do not",
"belong to you. And",
"most of all, you have",
@ -102,10 +84,8 @@ namespace Server.Items
"can do to live free.",
" Your journey to",
"freedom begins here.",
" I, like you, once"
),
new BookPageInfo
(
" I, like you, once"),
new BookPageInfo(
"desired my freedom",
"from the limits placed",
"on me. I watched in",
@ -113,10 +93,8 @@ namespace Server.Items
"became engrossed with",
"the preaching of",
"virtue and none of the",
"practice. I held my"
),
new BookPageInfo
(
"practice. I held my"),
new BookPageInfo(
"convictions in check,",
"fearful of the reaction",
"of men blinded by",
@ -124,10 +102,8 @@ namespace Server.Items
"myself to bury the",
"very ideology that",
"made me an individual.",
"I was fortunate that"
),
new BookPageInfo
(
"I was fortunate that"),
new BookPageInfo(
"a being of unique",
"power and",
"unimaginable",
@ -135,10 +111,8 @@ namespace Server.Items
"through to the true",
"person I was, the",
"person I was meant to",
"be. Exodus found"
),
new BookPageInfo
(
"be. Exodus found"),
new BookPageInfo(
"within me a man of",
"free will,",
"determination, and",
@ -146,10 +120,8 @@ namespace Server.Items
"the plight of",
"oppression forced on so",
"many Britannians.",
" Exodus has also"
),
new BookPageInfo
(
" Exodus has also"),
new BookPageInfo(
"chosen you because of",
"the strength of your",
"character.",
@ -157,10 +129,8 @@ namespace Server.Items
"who were once my",
"peers look upon me",
"and see a betrayer of",
"humanity. They"
),
new BookPageInfo
(
"humanity. They"),
new BookPageInfo(
"claim my newfound",
"form is unnatural and",
"wrong. Because they",
@ -168,10 +138,8 @@ namespace Server.Items
"me, they show fear.",
"They disapprove of",
"my choices and in",
"their ignorance see"
),
new BookPageInfo
(
"their ignorance see"),
new BookPageInfo(
"evil. Yet I hide my",
"true self no longer",
"from these men. My",
@ -179,10 +147,8 @@ namespace Server.Items
"personal morality have",
"been liberated in the",
"face of the oppression",
"that once consumed me."
),
new BookPageInfo
(
"that once consumed me."),
new BookPageInfo(
"Where they see a",
"man no longer human.",
"I see a man that has",
@ -190,10 +156,8 @@ namespace Server.Items
"humanity but has been",
"freed from it. This",
"is the power that has",
"been granted to me by"
),
new BookPageInfo
(
"been granted to me by"),
new BookPageInfo(
"Exodus. I have been",
"given my freedom. I",
"have been released",
@ -201,10 +165,8 @@ namespace Server.Items
" Exodus will give",
"you the power to",
"conquer your fears as",
"well."
),
new BookPageInfo
(
"well."),
new BookPageInfo(
" When your fear",
"of this world is gone,",
"then the world truly",
@ -212,10 +174,8 @@ namespace Server.Items
"way it never has",
"before. You, trusted",
"one, will soon be given",
"a gift. Your body,"
),
new BookPageInfo
(
"a gift. Your body,"),
new BookPageInfo(
"like mine, will be",
"enlightened and raised",
"to a level no mortal",
@ -223,10 +183,8 @@ namespace Server.Items
"to control your own",
"destiny will belong to",
"you for the first time",
"in your life."
),
new BookPageInfo
(
"in your life."),
new BookPageInfo(
" You will, at long",
"last, be cleansed of",
"fear.",
@ -234,10 +192,8 @@ namespace Server.Items
"power of Exodus",
"behind us, we shall",
"finally wage war on",
"the oppression that"
),
new BookPageInfo
(
"the oppression that"),
new BookPageInfo(
"once held us back",
"from our full",
"potential. We shall",
@ -245,10 +201,8 @@ namespace Server.Items
"reshape it in an image",
"of freedom for all of",
"us. Those who once",
"told you who you are"
),
new BookPageInfo
(
"told you who you are"),
new BookPageInfo(
"and how you should",
"live will no longer be",
"able to stand in the",
@ -256,14 +210,10 @@ namespace Server.Items
"Many say you will",
"be abandoning your",
"humanity but in truth,",
"you will be more than"
),
new BookPageInfo
(
"you will be more than"),
new BookPageInfo(
"human.",
" You will be freed."
)
);
" You will be freed."));
[Constructible]
public BlackthornWelcomeBook() : base(false) => Hue = 0x89B;

View file

@ -9,11 +9,11 @@ namespace Server.Items
Pages = pages;
}
public string Title{ get; }
public string Title { get; }
public string Author{ get; }
public string Author { get; }
public BookPageInfo[] Pages{ get; }
public BookPageInfo[] Pages { get; }
public BookPageInfo[] Copy()
{

View file

@ -2,11 +2,9 @@ namespace Server.Items
{
public class DrakovsJournal : BlueBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"Drakov's Journal", "Drakov",
new BookPageInfo
(
new BookPageInfo(
"My Master",
"",
"This journal was",
@ -14,18 +12,14 @@ namespace Server.Items
"our controllers. It",
"seems he has lost",
"faith in you. Know",
"that he has been"
),
new BookPageInfo
(
"that he has been"),
new BookPageInfo(
"dealth with and will",
"never again speak",
"ill of you or our",
"cause.",
" -Galzon"
),
new BookPageInfo
(
" -Galzon"),
new BookPageInfo(
"We have completted",
"construction of the",
"devices needed to",
@ -33,10 +27,8 @@ namespace Server.Items
"overseers and minions",
"as per the request of",
"the Master. The",
"gargoyles have been"
),
new BookPageInfo
(
"gargoyles have been"),
new BookPageInfo(
"most useful and their",
"knowledge of the",
"techniques for the",
@ -44,10 +36,8 @@ namespace Server.Items
"creatures will serve",
"us well.",
" -----",
"I am not one to"
),
new BookPageInfo
(
"I am not one to"),
new BookPageInfo(
"criticize the Master,",
"but I believe he may",
"have erred in his",
@ -55,10 +45,8 @@ namespace Server.Items
"the wingless ones.",
"Already our forces",
"are weakened by the",
"constant attacks of"
),
new BookPageInfo
(
"constant attacks of"),
new BookPageInfo(
"the humans Their",
"strength and",
"unquestioning",
@ -66,10 +54,8 @@ namespace Server.Items
"have made them very",
"useful in the fight",
"against the humans.",
"But the Master felt"
),
new BookPageInfo
(
"But the Master felt"),
new BookPageInfo(
"their presence to be",
"an annoyance and",
"a distraction to the",
@ -77,10 +63,8 @@ namespace Server.Items
"not difficult at all",
"to remove them from",
"this world. But now",
"I fear without more"
),
new BookPageInfo
(
"I fear without more"),
new BookPageInfo(
"allies, willing or",
"not, we stand",
"little chance of",
@ -88,15 +72,11 @@ namespace Server.Items
"humans from our",
"lands. Perhaps if",
"the Master had",
"shown a little"
),
new BookPageInfo
(
"shown a little"),
new BookPageInfo(
"mercy and forsight",
"we would not be",
"in such dire peril."
)
);
"in such dire peril."));
[Constructible]
public DrakovsJournal() : base(false)

View file

@ -2,11 +2,9 @@ namespace Server.Items
{
public class FropozJournal : RedBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"Journal", "Fropoz",
new BookPageInfo
(
new BookPageInfo(
"I have done as my",
"Master has",
"instructed me.",
@ -14,10 +12,8 @@ namespace Server.Items
"The painted humans",
"have been driven into",
"Britannia and are even",
"now wreaking havoc"
),
new BookPageInfo
(
"now wreaking havoc"),
new BookPageInfo(
"across the land,",
"providing us with the",
"distraction my Master",
@ -25,10 +21,8 @@ namespace Server.Items
"have provided them",
"with the masks",
"necessary to defeat",
"the orcs, thus"
),
new BookPageInfo
(
"the orcs, thus"),
new BookPageInfo(
"causing even more",
"distress for the people",
"of Britannia. The",
@ -36,10 +30,8 @@ namespace Server.Items
"are too busy dealing",
"with the orc hordes to",
"continue their",
"exploration of our"
),
new BookPageInfo
(
"exploration of our"),
new BookPageInfo(
"lands. We are",
"safe...for now.",
" ----",
@ -47,10 +39,8 @@ namespace Server.Items
"continue exactly as",
"planned. My Master",
"is pleased with my",
"work and we are"
),
new BookPageInfo
(
"work and we are"),
new BookPageInfo(
"closer to our goals than",
"ever before. The",
"gargoyles have proven",
@ -58,10 +48,8 @@ namespace Server.Items
"than we first",
"anticipated, but I",
"believe we can",
"subjugate them fully"
),
new BookPageInfo
(
"subjugate them fully"),
new BookPageInfo(
"given enough time. It's",
"unfortunate that we",
"did not discover their",
@ -69,10 +57,8 @@ namespace Server.Items
"Even now they",
"prepare our armies",
"for battle, but not",
"without resistance."
),
new BookPageInfo
(
"without resistance."),
new BookPageInfo(
"Now that some of",
"them know of the",
"other lands and of",
@ -80,10 +66,8 @@ namespace Server.Items
"double their efforts to",
"seek help. This",
"cannot be allowed.",
" -----"
),
new BookPageInfo
(
" -----"),
new BookPageInfo(
"Damn them!! The",
"humans proved",
"more resourcefull than",
@ -91,10 +75,8 @@ namespace Server.Items
"capable of. Already",
"their homes are free",
"of orcs and savages",
"and they once again"
),
new BookPageInfo
(
"and they once again"),
new BookPageInfo(
"are treading in our",
"lands. We may have to",
"move sooner than we",
@ -102,10 +84,8 @@ namespace Server.Items
"prepar my brethern",
"and our golems.",
"Hopefully, we can",
"buy our Master some"
),
new BookPageInfo
(
"buy our Master some"),
new BookPageInfo(
"more time before the",
"humans discover us.",
" -----",
@ -113,10 +93,8 @@ namespace Server.Items
"gargoyles whom have",
"evaded our capture",
"have opened the doors",
"to our land."
),
new BookPageInfo
(
"to our land."),
new BookPageInfo(
"They pray the",
"humans will help",
"them, despite the",
@ -124,22 +102,16 @@ namespace Server.Items
"cousins in Britannia. I",
"fear they are right.",
"I must go to warn",
"the MastKai Hohiro,"
),
new BookPageInfo
(
),
new BookPageInfo
(
"the MastKai Hohiro,"),
new BookPageInfo(),
new BookPageInfo(
"10.11.2001",
"first one to be here",
"",
"Congrats. I didn't really",
"care to log on earlier,",
"nor did I come straight",
"here. 2pm, Magus"
)
);
"here. 2pm, Magus"));
[Constructible]
public FropozJournal() : base(false)

View file

@ -2,11 +2,9 @@ namespace Server.Items
{
public class KaburJournal : RedBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"Journal", "Kabur",
new BookPageInfo
(
new BookPageInfo(
"The campaign to slaughter",
"the Meer goes well.",
"Although they seem to",
@ -14,10 +12,8 @@ namespace Server.Items
"ours at every turn, we",
"still defeat them in",
"combat. Spies of the",
"Meer have been found and"
),
new BookPageInfo
(
"Meer have been found and"),
new BookPageInfo(
"slain outside of the",
"fortress of ours. The",
"fools underestimate us.",
@ -25,10 +21,8 @@ namespace Server.Items
"Lord Exodus behind us.",
"Soon they will learn to",
"serve the Juka and I",
"shall carry the head of"
),
new BookPageInfo
(
"shall carry the head of"),
new BookPageInfo(
"the wench, Dasha, on a",
"spike for all the warriors",
"of ours to share triumph",
@ -36,10 +30,8 @@ namespace Server.Items
"",
"One of the warriors of",
"the Juka died today.",
"During the training"
),
new BookPageInfo
(
"During the training"),
new BookPageInfo(
"exercises of ours he",
"spoke out in favor of",
"the warriors of the",
@ -47,10 +39,8 @@ namespace Server.Items
"were indeed powerful and",
"would provide a challenge",
"to the Juka. A Juka in",
"fear is no Juka. I gave"
),
new BookPageInfo
(
"fear is no Juka. I gave"),
new BookPageInfo(
"him the death of a",
"coward, outside of battle.",
"",
@ -58,10 +48,8 @@ namespace Server.Items
"have been found around",
"the fortress of ours.",
"Many have been seen and",
"escaped the wrath of the"
),
new BookPageInfo
(
"escaped the wrath of the"),
new BookPageInfo(
"warriors of ours. Those",
"who have been captured",
"and tortured have",
@ -69,10 +57,8 @@ namespace Server.Items
"even when subjected to",
"the spells of the females.",
" I know the Meer must",
"have plans against us if"
),
new BookPageInfo
(
"have plans against us if"),
new BookPageInfo(
"they send so many spies.",
" I may send the troops",
"of the Juka to invade",
@ -80,10 +66,8 @@ namespace Server.Items
"warning.",
"",
"I have met Dasha in",
"battle this day. The"
),
new BookPageInfo
(
"battle this day. The"),
new BookPageInfo(
"efforts of hers to draw",
"me into a Black Duel",
"were foolish. Had we",
@ -91,10 +75,8 @@ namespace Server.Items
"the cave I would have",
"ended the life of hers",
"but I will have to wait",
"for another battle. Lord"
),
new BookPageInfo
(
"for another battle. Lord"),
new BookPageInfo(
"Exodus has ordered more",
"patrols around the",
"fortress of ours. If",
@ -102,10 +84,8 @@ namespace Server.Items
"the Meer will strike soon.",
"",
"More Meer stand outside",
"of the fortress of ours"
),
new BookPageInfo
(
"of the fortress of ours"),
new BookPageInfo(
"than I have ever seen at",
"once. They must seek",
"vengeance for the",
@ -113,10 +93,8 @@ namespace Server.Items
"forest. Many Juka stand",
"ready at the base of the",
"mountain to face the",
"forces of theirs but"
),
new BookPageInfo
(
"forces of theirs but"),
new BookPageInfo(
"today may be the final",
"battle. Exodus has",
"summoned me, I must",
@ -124,10 +102,8 @@ namespace Server.Items
"",
"Dusk has passed and the",
"Juka now live in a new",
"age, a later time. I have"
),
new BookPageInfo
(
"age, a later time. I have"),
new BookPageInfo(
"just returned from",
"exploring the new world",
"that surrounds the",
@ -135,10 +111,8 @@ namespace Server.Items
"During the attack of the",
"Meer the madman",
"Adranath tried to destroy",
"the fortress of ours"
),
new BookPageInfo
(
"the fortress of ours"),
new BookPageInfo(
"with great magic. At",
"once he was still and",
"light surrounded the",
@ -146,10 +120,8 @@ namespace Server.Items
"faded from view. When I",
"regained the senses of",
"mine I saw no sign of",
"the Meer but Dasha."
),
new BookPageInfo
(
"the Meer but Dasha."),
new BookPageInfo(
"She has not been found",
"since this new being,",
"Blackthorn, blasted her",
@ -157,10 +129,8 @@ namespace Server.Items
"fortress.",
"The forest was gone, now",
"replaced by grasslands.",
"In the far distance I"
),
new BookPageInfo
(
"In the far distance I"),
new BookPageInfo(
"could see humans that",
"had covered the bodies of",
"theirs in marks. Even",
@ -168,10 +138,8 @@ namespace Server.Items
"place. Exodus has",
"explained to me that the",
"Juka and the fortress of",
"ours have been pulled"
),
new BookPageInfo
(
"ours have been pulled"),
new BookPageInfo(
"forward in time. The",
"world we knew is now",
"thousands of years in the",
@ -179,20 +147,16 @@ namespace Server.Items
"he has has saved the",
"Juka from extinction. I",
"do not want to believe",
"him. I asked this"
),
new BookPageInfo
(
"him. I asked this"),
new BookPageInfo(
"stranger about the Meer,",
"but he tells me a new",
"enemy remains to be",
"destroyed. It seems the",
"enemies of ours have",
"passed away to dust like",
"the forest."
),
new BookPageInfo
(
"the forest."),
new BookPageInfo(
"I have spoken with other",
"Juka and I suspect I have",
"been told the truth. All",
@ -200,10 +164,8 @@ namespace Server.Items
"dreams. In the dreams",
"of ours the Meer invaded",
"the fortress of ours and",
"a great battle took place."
),
new BookPageInfo
(
"a great battle took place."),
new BookPageInfo(
" All the Juka and all the",
"Meer perished and the",
"fortress was destroyed",
@ -211,10 +173,8 @@ namespace Server.Items
"would not like to believe",
"that the Meer could ever",
"destroy us, but now it",
"seems we have seen a"
),
new BookPageInfo
(
"seems we have seen a"),
new BookPageInfo(
"vision of the fate of",
"ours now lost in time. I",
"must now wonder if the",
@ -222,9 +182,7 @@ namespace Server.Items
"battle with the Juka, how",
"did they die? And more",
"importantly, where is",
"Dasha?"
)
);
"Dasha?"));
[Constructible]
public KaburJournal() : base(false)

File diff suppressed because it is too large Load diff

View file

@ -2,20 +2,16 @@ namespace Server.Items
{
public class NewAquariumBook : BlueBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"Your New Aquarium", "Les Bilgewater",
new BookPageInfo
(
new BookPageInfo(
"Welcome to the",
"wonderful world",
"of aquarium ownership.",
"With a little time and",
"skill your aquarium can",
"become a work of art!"
),
new BookPageInfo
(
"become a work of art!"),
new BookPageInfo(
"Catching Fish:",
"You will need to",
"aquire a fishing net,",
@ -23,10 +19,8 @@ namespace Server.Items
"bowls, from your local",
"fisherman.",
"To use the net,",
"select it from your"
),
new BookPageInfo
(
"select it from your"),
new BookPageInfo(
"backpack, and cast it",
"into shallow water.",
"Then we wait.",
@ -34,19 +28,15 @@ namespace Server.Items
"happy to be in your",
"aquarium, they will",
"jump right into your",
"fish bowl when caught!"
),
new BookPageInfo
(
"fish bowl when caught!"),
new BookPageInfo(
"Just take them home",
"and pour them into",
"your aquarium, and",
"BING! You have a happy",
"new addition to your",
"collection!"
),
new BookPageInfo
(
"collection!"),
new BookPageInfo(
"Caring for our",
"Underwater Allies:",
"",
@ -54,10 +44,8 @@ namespace Server.Items
"water and food to",
"survive.",
" Our aquarium comes",
"with a status monitoring"
),
new BookPageInfo
(
"with a status monitoring"),
new BookPageInfo(
"aid. Must be Magic!",
" Just look at the",
"front of your aquarium",
@ -65,10 +53,8 @@ namespace Server.Items
"helpful and friendly",
"guide? It tells how much",
"food and water is",
"needed to maintain,"
),
new BookPageInfo
(
"needed to maintain,"),
new BookPageInfo(
"and improve the quality",
"of your tank.",
" You dont want to",
@ -76,10 +62,8 @@ namespace Server.Items
"very often. In fact,",
"you only want to feed",
"them every other day.",
"But, remember to keep"
),
new BookPageInfo
(
"But, remember to keep"),
new BookPageInfo(
"the water strong and",
"healthy, and add more",
"on a regular basis",
@ -87,18 +71,14 @@ namespace Server.Items
"a pretty, sparkely blue.",
"",
" Well, I hope you",
"get as much enjoyment,"
),
new BookPageInfo
(
"get as much enjoyment,"),
new BookPageInfo(
"collecting a beautiful",
"array of our fine, finned,",
"friends from the sea,",
"as I do!",
"",
"Happy Fishing!"
)
);
"Happy Fishing!"));
[Constructible]
public NewAquariumBook() : base(false) => Hue = 0;

View file

@ -2,11 +2,9 @@ namespace Server.Items
{
public class TranslatedGargoyleJournal : BlueBook
{
public static readonly BookContent Content = new BookContent
(
public static readonly BookContent Content = new BookContent(
"Translated Journal", "Velis",
new BookPageInfo
(
new BookPageInfo(
"This text has been",
"translated from a",
"gargoyle's journal",
@ -14,10 +12,8 @@ namespace Server.Items
"and subsequent",
"reeducation.",
"",
" -Velis"
),
new BookPageInfo
(
" -Velis"),
new BookPageInfo(
"I write this in the",
"hopes that someday a",
"soul of pure heart and",
@ -25,10 +21,8 @@ namespace Server.Items
"are not the evil beings",
"that our cousin",
"gargoyles have made",
"us out to be. We"
),
new BookPageInfo
(
"us out to be. We"),
new BookPageInfo(
"consider them",
"uncivilized and they",
"have no concept of the",
@ -36,10 +30,8 @@ namespace Server.Items
"who reads this, I beg",
"for your help in",
"saving my brethern",
"and preserving my"
),
new BookPageInfo
(
"and preserving my"),
new BookPageInfo(
"race. We stand at the",
"edge of destruction as",
"does the rest of the",
@ -47,10 +39,8 @@ namespace Server.Items
"written law that we",
"would not allow the",
"knowledge of our",
"civilization to spread"
),
new BookPageInfo
(
"civilization to spread"),
new BookPageInfo(
"into the world, no we",
"are left with little",
"choice...contact the",
@ -58,10 +48,8 @@ namespace Server.Items
"of finding help to save",
"it or becoming the",
"unwilling bringers of",
"its damnation."
),
new BookPageInfo
(
"its damnation."),
new BookPageInfo(
" I fear my capture is",
"certain, the",
"controllers grow ever",
@ -69,10 +57,8 @@ namespace Server.Items
"place and I know if",
"they discover me, my",
"fate will be as that of",
"my brothers."
),
new BookPageInfo
(
"my brothers."),
new BookPageInfo(
"Although we resisted",
"with all our strength",
"it is now clear that we",
@ -80,10 +66,8 @@ namespace Server.Items
"or our people will be",
"gone. And if our",
"oppressor achieves",
"his goals our race will"
),
new BookPageInfo
(
"his goals our race will"),
new BookPageInfo(
"surely be joined buy",
"others.",
" Those of us who",
@ -91,10 +75,8 @@ namespace Server.Items
"taken hope to open a",
"path from the outside",
"world into the city.",
"We believe we have"
),
new BookPageInfo
(
"We believe we have"),
new BookPageInfo(
"found weak areas in",
"the mountains that we",
"can successfully",
@ -102,26 +84,16 @@ namespace Server.Items
"our limited supplies.",
"We will have to work",
"quickly and the risk",
"of being discovered is"
),
new BookPageInfo
(
"of being discovered is"),
new BookPageInfo(
"great, but no choice",
"remains..."
),
new BookPageInfo
(
),
new BookPageInfo
(
),
new BookPageInfo
(
"remains..."),
new BookPageInfo(),
new BookPageInfo(),
new BookPageInfo(
"Kai Hohiro, 12pm.",
"10.11.2001",
"first one to be here"
)
);
"first one to be here"));
[Constructible]
public TranslatedGargoyleJournal() : base(false)