/* * ItemEntry instance may be overrided by a few unique items * * if item is thrown by attacker and hit target. */ public virtual bool HitBy(Actor target, Actor thrower) { _TestStatusApply(target); int dmg = thrower.CalcurateThrowDamageOfItem(this, target, ElementType.ET_Physical); if( dmg > 0 ) { GUIManager.GetManager().Message(target.charName + " に " + dmg + " の ダメージあたえた!" ); return target.ApplyDamage(dmg); } else { GUIManager.GetManager().Message(target.charName + " に ダメージをあたえられない!" ); return true; } }