Files
abysmal-isle/Scripts/Items/Consumables/ValentineChocolate.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

94 lines
2.4 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace Server.Items
{
public class ValentineChocolate : Food
{
private static readonly int[] m_Labels = new int[]
{
1114827, // "Someone Likes You"
1114834, // "Youre Sexy"
1114836, // "Youre The Best"
1114822, // "Be Mine"
1114829, // "Always Together"
1114839, // "Sweet Memories"
1114833, // "Hot Stuff"
1114830, // "Thinking Of You"
1114838, // "*hug*"
1114832, // "*wink*"
1114826, // "Youre Sweet"
1114818, // "Sweet Dreams"
1114831, // "Kiss Me"
1114825, // "Be My Valentine"
1114835, // "Tasty!"
1114840, // "How About A Date?"
1114823, // "Youre Cute"
1114841, // "Lets Be Impulsive"
1114821, // "Yours-4-Ever"
1114824, // "Lets Be Friends"
1114837, // "Someone Loves You"
1114828, // "True Love"
};
public override int LabelNumber { get { return m_Title; } }
private int m_Title, m_Label;
[Constructable]
public ValentineChocolate()
: base(2538)
{
Weight = 1.0;
LootType = LootType.Blessed;
switch (Utility.Random(3))
{
case 0:
Hue = 1125;
m_Title = 1079994; // Dark chocolate
break;
case 1:
Hue = 1121;
m_Title = 1079995; // Milk chocolate
break;
case 2:
Hue = 1150;
m_Title = 1079996; // White Chocolate
break;
}
m_Label = m_Labels[Utility.Random(m_Labels.Length)];
}
public override void GetProperties(ObjectPropertyList list)
{
base.GetProperties(list);
list.Add(m_Label);
}
public ValentineChocolate(Serial serial)
: base(serial)
{
}
public override void Serialize(GenericWriter writer)
{
base.Serialize(writer);
writer.Write((int)0); // version
writer.Write((int)m_Title);
writer.Write((int)m_Label);
}
public override void Deserialize(GenericReader reader)
{
base.Deserialize(reader);
int version = reader.ReadInt();
m_Title = reader.ReadInt();
m_Label = reader.ReadInt();
}
}
}