parent
096d39609e
commit
8e9221bb5a
400 changed files with 3688 additions and 5969 deletions
|
|
@ -122,7 +122,7 @@ namespace Server.Engines.Quests.Samurai
|
|||
obj.Complete();
|
||||
|
||||
obj = qs.FindObjective<FifthTrialIntroObjective>();
|
||||
if (obj != null && ((FifthTrialIntroObjective)obj).StolenTreasure)
|
||||
if (((FifthTrialIntroObjective)obj)?.StolenTreasure == true)
|
||||
qs.AddConversation(new SixthTrialIntroConversation(true));
|
||||
else
|
||||
qs.AddConversation(new SixthTrialIntroConversation(false));
|
||||
|
|
|
|||
|
|
@ -64,19 +64,12 @@ namespace Server.Engines.Quests.Samurai
|
|||
break;
|
||||
}
|
||||
|
||||
Item weapon;
|
||||
switch (Utility.Random(3))
|
||||
var weapon = Utility.Random(3) switch
|
||||
{
|
||||
case 0:
|
||||
weapon = new NoDachi();
|
||||
break;
|
||||
case 1:
|
||||
weapon = new Lajatang();
|
||||
break;
|
||||
default:
|
||||
weapon = new Wakizashi();
|
||||
break;
|
||||
}
|
||||
0 => (Item)new NoDachi(),
|
||||
1 => new Lajatang(),
|
||||
_ => new Wakizashi()
|
||||
};
|
||||
|
||||
weapon.Movable = false;
|
||||
AddItem(weapon);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue