Fixes FindItemsByType and FindItemByType and new override of IsLockedDown and IsSecure by renaming their methods.
This commit is contained in:
parent
7321fa1b63
commit
a48ebb3a5f
50 changed files with 416 additions and 643 deletions
|
|
@ -109,7 +109,7 @@ namespace Server.Engines.Quests.Samurai
|
|||
|
||||
if (qs is HaochisTrialsQuest)
|
||||
if (qs.IsObjectiveInProgress(typeof(FifthTrialReturnObjective)))
|
||||
return from.Backpack?.FindItemByType(typeof(HaochisKatana)) == null;
|
||||
return from.Backpack?.FindItemByType<HaochisKatana>() == null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -117,21 +117,18 @@ namespace Server.Engines.Quests.Samurai
|
|||
|
||||
if (obj != null && !obj.Completed)
|
||||
{
|
||||
Container pack = player.Backpack;
|
||||
Item katana = pack?.FindItemByType(typeof(HaochisKatana));
|
||||
if (katana != null)
|
||||
{
|
||||
katana.Delete();
|
||||
obj.Complete();
|
||||
HaochisKatana katana = player.Backpack?.FindItemByType<HaochisKatana>();
|
||||
if (katana == null)
|
||||
return;
|
||||
|
||||
katana.Delete();
|
||||
obj.Complete();
|
||||
|
||||
obj = qs.FindObjective(typeof(FifthTrialIntroObjective));
|
||||
if (obj != null && ((FifthTrialIntroObjective)obj).StolenTreasure)
|
||||
qs.AddConversation(new SixthTrialIntroConversation(true));
|
||||
else
|
||||
qs.AddConversation(new SixthTrialIntroConversation(false));
|
||||
}
|
||||
|
||||
return;
|
||||
obj = qs.FindObjective(typeof(FifthTrialIntroObjective));
|
||||
if (obj != null && ((FifthTrialIntroObjective)obj).StolenTreasure)
|
||||
qs.AddConversation(new SixthTrialIntroConversation(true));
|
||||
else
|
||||
qs.AddConversation(new SixthTrialIntroConversation(false));
|
||||
}
|
||||
|
||||
obj = qs.FindObjective(typeof(SixthTrialReturnObjective));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue