#W# Source and Scripts added. Added Scripts/Settings.cs to expose some basic tweak able settings.
This commit is contained in:
parent
b51c58f514
commit
3045c83799
3512 changed files with 627673 additions and 0 deletions
40
Scripts/Engines/Ethics/Hero/Ethic.cs
Normal file
40
Scripts/Engines/Ethics/Hero/Ethic.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Server.Factions;
|
||||
|
||||
namespace Server.Ethics.Hero
|
||||
{
|
||||
public sealed class HeroEthic : Ethic
|
||||
{
|
||||
public HeroEthic()
|
||||
{
|
||||
m_Definition = new EthicDefinition(
|
||||
0x482,
|
||||
"Hero", "(Hero)",
|
||||
"I will defend the virtues",
|
||||
new Power[]
|
||||
{
|
||||
new HolySense(),
|
||||
new HolyItem(),
|
||||
new SummonFamiliar(),
|
||||
new HolyBlade(),
|
||||
new Bless(),
|
||||
new HolyShield(),
|
||||
new HolySteed(),
|
||||
new HolyWord()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public override bool IsEligible( Mobile mob )
|
||||
{
|
||||
if ( mob.Kills >= 5 )
|
||||
return false;
|
||||
|
||||
Faction fac = Faction.Find( mob );
|
||||
|
||||
return ( fac is TrueBritannians || fac is CouncilOfMages );
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue