- Fixed the Palace of Paroxysmus region bounds.
- Fixed a typo in the Huntsman's Forest region name. - Added the Bravehorn's drinking pool and Huntsman's Forest quest regions to Felucca. - Fixed CheckObjectTypes not sending invalid condition replies, because the commands are not always flushed after checking this. - When using an item condition with [online or [ipaddress, the command will now correctly say it does not support items. - The [Go menu now handles comments in the XML location files correctly. - Added the Increased Karma Loss attribute. - Renamed DummyTheif to DummyThief.
This commit is contained in:
parent
6da31d15da
commit
99b0ad9de5
19 changed files with 64 additions and 44 deletions
|
|
@ -1531,6 +1531,9 @@ namespace Server.Items
|
|||
if ( (prop = m_AosAttributes.WeaponSpeed) != 0 )
|
||||
list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~%
|
||||
|
||||
if ( Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0 )
|
||||
list.Add( 1075210, prop.ToString() ); // Increased Karma Loss ~1val~%
|
||||
|
||||
base.AddResistanceProperties( list );
|
||||
|
||||
if ( (prop = GetDurabilityBonus()) > 0 )
|
||||
|
|
|
|||
|
|
@ -657,6 +657,9 @@ namespace Server.Items
|
|||
if ( (prop = m_AosAttributes.WeaponSpeed) != 0 )
|
||||
list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~%
|
||||
|
||||
if ( Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0 )
|
||||
list.Add( 1075210, prop.ToString() ); // Increased Karma Loss ~1val~%
|
||||
|
||||
base.AddResistanceProperties( list );
|
||||
|
||||
if ( (prop = m_AosClothingAttributes.DurabilityBonus) > 0 )
|
||||
|
|
|
|||
|
|
@ -273,6 +273,9 @@ namespace Server.Items
|
|||
if ( (prop = m_AosAttributes.WeaponSpeed) != 0 )
|
||||
list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~%
|
||||
|
||||
if ( Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0 )
|
||||
list.Add( 1075210, prop.ToString() ); // Increased Karma Loss ~1val~%
|
||||
|
||||
base.AddResistanceProperties( list );
|
||||
|
||||
if ( m_HitPoints >= 0 && m_MaxHitPoints > 0 )
|
||||
|
|
|
|||
|
|
@ -672,6 +672,9 @@ namespace Server.Items
|
|||
if ( (prop = m_AosAttributes.WeaponSpeed) != 0 )
|
||||
list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~%
|
||||
|
||||
if ( Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0 )
|
||||
list.Add( 1075210, prop.ToString() ); // Increased Karma Loss ~1val~%
|
||||
|
||||
list.Add( 1042886, m_Count.ToString() ); // ~1_NUMBERS_OF_SPELLS~ Spells
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ namespace Server.Items
|
|||
public override int LabelNumber { get { return 1078148; } } // Ossian Grimoire
|
||||
|
||||
[Constructable]
|
||||
public OssianGrimoire() : base()
|
||||
public OssianGrimoire()
|
||||
{
|
||||
LootType = LootType.Blessed;
|
||||
|
||||
SkillBonuses.SetValues( 0, SkillName.Necromancy, 10.0 );
|
||||
Attributes.RegenMana = 1;
|
||||
Attributes.CastSpeed = 1;
|
||||
//Attributes.IncreasedKarmaLoss = 5;
|
||||
Attributes.IncreasedKarmaLoss = 5;
|
||||
}
|
||||
|
||||
public OssianGrimoire( Serial serial ) : base( serial )
|
||||
|
|
@ -25,7 +25,7 @@ namespace Server.Items
|
|||
{
|
||||
base.Serialize( writer );
|
||||
|
||||
writer.WriteEncodedInt( 0 ); //version
|
||||
writer.WriteEncodedInt( 1 ); //version
|
||||
}
|
||||
|
||||
public override void Deserialize( GenericReader reader )
|
||||
|
|
@ -33,6 +33,9 @@ namespace Server.Items
|
|||
base.Deserialize( reader );
|
||||
|
||||
int version = reader.ReadEncodedInt();
|
||||
|
||||
if ( version == 0 )
|
||||
Attributes.IncreasedKarmaLoss = 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,20 +42,12 @@ namespace Server.Items
|
|||
public override int LabelNumber { get { return 1071023; } } // Talisman
|
||||
public virtual bool ForceShowName { get { return false; } } // used to override default summoner/removal name
|
||||
|
||||
private int m_KarmaLoss;
|
||||
private int m_MaxCharges;
|
||||
private int m_Charges;
|
||||
private int m_MaxChargeTime;
|
||||
private int m_ChargeTime;
|
||||
private bool m_Blessed;
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int KarmaLoss
|
||||
{
|
||||
get { return m_KarmaLoss; }
|
||||
set { m_KarmaLoss = value; InvalidateProperties(); }
|
||||
}
|
||||
|
||||
[CommandProperty(AccessLevel.GameMaster)]
|
||||
public int MaxCharges
|
||||
{
|
||||
|
|
@ -497,8 +489,8 @@ namespace Server.Items
|
|||
if ((prop = m_AosAttributes.WeaponSpeed) != 0)
|
||||
list.Add(1060486, prop.ToString()); // swing speed increase ~1_val~%
|
||||
|
||||
if (m_KarmaLoss != 0)
|
||||
list.Add(1075210, m_KarmaLoss.ToString()); // Increased Karma Loss ~1val~%
|
||||
if (Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0)
|
||||
list.Add(1075210, prop.ToString()); // Increased Karma Loss ~1val~%
|
||||
|
||||
if (m_MaxCharges > 0)
|
||||
list.Add(1060741, m_Charges.ToString()); // charges: ~1_val~
|
||||
|
|
@ -529,7 +521,7 @@ namespace Server.Items
|
|||
Killer = 0x00000010,
|
||||
Summoner = 0x00000020,
|
||||
Removal = 0x00000040,
|
||||
KarmaLoss = 0x00000080,
|
||||
OldKarmaLoss = 0x00000080,
|
||||
Skill = 0x00000100,
|
||||
SuccessBonus = 0x00000200,
|
||||
ExceptionalBonus = 0x00000400,
|
||||
|
|
@ -555,7 +547,6 @@ namespace Server.Items
|
|||
SetSaveFlag(ref flags, SaveFlag.Killer, m_Killer != null && !m_Killer.IsEmpty);
|
||||
SetSaveFlag(ref flags, SaveFlag.Summoner, m_Summoner != null && !m_Summoner.IsEmpty);
|
||||
SetSaveFlag(ref flags, SaveFlag.Removal, m_Removal != TalismanRemoval.None);
|
||||
SetSaveFlag(ref flags, SaveFlag.KarmaLoss, m_KarmaLoss != 0);
|
||||
SetSaveFlag(ref flags, SaveFlag.Skill, (int)m_Skill != 0);
|
||||
SetSaveFlag(ref flags, SaveFlag.SuccessBonus, m_SuccessBonus != 0);
|
||||
SetSaveFlag(ref flags, SaveFlag.ExceptionalBonus, m_ExceptionalBonus != 0);
|
||||
|
|
@ -586,9 +577,6 @@ namespace Server.Items
|
|||
if (GetSaveFlag(flags, SaveFlag.Removal))
|
||||
writer.WriteEncodedInt((int)m_Removal);
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.KarmaLoss))
|
||||
writer.WriteEncodedInt(m_KarmaLoss);
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Skill))
|
||||
writer.WriteEncodedInt((int)m_Skill);
|
||||
|
||||
|
|
@ -658,8 +646,8 @@ namespace Server.Items
|
|||
if (GetSaveFlag(flags, SaveFlag.Removal))
|
||||
m_Removal = (TalismanRemoval)reader.ReadEncodedInt();
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.KarmaLoss))
|
||||
m_KarmaLoss = reader.ReadEncodedInt();
|
||||
if (GetSaveFlag(flags, SaveFlag.OldKarmaLoss))
|
||||
m_AosAttributes.IncreasedKarmaLoss = reader.ReadEncodedInt();
|
||||
|
||||
if (GetSaveFlag(flags, SaveFlag.Skill))
|
||||
m_Skill = (SkillName)reader.ReadEncodedInt();
|
||||
|
|
|
|||
|
|
@ -3306,6 +3306,9 @@ namespace Server.Items
|
|||
if ( (prop = m_AosAttributes.WeaponSpeed) != 0 )
|
||||
list.Add( 1060486, prop.ToString() ); // swing speed increase ~1_val~%
|
||||
|
||||
if ( Core.ML && (prop = m_AosAttributes.IncreasedKarmaLoss) != 0 )
|
||||
list.Add( 1075210, prop.ToString() ); // Increased Karma Loss ~1val~%
|
||||
|
||||
int phys, fire, cold, pois, nrgy, chaos, direct;
|
||||
|
||||
GetDamageTypes( null, out phys, out fire, out cold, out pois, out nrgy, out chaos, out direct );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue