### Summary - Adds some more checks in case a corpse's owner is somehow null. Would like to eventually allow null owner corpses, but more work is needed. - Cleans up variable unboxing and reassignment in quests. Also flattens quest logic. Still more work needs to be done. - Codegens more quest items/mobiles.
20 lines
565 B
C#
20 lines
565 B
C#
using ModernUO.Serialization;
|
|
using Server.Mobiles;
|
|
|
|
namespace Server.Engines.Quests.Haven;
|
|
|
|
[SerializationGenerator(0, false)]
|
|
public partial class SchmendrickScrollOfPower : QuestItem
|
|
{
|
|
public SchmendrickScrollOfPower() : base(0xE34)
|
|
{
|
|
Weight = 1.0;
|
|
Hue = 0x34D;
|
|
}
|
|
|
|
public override int LabelNumber => 1049118; // a scroll with ancient markings
|
|
|
|
public override bool CanDrop(PlayerMobile player) =>
|
|
!(player.Quest is UzeraanTurmoilQuest qs &&
|
|
qs.IsObjectiveInProgress(typeof(ReturnScrollOfPowerObjective)));
|
|
}
|