Files
abysmal-isle/Scripts/Services/BulkOrders/Items/GuaranteedSpellbookImprovementTalisman.cs
Unstable Kitsune b918192e4e Overwrite
Complete Overwrite of the Folder with the free shard. ServUO 57.3 has been added.
2023-11-28 23:20:26 -05:00

55 lines
1.3 KiB
C#

using System;
using Server.Mobiles;
namespace Server.Items
{
public class GuaranteedSpellbookImprovementTalisman : BaseTalisman
{
[Constructable]
public GuaranteedSpellbookImprovementTalisman()
: this(10)
{
}
[Constructable]
public GuaranteedSpellbookImprovementTalisman(int charges)
: base(0x9E28)
{
Charges = charges;
Skill = TalismanSkill.Inscription;
SuccessBonus = BaseTalisman.GetRandomSuccessful();
ExceptionalBonus = BaseTalisman.GetRandomExceptional();
}
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
if (Charges > 0)
list.Add(1049116, Charges.ToString()); // [ Charges: ~1_CHARGES~ ]
list.Add(1157212); // Crafting Failure Protection
}
public GuaranteedSpellbookImprovementTalisman(Serial serial)
: base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
}
}
}