盾の耐久性を減少させない設定
- カテゴリー: スクリプト
- 重要性: 普通
- 投稿日: 2006-08-18 (金) 19:31:33
単独または少人数サーバで修理が面倒なときに便利です。 Scripts\Items\Shields\BaseShield.cs
public override int OnHit( BaseWeapon weapon, int damage )
にある以下のコードを削除する。( 2 箇所、ほぼ同じコード)
if( wear > 0 && MaxHitPoints > 0 )
{
if( HitPoints >= wear )
{
HitPoints -= wear;
wear = 0;
}
else
{
wear -= HitPoints;
HitPoints = 0;
}
if( wear > 0 )
{
if( MaxHitPoints > wear )
{
MaxHitPoints -= wear;
if( Parent is Mobile )
((Mobile)Parent).LocalOverheadMessage( MessageType.Regular, 0x3B2, 1061121 ); // Your equipment is severely damaged.
}
else
{
Delete();
}
}
}