npc->Actor::set_flag(Actor::protection);
npc->Actor::set_flag(Obj_flags::protection);
inline void Call_readied_usecode	(	Game_window *gwin,	Actor *npc,	Game_object *obj,	Usecode_machine::Usecode_events eventid	)	{	if (obj->get_shapenum() == 297)	// Fix special case:  ring of protect.		{		if (eventid == Usecode_machine::readied)			npc->Actor::set_flag(Actor::protection);		else			npc->Actor::clear_flag(Actor::protection);		return;		}	Shape_info& info = gwin->get_info(obj);	if (info.get_shape_class() != Shape_info::container)		{		Ready_type type = (Ready_type) info.get_ready_type();		if (type != other)			gwin->get_usecode()->call_usecode(obj->get_shapenum(),					obj, eventid);		}	}