parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -34,13 +34,13 @@ namespace Server.Engines.Quests.Collector
|
|||
public override void AddNameProperty(ObjectPropertyList list)
|
||||
{
|
||||
ImageTypeInfo info = ImageTypeInfo.Get(m_Image);
|
||||
list.Add(1060847, "#1055126\t#" + info.Name); // a painted image of:
|
||||
list.Add(1060847, $"#1055126\t#{info.Name}"); // a painted image of:
|
||||
}
|
||||
|
||||
public override void OnSingleClick(Mobile from)
|
||||
{
|
||||
ImageTypeInfo info = ImageTypeInfo.Get(m_Image);
|
||||
LabelTo(from, 1060847, "#1055126\t#" + info.Name); // a painted image of:
|
||||
LabelTo(from, 1060847, $"#1055126\t#{info.Name}"); // a painted image of:
|
||||
}
|
||||
|
||||
public override void OnDoubleClick(Mobile from)
|
||||
|
|
|
|||
|
|
@ -132,18 +132,12 @@ namespace Server.Engines.Quests.Collector
|
|||
|
||||
public void InitTheater()
|
||||
{
|
||||
switch (Utility.Random(3))
|
||||
m_Theater = Utility.Random(3) switch
|
||||
{
|
||||
case 1:
|
||||
m_Theater = Theater.Britain;
|
||||
break;
|
||||
case 2:
|
||||
m_Theater = Theater.Nujelm;
|
||||
break;
|
||||
default:
|
||||
m_Theater = Theater.Jhelom;
|
||||
break;
|
||||
}
|
||||
1 => Theater.Britain,
|
||||
2 => Theater.Nujelm,
|
||||
_ => Theater.Jhelom
|
||||
};
|
||||
}
|
||||
|
||||
public bool IsInRightTheater()
|
||||
|
|
@ -155,14 +149,13 @@ namespace Server.Engines.Quests.Collector
|
|||
if (region == null)
|
||||
return false;
|
||||
|
||||
switch (m_Theater)
|
||||
return m_Theater switch
|
||||
{
|
||||
case Theater.Britain: return region.IsPartOf("Britain");
|
||||
case Theater.Nujelm: return region.IsPartOf("Nujel'm");
|
||||
case Theater.Jhelom: return region.IsPartOf("Jhelom");
|
||||
|
||||
default: return false;
|
||||
}
|
||||
Theater.Britain => region.IsPartOf("Britain"),
|
||||
Theater.Nujelm => region.IsPartOf("Nujel'm"),
|
||||
Theater.Jhelom => region.IsPartOf("Jhelom"),
|
||||
_ => false
|
||||
};
|
||||
}
|
||||
|
||||
public override void OnComplete()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue