Adds style cop (#109)
This commit is contained in:
parent
3e715bcb60
commit
556a17aba8
1725 changed files with 33831 additions and 38046 deletions
|
|
@ -193,19 +193,19 @@ namespace Server.Ethics
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
int playerCount = reader.ReadEncodedInt();
|
||||
|
||||
for (int i = 0; i < playerCount; ++i)
|
||||
{
|
||||
Player pl = new Player(this, reader);
|
||||
int playerCount = reader.ReadEncodedInt();
|
||||
|
||||
if (pl.Mobile != null)
|
||||
Timer.DelayCall(TimeSpan.Zero, pl.CheckAttach);
|
||||
for (int i = 0; i < playerCount; ++i)
|
||||
{
|
||||
Player pl = new Player(this, reader);
|
||||
|
||||
if (pl.Mobile != null)
|
||||
Timer.DelayCall(TimeSpan.Zero, pl.CheckAttach);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ namespace Server.Ethics
|
|||
: base(serial) =>
|
||||
Instance = this;
|
||||
|
||||
public static EthicsPersistance Instance{ get; private set; }
|
||||
public static EthicsPersistance Instance { get; private set; }
|
||||
|
||||
public override string DefaultName => "Ethics Persistance - Internal";
|
||||
|
||||
|
|
@ -41,12 +41,12 @@ namespace Server.Ethics
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
for (int i = 0; i < Ethic.Ethics.Length; ++i)
|
||||
Ethic.Ethics[i].Deserialize(reader);
|
||||
{
|
||||
for (int i = 0; i < Ethic.Ethics.Length; ++i)
|
||||
Ethic.Ethics[i].Deserialize(reader);
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -31,37 +31,37 @@ namespace Server.Ethics
|
|||
switch (version)
|
||||
{
|
||||
case 0:
|
||||
{
|
||||
Mobile = reader.ReadMobile();
|
||||
{
|
||||
Mobile = reader.ReadMobile();
|
||||
|
||||
Power = reader.ReadEncodedInt();
|
||||
History = reader.ReadEncodedInt();
|
||||
Power = reader.ReadEncodedInt();
|
||||
History = reader.ReadEncodedInt();
|
||||
|
||||
Steed = reader.ReadMobile();
|
||||
Familiar = reader.ReadMobile();
|
||||
Steed = reader.ReadMobile();
|
||||
Familiar = reader.ReadMobile();
|
||||
|
||||
m_Shield = reader.ReadDeltaTime();
|
||||
m_Shield = reader.ReadDeltaTime();
|
||||
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public Ethic Ethic{ get; }
|
||||
public Ethic Ethic { get; }
|
||||
|
||||
public Mobile Mobile{ get; }
|
||||
public Mobile Mobile { get; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster, AccessLevel.Administrator)]
|
||||
public int Power{ get; set; }
|
||||
public int Power { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster, AccessLevel.Administrator)]
|
||||
public int History{ get; set; }
|
||||
public int History { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster, AccessLevel.Administrator)]
|
||||
public Mobile Steed{ get; set; }
|
||||
public Mobile Steed { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster, AccessLevel.Administrator)]
|
||||
public Mobile Familiar{ get; set; }
|
||||
public Mobile Familiar { get; set; }
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public bool IsShielded
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@ namespace Server.Ethics
|
|||
Powers = powers;
|
||||
}
|
||||
|
||||
public int PrimaryHue{ get; }
|
||||
public int PrimaryHue { get; }
|
||||
|
||||
public TextDefinition Title{ get; }
|
||||
public TextDefinition Title { get; }
|
||||
|
||||
public TextDefinition Adjunct{ get; }
|
||||
public TextDefinition Adjunct { get; }
|
||||
|
||||
public TextDefinition JoinPhrase{ get; }
|
||||
public TextDefinition JoinPhrase { get; }
|
||||
|
||||
public Power[] Powers{ get; }
|
||||
public Power[] Powers { get; }
|
||||
}
|
||||
}
|
||||
|
|
@ -11,12 +11,12 @@ namespace Server.Ethics
|
|||
Description = description;
|
||||
}
|
||||
|
||||
public int Power{ get; }
|
||||
public int Power { get; }
|
||||
|
||||
public TextDefinition Name{ get; }
|
||||
public TextDefinition Name { get; }
|
||||
|
||||
public TextDefinition Phrase{ get; }
|
||||
public TextDefinition Phrase { get; }
|
||||
|
||||
public TextDefinition Description{ get; }
|
||||
public TextDefinition Description { get; }
|
||||
}
|
||||
}
|
||||
|
|
@ -20,8 +20,7 @@ namespace Server.Ethics.Evil
|
|||
new UnholyShield(),
|
||||
new UnholySteed(),
|
||||
new UnholyWord()
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
public override bool IsEligible(Mobile mob)
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@ namespace Server.Ethics.Evil
|
|||
15,
|
||||
"Blight",
|
||||
"Velgo Ontawl",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Evil
|
|||
5,
|
||||
"Summon Familiar",
|
||||
"Trubechs Vingir",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Evil
|
|||
5,
|
||||
"Unholy Item",
|
||||
"Vidda K'balc",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Evil
|
|||
0,
|
||||
"Unholy Sense",
|
||||
"Drewrok Velgo",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ namespace Server.Ethics.Evil
|
|||
20,
|
||||
"Unholy Shield",
|
||||
"Velgo K'blac",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Evil
|
|||
30,
|
||||
"Unholy Steed",
|
||||
"Trubechs Yeliab",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ namespace Server.Ethics.Evil
|
|||
100,
|
||||
"Unholy Word",
|
||||
"Velgo Oostrac",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ namespace Server.Ethics.Evil
|
|||
10,
|
||||
"Vile Blade",
|
||||
"Velgo Reyam",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,8 +20,7 @@ namespace Server.Ethics.Hero
|
|||
new HolyShield(),
|
||||
new HolySteed(),
|
||||
new HolyWord()
|
||||
}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
public override bool IsEligible(Mobile mob)
|
||||
|
|
|
|||
|
|
@ -12,8 +12,7 @@ namespace Server.Ethics.Hero
|
|||
15,
|
||||
"Bless",
|
||||
"Erstok Ontawl",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ namespace Server.Ethics.Hero
|
|||
10,
|
||||
"Holy Blade",
|
||||
"Erstok Reyam",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Hero
|
|||
5,
|
||||
"Holy Item",
|
||||
"Vidda K'balc",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Hero
|
|||
0,
|
||||
"Holy Sense",
|
||||
"Drewrok Erstok",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -9,8 +9,7 @@ namespace Server.Ethics.Hero
|
|||
20,
|
||||
"Holy Shield",
|
||||
"Erstok K'blac",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Hero
|
|||
30,
|
||||
"Holy Steed",
|
||||
"Trubechs Yeliab",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ namespace Server.Ethics.Hero
|
|||
100,
|
||||
"Holy Word",
|
||||
"Erstok Oostrac",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -11,8 +11,7 @@ namespace Server.Ethics.Hero
|
|||
5,
|
||||
"Summon Familiar",
|
||||
"Trubechs Vingir",
|
||||
""
|
||||
);
|
||||
"");
|
||||
|
||||
public override void BeginInvoke(Player from)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue