public override void OnTouch(Entity other) { base.OnTouch(other); if (m_fsm.IsInState <PlayerState_Dead>()) { return; } ItemInstance ii = other as ItemInstance; if (ii != null) { // Quick hack for Hearth if (ii.Item == EItem.Heart) { // Hard-coded for now ReceiveHeal(RandomManager.Next(4, 8)); } else { Inventory.Carry(ii.Item); } ii.PickedUp(this); } }