Adds assemblies config, fixes crash bugs. (#134)
This commit is contained in:
parent
0140eb73b4
commit
8ec166bcd0
3223 changed files with 191 additions and 191 deletions
|
|
@ -1,73 +0,0 @@
|
|||
using Server.Items;
|
||||
|
||||
namespace Server.Mobiles
|
||||
{
|
||||
public class WanderingHealer : BaseHealer
|
||||
{
|
||||
[Constructible]
|
||||
public WanderingHealer()
|
||||
{
|
||||
Title = "the wandering healer";
|
||||
|
||||
AddItem(new GnarledStaff());
|
||||
|
||||
SetSkill(SkillName.Camping, 80.0, 100.0);
|
||||
SetSkill(SkillName.Forensics, 80.0, 100.0);
|
||||
SetSkill(SkillName.SpiritSpeak, 80.0, 100.0);
|
||||
}
|
||||
|
||||
public WanderingHealer(Serial serial) : base(serial)
|
||||
{
|
||||
}
|
||||
|
||||
public override bool CanTeach => true;
|
||||
|
||||
public override bool ClickTitle => false; // Do not display title in OnSingleClick
|
||||
|
||||
public override bool CheckTeach(SkillName skill, Mobile from)
|
||||
{
|
||||
if (!base.CheckTeach(skill, from))
|
||||
return false;
|
||||
|
||||
return skill == SkillName.Anatomy
|
||||
|| skill == SkillName.Camping
|
||||
|| skill == SkillName.Forensics
|
||||
|| skill == SkillName.Healing
|
||||
|| skill == SkillName.SpiritSpeak;
|
||||
}
|
||||
|
||||
public override bool CheckResurrect(Mobile m)
|
||||
{
|
||||
if (m.Criminal)
|
||||
{
|
||||
Say(501222); // Thou art a criminal. I shall not resurrect thee.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m.Kills >= 5)
|
||||
{
|
||||
Say(501223); // Thou'rt not a decent and good person. I shall not resurrect thee.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (m.Karma < 0)
|
||||
Say(501224); // Thou hast strayed from the path of virtue, but thou still deservest a second chance.
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public override void Serialize(IGenericWriter writer)
|
||||
{
|
||||
base.Serialize(writer);
|
||||
|
||||
writer.Write(0); // version
|
||||
}
|
||||
|
||||
public override void Deserialize(IGenericReader reader)
|
||||
{
|
||||
base.Deserialize(reader);
|
||||
|
||||
int version = reader.ReadInt();
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue