int max = from.Skills[SkillName.Chivalry].Value < 70.0 ? 4 : 2; ↓修正 int max = from.Skills[SkillName.Magery].Value < 70.0 ? 4 : 2;
public virtual int LuckBonusSculpture { get { return 0; } } // ★行追加 public virtual int LuckBonusFountain { get { return 0; } } // ★行追加
public override int LuckBonusSculpture { get { return TenthAnniversarySculpture.GetLuckBonus(this); } } // ★行追加 public override int LuckBonusFountain { get { return FountainOfFortune.GetLuckBonus(this); } } // ★行追加
m_Stream.Write((short)m.Luck); // Luck ↓変更 m_Stream.Write((short)(m.Luck + m.LuckBonusSculpture + m.LuckBonusFountain)); // Luck
m_Stream.Write((short)beheld.Luck); // Luck ↓変更 m_Stream.Write((short)(beheld.Luck + beheld.LuckBonusSculpture + beheld.LuckBonusFountain)); // Luck
using Server.Accounting; // ★追加 using Server.Engines.VeteranRewards; // ★追加
private static readonly int LuckBonus = 200; // ★新規さん含めて底上げしたいときはこの値です
// ★追加ここから private static int GetLuckExtend(Mobile from) { Account acct = from.Account as Account; if (acct == null) return 0; TimeSpan totalTime = (DateTime.UtcNow - acct.Created) + TimeSpan.FromDays(RewardSystem.RewardInterval.TotalDays * RewardSystem.StartingLevel); int luckExtend = (totalTime.Days / 30) * 50; // ★ここでアカ歴による上昇分を調整可能です if (luckExtend > 1000) luckExtend = 1000; return luckExtend; } // ★追加ここまで
return LuckBonus + GetLuckExtend(from); // ★ + GetLuckExtend(from)を追加
public override Race RequiredRace { get { return Race.Gargoyle; } } // ★追加 public override bool CanBeWornByGargoyles { get { return true; } } // ★追加
DawnsMusicBox public override void OnDoubleClick(Mobile from) { // Rev.1(Mod S) -------------------- if (!this.IsChildOf(from.Backpack) && !this.IsLockedDown) from.SendLocalizedMessage(1061856); // You must have the item in your backpack or locked down in order to use it. else if (!this.IsLockedDown) from.SendLocalizedMessage(502436); // That is not accessible. else { from.CloseGump(typeof(DawnsMusicBoxGump)); from.SendGump(new DawnsMusicBoxGump(this)); } /* if (!this.IsChildOf(from.Backpack) && !this.IsLockedDown) from.SendLocalizedMessage(1061856); // You must have the item in your backpack or locked down in order to use it. else if (this.IsLockedDown && !this.HasAccces(from)) from.SendLocalizedMessage(502436); // That is not accessible. else { from.CloseGump(typeof(DawnsMusicBoxGump)); from.SendGump(new DawnsMusicBoxGump(this)); } */ // Rev.1(Mod E) -------------------- }
RewardVersionのDawnsMusicBox.cs public override void OnDoubleClick(Mobile from) { if (this.m_Tracks.Count < 1) { from.SendMessage("This music box is empty."); } // Rev.1(Del S) ------------------------- //else if (this.IsOwner(from)) //{ // Rev.1(Del E) ------------------------- if (!this.IsLockedDown) from.SendLocalizedMessage(502692); // This must be in a house and be locked down to work. else { if (from.HasGump(typeof(MusicGump))) from.CloseGump(typeof(MusicGump)); from.SendGump(new MusicGump(this)); } // Rev.1(Del S) ------------------------- //} //else //{ // from.SendLocalizedMessage(502691); // You must be the owner to use this. //} // Rev.1(Del E) ------------------------- }
Item.cs private Point3D FindDropPoint(Point3D p, Map map, int maxZ)
if (myTop != -255) { int match = (1 << height) - 1; bool okay = false; for (int i = 0; i < 20; ++i) { if ((i + height) > 20) { match >>= 1; } okay = ((m_OpenSlots >> i) & match) == match; if (okay) { z += i; break; } } if (!okay) { return Point3D.Zero; } }