Tips56

Last-modified: 2011-08-30 (火) 15:41:01

鎧の耐久性を減少させない設定

  • カテゴリー: スクリプト
  • 重要性: 普通
  • 投稿日: 2006-08-18 (金) 19:29:38

単独または少人数サーバで修理が面倒なときに便利です。 Scripts\Items\Armor\BaseArmor.csのにある以下のコードを削除する。

if ( wear > 0 && m_MaxHitPoints > 0 ){
	if ( m_HitPoints >= wear ){
		HitPoints -= wear;
		wear = 0;
	}
	else{
		wear -= HitPoints;
		HitPoints = 0;
	}
	if ( wear > 0 ){
		if ( m_MaxHitPoints > wear ){
			MaxHitPoints -= wear;
			if ( Parent is Mobile )
			((Mobile)Parent).LocalOverheadMessage( MessageType.Regular, 0x3B2, 1061121 ); // Your equipment is severely damaged.
		}
		else{
			Delete();
		}
	}
}